mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
blue_room to boys_room
This commit is contained in:
@@ -75,39 +75,39 @@ blueprint:
|
||||
mode: single
|
||||
max_exceeded: silent
|
||||
variables:
|
||||
device_id: !input 'ge_jasco'
|
||||
device_id: !input "ge_jasco"
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zwave_js_value_notification
|
||||
condition: '{{ trigger.event.data.device_id == device_id }}'
|
||||
- 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 == ''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'
|
||||
- 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 }}"
|
||||
- action: 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 == '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"
|
||||
|
||||
Reference in New Issue
Block a user