-
-
Save victorlin/5547cb17f8cd30424ecf287f8f8e1931 to your computer and use it in GitHub Desktop.
GE 14291 / ZW4005 Home Assistant Blueprint
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: GE 14291 / ZW4005 Switch (Z-Wave JS) v0.01 | |
| description: Create automations for the GE Switches using the Z-Wave JS integration. | |
| domain: automation | |
| input: | |
| ge_jasco: | |
| name: Switch Device | |
| description: 'List of available GE 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 | |
| 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: | |
| 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