Skip to content

Commit

Permalink
Replace platform: mqtt with trigger: mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Oct 16, 2024
1 parent 2342d93 commit 852267b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions automations/control_switches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- alias: "Control switches: living room Philips Hue dimmer switch"
mode: parallel
triggers:
platform: mqtt
trigger: mqtt
topic: "zigbee2mqtt/Dimmer Switch (Living room)"
variables:
actions: "{{ trigger.payload_json.action }}"
Expand Down Expand Up @@ -75,7 +75,7 @@
- alias: "Control switches: bedroom Philips Hue dimmer switch"
mode: parallel
triggers:
platform: mqtt
trigger: mqtt
topic: "zigbee2mqtt/Dimmer Switch (Bedroom)"
variables:
actions: "{{ trigger.payload_json.action }}"
Expand Down Expand Up @@ -148,9 +148,9 @@
- alias: "Control switches: bedroom IKEA dimmer switch"
mode: parallel
triggers:
- platform: mqtt
- trigger: event
topic: "zigbee2mqtt/IKEA Remote (Bedroom)"
- platform: mqtt
- trigger: event
topic: "zigbee2mqtt/IKEA Remote (Bedroom Marcella)"
variables:
actions: "{{ trigger.payload_json.action }}"
Expand Down Expand Up @@ -458,7 +458,7 @@
- alias: "Control switches: guest room IKEA Switch"
mode: parallel
triggers:
platform: mqtt
trigger: mqtt
topic: "zigbee2mqtt/IKEA Switch (Guest room)"
variables:
actions: "{{ trigger.payload_json.action }}"
Expand All @@ -479,7 +479,7 @@
- alias: "Control switches: Guest Room Light"
mode: parallel
triggers:
platform: mqtt
trigger: mqtt
topic: "zigbee2mqtt/Smart Switch (Guest Room)"
variables:
actions: "{{ trigger.payload_json.action }}"
Expand All @@ -501,7 +501,7 @@
- alias: "Control switches: Guest Room Space heater"
mode: parallel
triggers:
platform: mqtt
trigger: mqtt
topic: "zigbee2mqtt/Smart Switch (Desk)"
variables:
actions: "{{ trigger.payload_json.action }}"
Expand All @@ -517,7 +517,7 @@
- alias: "Control switches: Baby Room Light"
mode: parallel
triggers:
platform: mqtt
trigger: mqtt
topic: "zigbee2mqtt/Smart Switch (Baby Room)"
variables:
actions: "{{ trigger.payload_json.action }}"
Expand All @@ -540,7 +540,7 @@
- alias: "Control switches: Mid Room Changing Table Light"
mode: parallel
triggers:
platform: mqtt
trigger: mqtt
topic: "zigbee2mqtt/Smart Switch (Mid Room)"
variables:
actions: "{{ trigger.payload_json.action }}"
Expand Down
2 changes: 1 addition & 1 deletion automations/light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@

- alias: "Light: Update Zigbee2MQTT lights input_select options"
triggers:
platform: mqtt
trigger: mqtt
topic: zigbee2mqtt/bridge/devices
actions:
- variables:
Expand Down

0 comments on commit 852267b

Please sign in to comment.