mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
53 lines
2.2 KiB
YAML
53 lines
2.2 KiB
YAML
alias: Handle Jasco Buttons
|
|
id: automation_handle_jasco_buttons
|
|
description: "Tries to catch all of the buttons pressed on any of the Jasco switches."
|
|
mode: queued
|
|
variables:
|
|
# Map scanner device ID to media player entity ID
|
|
sources:
|
|
9975a90a307974388d6655c5a1bbba75: entryway_motion_switch
|
|
ac9942c01ebc59124e6ca3bb0597dc50: bathroom_vent_switch
|
|
5b2a9ae622deb2c1276f4bb772f709bf: boys_room_motion_switch
|
|
ae49ef7725fa7ca095f8bcd6bcce355e: dining_room_motion_switch
|
|
d3e866b0495a5793d8bc7d0e1530d44b: driveway_switch
|
|
64aefd7592f9792796f2b15a033b0c26: front_room_motion_switch
|
|
7bf6374f20b63629515ed391e44249ef: furnace_room_motion_switch
|
|
fad31eebed4bfa169e16d5ef314a87a7: garage_motion_switch
|
|
92891e75f89d2252f436a94beb134950: garage_switch
|
|
3fe75960129c234bebb7a70820460cf2: great_room_motion_switch
|
|
2f95eb95270b23404d52b011f28179bc: kitchen_switch
|
|
3ce88b51335de032397b61e9003efe7b: mancave_motion_switch
|
|
bee0ff46ae368c83ebd408ea7196f226: master_bathroom_motion_switch
|
|
69bfa35651cd293ad221f32d3f836669: master_bedroom_closet_motion_switch
|
|
ab40de79ce13e074ce0a820c47db717c: girls_room_closet_motion_switch
|
|
8291a2e240629c547b08733faaf53e90: shower_switch
|
|
c0d80ce8eab4bdebce5343ce4a748f34: storage_room_switch
|
|
8d77dcb0ee41302d5de67b4c333f5099: utility_room_motion_switch
|
|
b3f9869ae389ab96de294152b43f40a3: utility_room_vent_switch
|
|
|
|
trigger:
|
|
- platform: event
|
|
event_type: zwave_js_value_notification
|
|
|
|
condition:
|
|
- "{{ trigger.event.data.device_id in sources }}"
|
|
action:
|
|
- variables:
|
|
device: "{{ sources[trigger.event.data.device_id] }}"
|
|
command_class: "{{ trigger.event.data.command_class_name }}"
|
|
command_class_name: "{{ trigger.event.data.command_class_name }}"
|
|
value: "{{ trigger.event.data.value }}"
|
|
value_raw: "{{ trigger.event.data.value_raw }}"
|
|
#value: "{{ tags[trigger.event.data.tag_id].light_command }}"
|
|
|
|
- action: logbook.log
|
|
data_template:
|
|
name: Handle Jasco Buttons
|
|
entity_id: automation.handle_jasco_buttons
|
|
message: >
|
|
Device: {{ device }}
|
|
Command Class: {{ command_class }}
|
|
Command Class Name: {{ command_class_name }}
|
|
Value: {{ value }}
|
|
Value Raw: {{ value_raw }}
|