Skip to content

Instantly share code, notes, and snippets.

@boozeman
Created March 11, 2023 10:29
Show Gist options
  • Save boozeman/02b119fdaf9849c6eef7ebe4bedbe7b5 to your computer and use it in GitHub Desktop.
Save boozeman/02b119fdaf9849c6eef7ebe4bedbe7b5 to your computer and use it in GitHub Desktop.
alias: ajastintesti
description: ""
trigger:
- platform: device
type: turned_on
device_id: <deviceid poistettu>
entity_id: switch.nedis6_relay1
domain: switch
id: relay2 on
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.test_timer
id: timer finished
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: relay2 on
sequence:
- type: turn_on
device_id: <deviceid poistettu>
entity_id: switch.nedis6_relay1
domain: switch
- service: timer.start
data:
duration: 0
target:
entity_id: timer.test_timer
- conditions:
- condition: trigger
id: timer finished
sequence:
- type: turn_off
device_id: <deviceid poistettu>
entity_id: switch.nedis6_relay1
domain: switch
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment