various tidyups
This commit is contained in:
@@ -54,8 +54,8 @@ automation:
|
||||
max: 10
|
||||
|
||||
variables:
|
||||
west_switch_mqtt_topic: "zigbee2mqtt/Master Bedroom 4 Button Switch (West)"
|
||||
east_switch_mqtt_topic: "zigbee2mqtt/Master Bedroom 4 Button Switch (East)"
|
||||
west_switch_mqtt_topic: "zigbee2mqtt/Master Bedroom Scene Switch West (X54SS)"
|
||||
east_switch_mqtt_topic: "zigbee2mqtt/Master Bedroom Scene Switch East (X55SS)"
|
||||
|
||||
bedside_light: "switch.master_bedroom_bedside_lamp_arlec_bulb_master_bedroom_bedside_lamp_arlec_bulb_jump_fade_up_down"
|
||||
main_bedroom_south_lights: "switch.master_bedroom_master_bedroom_main_lights_south_relay_2_master_bedroom_south_lights"
|
||||
@@ -64,50 +64,50 @@ automation:
|
||||
triggers:
|
||||
# West switch actions
|
||||
- trigger: mqtt
|
||||
topic: "zigbee2mqtt/Master Bedroom 4 Button Switch (West)"
|
||||
topic: "zigbee2mqtt/Master Bedroom Scene Switch West (X54SS)"
|
||||
value_template: "{{ value_json.action | default('') }}"
|
||||
payload: "1_single"
|
||||
id: west_top_left
|
||||
|
||||
- trigger: mqtt
|
||||
topic: "zigbee2mqtt/Master Bedroom 4 Button Switch (West)"
|
||||
topic: "zigbee2mqtt/Master Bedroom Scene Switch West (X54SS)"
|
||||
value_template: "{{ value_json.action | default('') }}"
|
||||
payload: "2_single"
|
||||
id: west_top_right
|
||||
|
||||
- trigger: mqtt
|
||||
topic: "zigbee2mqtt/Master Bedroom 4 Button Switch (West)"
|
||||
topic: "zigbee2mqtt/Master Bedroom Scene Switch West (X54SS)"
|
||||
value_template: "{{ value_json.action | default('') }}"
|
||||
payload: "3_single"
|
||||
id: west_bottom_left
|
||||
|
||||
- trigger: mqtt
|
||||
topic: "zigbee2mqtt/Master Bedroom 4 Button Switch (West)"
|
||||
topic: "zigbee2mqtt/Master Bedroom Scene Switch West (X54SS)"
|
||||
value_template: "{{ value_json.action | default('') }}"
|
||||
payload: "4_single"
|
||||
id: west_bottom_right
|
||||
|
||||
# East switch actions
|
||||
- trigger: mqtt
|
||||
topic: "zigbee2mqtt/Master Bedroom 4 Button Switch (East)"
|
||||
topic: "zigbee2mqtt/Master Bedroom Scene Switch East (X55SS)"
|
||||
value_template: "{{ value_json.action | default('') }}"
|
||||
payload: "1_single"
|
||||
id: east_top_left
|
||||
|
||||
- trigger: mqtt
|
||||
topic: "zigbee2mqtt/Master Bedroom 4 Button Switch (East)"
|
||||
topic: "zigbee2mqtt/Master Bedroom Scene Switch East (X55SS)"
|
||||
value_template: "{{ value_json.action | default('') }}"
|
||||
payload: "2_single"
|
||||
id: east_top_right
|
||||
|
||||
- trigger: mqtt
|
||||
topic: "zigbee2mqtt/Master Bedroom 4 Button Switch (East)"
|
||||
topic: "zigbee2mqtt/Master Bedroom Scene Switch East (X55SS)"
|
||||
value_template: "{{ value_json.action | default('') }}"
|
||||
payload: "3_single"
|
||||
id: east_bottom_left
|
||||
|
||||
- trigger: mqtt
|
||||
topic: "zigbee2mqtt/Master Bedroom 4 Button Switch (East)"
|
||||
topic: "zigbee2mqtt/Master Bedroom Scene Switch East (X55SS)"
|
||||
value_template: "{{ value_json.action | default('') }}"
|
||||
payload: "4_single"
|
||||
id: east_bottom_right
|
||||
|
||||
Reference in New Issue
Block a user