Skip to content

Instantly share code, notes, and snippets.

@shannonfritz
Last active March 10, 2022 00:03
Show Gist options
  • Select an option

  • Save shannonfritz/7baef50895bb78701777e7f6377ca561 to your computer and use it in GitHub Desktop.

Select an option

Save shannonfritz/7baef50895bb78701777e7f6377ca561 to your computer and use it in GitHub Desktop.
HomeSeer HS-WX300 Home Assistant Blueprint
blueprint:
name: HomeSeer HS-WX300 (Z-Wave JS) v0.05
description: Create automations for the HomeSeer HS-WX300 Dimmer using the Z-Wave JS integration.
domain: automation
input:
homeseer_wx300:
name: HomeSeer HS-WX300
description: List of available HomeSeer HS-WX300 dimmers.
selector:
device:
integration: zwave_js
manufacturer: HomeSeer Technologies
model: HS-WX300
tap_1x_up:
name: Tap 1x Up
description: Action to run when Up button is pressed 1 time.
default: []
selector:
action:
tap_1x_dn:
name: Tap 1x Down
description: Action to run when Down button is pressed 1 time.
default: []
selector:
action:
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:
tap_3x_up:
name: Tap 3x Up
description: Action to run when Up button is pressed 3 times.
default: []
selector:
action:
tap_3x_dn:
name: Tap 3x Down
description: Action to run when Down button is pressed 3 times.
default: []
selector:
action:
tap_4x_up:
name: Tap 4x Up
description: Action to run when Up button is pressed 4 times.
default: []
selector:
action:
tap_4x_dn:
name: Tap 4x Down
description: Action to run when Down button is pressed 4 times.
default: []
selector:
action:
tap_5x_up:
name: Tap 5x Up
description: Action to run when Up button is pressed 5 times.
default: []
selector:
action:
tap_5x_dn:
name: Tap 5x Down
description: Action to run when Down button is pressed 5 times.
default: []
selector:
action:
up_btn_hld:
name: Up Button Held
description: Action to run when Up button is Held.
default: []
selector:
action:
up_btn_rel:
name: Up Button Released
description: Action to run when Up button is Released.
default: []
selector:
action:
dn_btn_hld:
name: Down Button Held
description: Action to run when Down button is Held.
default: []
selector:
action:
dn_btn_rel:
name: Down Button Released
description: Action to run when Down button is Released.
default: []
selector:
action:
# source_url: https://gist.github.com/shannonfritz/d093d9cfe7105421d7aa6d0b407f723e
mode: single
max_exceeded: silent
variables:
device_id: !input 'homeseer_wx300'
trigger:
- platform: event
event_type: zwave_js_value_notification
condition: '{{ trigger.event.data.device_id == device_id }}'
action:
- variables:
property_key_name: '{{ trigger.event.data.property_key_name }}'
label: '{{ trigger.event.data.label }}'
command_class_name: '{{ trigger.event.data.command_class_name }}'
value: '{{ trigger.event.data.value }}'
- service: logbook.log
data:
name: 'Z-Wave JS'
message: 'received event: {{ command_class_name }} - {{ value }} - {{ label }}'
- choose:
- conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed'' }}'
sequence: !input 'tap_1x_up'
- conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed'' }}'
sequence: !input 'tap_1x_dn'
- conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed2x'' }}'
sequence: !input 'tap_2x_up'
- conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed2x'' }}'
sequence: !input 'tap_2x_dn'
- conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed3x'' }}'
sequence: !input 'tap_3x_up'
- conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed3x'' }}'
sequence: !input 'tap_3x_dn'
- conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed4x'' }}'
sequence: !input 'tap_4x_up'
- conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed4x'' }}'
sequence: !input 'tap_4x_dn'
- conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed5x'' }}'
sequence: !input 'tap_5x_up'
- conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed5x'' }}'
sequence: !input 'tap_5x_dn'
- conditions: '{{ property_key_name == ''001'' and value == ''KeyHeldDown'' }}'
sequence: !input 'up_btn_hld'
- conditions: '{{ property_key_name == ''001'' and value == ''KeyReleased'' }}'
sequence: !input 'up_btn_rel'
- conditions: '{{ property_key_name == ''002'' and value == ''KeyHeldDown'' }}'
sequence: !input 'dn_btn_hld'
- conditions: '{{ property_key_name == ''002'' and value == ''KeyReleased'' }}'
sequence: !input 'dn_btn_rel'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment