I defined several virtual switches like this
switch:
- platform: command_line
switches:
spots_hallway:
command_on: curl "http://192.168.1.3:80/postEvent.html?action=input&STM=0&MOD=5&CHA=0&EVT=3"
command_off: curl "http://192.168.1.3:80/postEvent.html?action=input&STM=0&MOD=5&CHA=1&EVT=3"
friendly_name: "Verlichting gang"
Now, I have to define other virtual switches but where command_on en command_off are in fact the same. So it is not really a switch but more a button.
Does another type of virtual switch exist or do I stay with the same definitions (with same command_on and command_off)?