From the demo site I found this, but I can’t figure out how to do get the arrow up and down to show.
I am pretty new to home assistant, can you show my an example how to implement that on a broadlink switch?
The arrow up and arrow down show up for covers by default.Are you looking to control the windows with the arrows or just show if the window is open or closed?
I don’t understand how to implement the cover for this switch
For me it looks like this now.
- platform: broadlink
host: 192.168.86.214
mac: 'b4:43:0d:d8:d2:d7'
timeout: 15
switches:
blindbedrom:
friendly_name: "Rullegardin soverom"
command_on: 'fdsafas
command_off: 'fdsafsa
You didn’t mention before that it was broadlink.
There is no broadlink cover implementation.
You could probably do a command line cover, that implements broadlink switch in its command, but that’s an advanced topic.
First implement a command line cover:
cover: - platform: command_line covers: garage_door: command_open: <path to your config>/swopen.sh command_close: <path to your config>/swopen.sh command_stop: <path to your config>/swopen.sh
Then create your command files.
swopen.sh should look like this:
curl -X POST -H "x-ha-access: YOUR_PASSWORD" \ -H "Content-Type: application/json" \ -d '{"entity_id": "switch.yourswitch"}' \ http://yourip:8123/api/services/switch/turn_on"
The other bash scripts would be similar.
2 Likes
Thank you very much. working now