Hey all, I have a hopefully simple question. When I toggle a switch in the dashboard, the icon changes color to show that it’s in the “on” state. However when I toggle an input boolean the icon doesn’t change:
I have a Meross wifi plug that isn’t natively supported, so I’m using IFTTT and an input_boolean to toggle it on and off, but I’d like to be able to have the icon associated with it in the UI to change like the other light bulbs.
You would think there was an easy way to do that. I started looking into light templates and it all got too complicated for me. I’ll just leave it as is for now.
I would have thought so too. But I never came up with anything useful and it wasn’t that big of a deal to pursue any further. Seems like it should be something stupid simple, but I’ve learned to pick my battles.
What’s not being explained to you is that this is a switch template, not an input boolean. You’ll have to swap your input boolean control for a switch template:
admitted, the difference between an inout-boolean and a template switch like this isnt always as clear as one would want. When to use which, im not 100% certain yet, and have them mixed here and there.
Invalid config for [switch.template]: [switch.turn_on] is an invalid option for [switch.template]. Check: switch.template->switches->skylight->switch.turn_on. (See ?, line ?). Please check the docs at Template Switch - Home Assistant
switch.turn_on is of course a perfectly valid option, you must use the service: before it though … and you don’t have a value_template set yet? (in the last bit of code you show)
I’m actually testing to see if it changes color when I call. However, when I turn it does not stay on … Then it goes back to off.
If possible, send me a complete example. I’ll put it in my HA to see if I understand what you’re trying to explain … Putting fragments of code, it gets more confusing.