Replies: 1 comment 1 reply
-
Note that the Entity card does not support actions, i.e. this code does not work and can be removed: And here there are errors: Check this code: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I looked through this discussions section for anyone trying to do this and couldn't find quite what I was looking for. I have my 3D Printer hooked up to a smart switch and I want to make it harder to accidentally turn the device off, but easy to turn the device on. I am using the YAML below on a dashboard which works, but the condition isn't applying to bypass the restriction when the device is off. Currently, when I click the card once, the lock fades away and if I click again I get the popup to toggle the state. However I would like this to only happen when turning off the device. When the device is off, I would like the first click to turn it on. Thanks for the help, I really appreciate it!
P.S. I found this discussion which is similar to what I want to do, but couldn't quite figure out how to utilize their setup.
Beta Was this translation helpful? Give feedback.
All reactions