Hi,
I don’t understand how to use this code:
switch:
- platform: template
switches:
eufy_surveillance:
friendly_name: "absent"
icon_template: mdi:video
value_template: "{{ is_state('sensor.eufy_status','Disarmed') }}"
turn_on:
service: rest_command.eufy_guard_mode_home
turn_off:
service: rest_command.eufy_guard_mode_disarmed
but in HA, I don’t choose 2 services. So is it possible to do an action with a switch (off → on) and an another action with the same switch (off ->on)?
Thanks a lot.