Skip to content

Instantly share code, notes, and snippets.

@shannonfritz
Created March 9, 2022 23:24
Show Gist options
  • Select an option

  • Save shannonfritz/79517f416cbefc6cf0f0a8fe269074ab to your computer and use it in GitHub Desktop.

Select an option

Save shannonfritz/79517f416cbefc6cf0f0a8fe269074ab to your computer and use it in GitHub Desktop.
GE/Jasco 14291 / ZW4005 Home Assistant Blueprint
blueprint:
name: GE/Jasco 14291 / ZW4005 Switch (Z-Wave JS) v0.01
description: Create automations for the GE/Jasco Switches using the Z-Wave JS integration.
domain: automation
input:
ge_jasco:
name: Switch Device
description: 'List of available GE/Jasco 14291 / ZW4005 switches
NOTE: This device does not have Z-Wave event for Single Tap up or down'
selector:
device:
integration: zwave_js
manufacturer: GE/Jasco
model: 14291 / ZW4005
tap_2x_up:
name: Tap 2x Up
description: Action to run when Up button is pressed 2 times.
default: []
selector:
action:
tap_2x_dn:
name: Tap 2x Down
description: Action to run when Down button is pressed 2 times.
default: []
selector:
action:
# source_url: https://gist.github.com/shannonfritz/79517f416cbefc6cf0f0a8fe269074ab
mode: single
max_exceeded: silent
variables:
device_id: !input 'ge_jasco'
trigger:
- platform: event
event_type: zwave_js_value_notification
event_data:
command_class: 32 # Basic
condition: '{{ trigger.event.data.device_id == device_id }}'
action:
- variables:
value: '{{ trigger.event.data.value_raw }}'
- choose:
- conditions: '{{ value == 255 }}'
sequence: !input 'tap_2x_up'
- conditions: '{{ value == 0 }}'
sequence: !input 'tap_2x_dn'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment