Skip to content

Instantly share code, notes, and snippets.

@bessarabov
Created October 22, 2020 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bessarabov/a5bfd7ff45f9e0d0d39e36a2f3b69c25 to your computer and use it in GitHub Desktop.
Save bessarabov/a5bfd7ff45f9e0d0d39e36a2f3b69c25 to your computer and use it in GitHub Desktop.
automation:
- trigger:
platform: state
entity_id: sensor.0x086bd7fffebfe77b_click
to: 'single'
action:
service: light.toggle
entity_id: light.0x086bd7fffe5c89bf_light
- trigger:
platform: state
entity_id: sensor.0x086bd7fffebfe77b_click
to: 'double'
action:
service: light.turn_on
data:
entity_id: light.0x086bd7fffe5c89bf_light
brightness: 255
- trigger:
platform: state
entity_id: sensor.0x086bd7fffebfe77b_click
to: 'long'
action:
- service: light.turn_on
data:
entity_id: light.0x086bd7fffe5c89bf_light
brightness: 240
- service: light.turn_on
data:
entity_id: light.0x086bd7fffe5c89bf_light
brightness: 1
transition: 600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment