Skip to content

Instantly share code, notes, and snippets.

@wied03
Last active October 4, 2021 04:46
Show Gist options
  • Select an option

  • Save wied03/189ec7e216c2f12e5a718716d918a5cd to your computer and use it in GitHub Desktop.

Select an option

Save wied03/189ec7e216c2f12e5a718716d918a5cd to your computer and use it in GitHub Desktop.
Philips Zigbee Switch
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