I have the following working command line switch defined in my configuration.yaml:
command_line:
- switch:
name: Back Patio Floodlight
command_on: “curl -g -v --digest ‘http://[user]:[password]@10.10.0.50/cgi-bin/coaxialControlIO.cgi?action=control&channel=1&info[0].Type=1&info[0].IO=1’”
command_off: “curl -g -v --digest ‘http://[user]:[password][email protected]/cgi-bin/coaxialControlIO.cgi?action=control&channel=1&info[0].Type=1&info[0].IO=0’”
It works fine but the switch is displayed as a lightning bolt instead of a toggle. I’m trying to change that.
According to the HA documentation:
assumed_state boolean (Optional, default: true)
For switches with an assumed state two buttons are shown (turn off, turn on) instead of a switch. By setting assumed_state to false you will get the default switch icon.
When I add “assumed_state: false” to the above configuration it does not change the switch icon, it breaks the entity instead.
I’ve looked at numerous forum posts about this and other people have used the assumed_state entry successfully but I have been unable to get it to work. Has a breaking change been introduced in a recent HA release?
Any suggestions would be appreciated.
HA System info:
Debian 12
Core 2024.3.1
Supervisor 2024.03.0
Frontend 20240307.0