Skip to content

Instantly share code, notes, and snippets.

@d03n3rfr1tz3
Created March 7, 2023 18:19
Show Gist options
  • Save d03n3rfr1tz3/8c8aafbd11d6d50ac316db63c1830d29 to your computer and use it in GitHub Desktop.
Save d03n3rfr1tz3/8c8aafbd11d6d50ac316db63c1830d29 to your computer and use it in GitHub Desktop.
blueprint:
name: TechniSat Szenenschalter
description: Create automations for the TechniSat Szenenschalter using the OZW integration.
domain: automation
input:
scene_controller:
name: Scene Controller
description: The TechniSat Szenenschalter to interact with.
selector:
device:
integration: zwave_js
manufacturer: HANK Electronics Ltd.
model: SCN04
button_1:
name: Press Button One
description: Action to run on button press.
default: []
selector:
action: {}
button_2:
name: Press Button Two
description: Action to run on button press.
default: []
selector:
action: {}
button_3:
name: Press Button Three
description: Action to run on button press.
default: []
selector:
action: {}
button_4:
name: Press Button Four
description: Action to run on button press.
default: []
selector:
action: {}
mode: single
max_exceeded: silent
trigger:
platform: event
event_type: zwave_js_value_notification
event_data:
command_class_name: Central Scene
device_id: !input scene_controller
action:
- variables:
scene_id: "{{ trigger.event.data.property_key_name }}"
- choose:
- conditions: "{{ scene_id == '001' }}"
sequence: !input button_1
- conditions: "{{ scene_id == '002' }}"
sequence: !input button_2
- conditions: "{{ scene_id == '003' }}"
sequence: !input button_3
- conditions: "{{ scene_id == '004' }}"
sequence: !input button_4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment