Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- description: ""
- trigger:
- - platform: state
- entity_id:
- - switch.tasmota_4
- condition: []
- action:
- - if:
- - condition: state
- entity_id: switch.tasmota_4
- state: "on"
- then:
- - service: shell_command.avvio_plex
- data: {}
- - if:
- - condition: state
- entity_id: switch.tasmota_4
- state: "off"
- then:
- - service: shell_command.chiusura_plex
- data: {}
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment