Skip to content

Instantly share code, notes, and snippets.

@mbchristoff
Last active September 15, 2023 12:17
Show Gist options
  • Save mbchristoff/b36743491839d32acde447403186d796 to your computer and use it in GitHub Desktop.
Save mbchristoff/b36743491839d32acde447403186d796 to your computer and use it in GitHub Desktop.
home-assistant ROBB SMARRT Zigbee Rolluikschakelaar
# Make sure to set the correct device_id and entity_id
alias: Rolluik handmatig
description: ""
trigger:
- device_id: 3a63a435d12d8d93084b9ce674c5218a # Schakelaar
domain: hue
platform: device
type: repeat
subtype: 1
unique_id: dfded7b9-2316-422f-a562-6afe6d491ef0
id: trigger_rolluik_up
- device_id: 3a63a435d12d8d93084b9ce674c5218a # Schakelaar
domain: hue
platform: device
type: repeat
subtype: 2
unique_id: 23265edb-ae81-4f93-8c1f-b9b3f2b6044f
id: trigger_rolluik_down
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- trigger_rolluik_up
sequence:
- repeat:
sequence:
- type: turn_on
device_id: 1a914cb5d41dab2711eb21acf1028343 # rolluik device_id
entity_id: 6c956a536bb547889a3e7a5c947ed6aa # rolluik entity_id
domain: light
brightness_pct: 100
while:
- condition: state
entity_id: event.woonkamer_schakelaar_2_button_1 # Schakelaar up
attribute: event_type
state: repeat
- conditions:
- condition: trigger
id:
- trigger_rolluik_down
sequence:
- repeat:
sequence:
- type: turn_on
device_id: 1a914cb5d41dab2711eb21acf1028343 # rolluik device_id
entity_id: 6c956a536bb547889a3e7a5c947ed6aa # rolluik entity_id
domain: light
brightness_pct: 10
while:
- condition: state
entity_id: event.woonkamer_schakelaar_2_button_2 # Schakelaar down
attribute: event_type
state: repeat
for:
hours: 0
minutes: 0
seconds: 0
- type: turn_off
device_id: 1a914cb5d41dab2711eb21acf1028343 # rolluik device_id
entity_id: 6c956a536bb547889a3e7a5c947ed6aa # rolluik entity_id
domain: light
mode: restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment