-
I've encountered an issue with getting the state of a switch imported from home assistant and I have no idea why as I've got lights working just fine. I've cut out a lot of the code but here is what should be relevant:
Here is the relevant output from the log when using to_string() on the state
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're trying to print a boolean value as a string. |
Beta Was this translation helpful? Give feedback.
You're trying to print a boolean value as a string.
You could use
ONOFF(id(KitchenOutlet).state)