diff --git a/ha-examples/automations.yaml b/ha-examples/automations.yaml new file mode 100644 index 0000000..1b147bb --- /dev/null +++ b/ha-examples/automations.yaml @@ -0,0 +1,33 @@ +automation: + - alias: Sleep Mode - Gammy Ember + trigger: + - platform: state + entity_id: scene.sleep_mode + to: 'active' + action: + - service: mqtt.publish + data: + topic: "pc/gammy/mode" + payload: "ember slow" + + - alias: Movie Mode - Gammy Neutral + trigger: + - platform: state + entity_id: scene.movie_mode + to: 'active' + action: + - service: mqtt.publish + data: + topic: "pc/gammy/mode" + payload: "movie fast" + + - alias: Daytime Auto Mode + trigger: + - platform: state + entity_id: scene.daytime + to: 'active' + action: + - service: mqtt.publish + data: + topic: "pc/gammy/mode" + payload: "auto slow" \ No newline at end of file