Last active
October 4, 2021 04:46
-
-
Save wied03/189ec7e216c2f12e5a718716d918a5cd to your computer and use it in GitHub Desktop.
Philips Zigbee Switch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blueprint: | |
| name: Philips Zigbee Switch | |
| description: Create automations to react to double taps from supporting Philips switches. | |
| domain: automation | |
| input: | |
| device: | |
| name: Switch Device | |
| description: A Philips switch that supports double taps. | |
| selector: | |
| device: | |
| integration: zha | |
| manufacturer: Philips | |
| tap_on: | |
| name: Tap On | |
| description: Actions to run for a tap on. | |
| default: [] | |
| selector: | |
| action: | |
| tap_off: | |
| name: Tap Off | |
| description: Actions to run for a tap off. | |
| default: [] | |
| selector: | |
| action: | |
| mode: single | |
| max_exceeded: silent | |
| trigger: | |
| platform: event | |
| event_type: zha_event | |
| event_data: | |
| device_id: !input device | |
| args: | |
| press_type: press | |
| action: | |
| - variables: | |
| value: "{{ trigger.event.data.command }}" | |
| - choose: | |
| - conditions: "{{ value == 'off_press' }}" | |
| sequence: !input tap_off | |
| - conditions: "{{ value == 'on_press' }}" | |
| sequence: !input tap_on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment