Read this comment first if this blueprint is not allowing you to select any devices:
These are two related blueprints that allow creating automations around the GE double-tap functionality. In zwave-js, supported switches are automatically configured to respond to double tap events, so all it takes is using these blueprints.
In both blueprints the manufacturer is filtered to āGE/Jascoā. If you have a Honeywell switch that supports the same functionality, youāll want to change the filter or remove it.
Generic Blueprint
Assign any actions to a double tap on or off.
URL: GE/Jasco Double Tap Generic Blueprint Ā· GitHub
Click to view blueprint content
blueprint:
name: GE Switch Double Taps
description: Create automations to react to double taps from supporting GE switches.
domain: automation
input:
device:
name: Switch Device
description: A GE switch that supports double taps.
selector:
device:
integration: zwave_js
manufacturer: GE/Jasco
double_tap_on:
name: Double Tap On
description: Actions to run for a double tap on.
default: []
selector:
action:
double_tap_off:
name: Double Tap Off
description: Actions to run for a double tap off.
default: []
selector:
action:
mode: single
max_exceeded: silent
trigger:
platform: event
event_type: zwave_js_value_notification
event_data:
device_id: !input device
command_class: 32 # Basic
action:
- variables:
value: "{{ trigger.event.data.value_raw }}"
- choose:
- conditions: "{{ value == 0 }}"
sequence: !input double_tap_off
- conditions: "{{ value == 255 }}"
sequence: !input double_tap_on
Auto-dimming Blueprint
Automatically set the brightness of a light entity for a double tap on or off.
This specializes the generic blueprint above in order to automatically set the brightness of a light. I configure all of my GE switches to set their connected load to 100% brightness on double-tap on, and 25% brightness on double tap off. The blueprint allows setting a configurable brightness for each tap. Due to a limitation with blueprints, it cannot automatically select the trigger device as a target, instead a light entity must be chosen (I always choose the light entity associated with the device).
Import URL: GE/Jasco Double Tap Auto-dimming Blueprint Ā· GitHub
Click to view blueprint content
blueprint:
name: GE Light Switch Double Taps with Auto Brightness
description: Auto-dim GE light switches that support double taps.
domain: automation
input:
device:
name: Light Switch Device
description: A GE light switch that supports double taps.
selector:
device:
integration: zwave_js
manufacturer: GE/Jasco
entity:
domain: light
light:
name: Light Entity
description: The light entity to auto-dim, usually the entity associated with the device.
selector:
entity:
integration: zwave_js
domain: light
off_brightness:
name: Off Brightness
description: The brightness to set for a double tap off.
default: 25
selector:
number:
min: 0
max: 100
unit_of_measurement: "%"
mode: slider
on_brightness:
name: On Brightness
description: The brightness to set for a double tap on.
default: 100
selector:
number:
min: 0
max: 100
unit_of_measurement: "%"
mode: slider
mode: single
max_exceeded: silent
trigger:
platform: event
event_type: zwave_js_value_notification
event_data:
device_id: !input device
command_class: 32 # Basic
action:
- variables:
value: "{{ trigger.event.data.value_raw }}"
- choose:
- conditions: "{{ value == 0 }}"
sequence:
- service: light.turn_on
data:
entity_id: !input light
brightness_pct: !input off_brightness
- conditions: "{{ value == 255 }}"
sequence:
- service: light.turn_on
data:
entity_id: !input light
brightness_pct: !input on_brightness
Changelog:
2021-04-07:
- Changed event_type trigger to zwave_js_value_notification for release 2021.04.