Help customize switch

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
  mac: 'b4:43:0d:d8:d2:d7'
  timeout: 15
      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:

  - platform: command_line
        command_open: <path to your config>/
        command_close: <path to your config>/
        command_stop: <path to your config>/

Then create your command files. should look like this:

curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
       -H "Content-Type: application/json" \
       -d '{"entity_id": "switch.yourswitch"}' \

The other bash scripts would be similar.


Thank you very much. working now