I have this automation which is run after HA has been rebooted:
automation:
- alias: enable_camera_after_reboot
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: script.turn_on_frontcam_recordings
In the action
section, how do I add second service
, but with conditional statement. Something like this:
action:
- service: script.turn_on_frontcam_recordings
- if input_boolean.securemode == 'on' {
- service: script.turn_on_backcam_recordings
} else {
- service: script.turn_off_backcam_recordings
}