diff options
author | tv <tv@krebsco.de> | 2019-04-17 22:04:03 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-04-17 22:04:03 +0200 |
commit | ffd36f5554256f74beb6ade469666b00f72b22a9 (patch) | |
tree | 51e77c75388d9f9e032bdb09427bcaace2b846c7 /makefu/2configs/bureautomation/automation/hass-restart.nix | |
parent | e051fecf9c19d446d6588bd21070fd1a799b97a3 (diff) | |
parent | 1314eb9284697b46d8208c138cf2349816e15c5f (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/bureautomation/automation/hass-restart.nix')
-rw-r--r-- | makefu/2configs/bureautomation/automation/hass-restart.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/makefu/2configs/bureautomation/automation/hass-restart.nix b/makefu/2configs/bureautomation/automation/hass-restart.nix new file mode 100644 index 000000000..be16f6966 --- /dev/null +++ b/makefu/2configs/bureautomation/automation/hass-restart.nix @@ -0,0 +1,31 @@ +[ + { alias = "State on HA start-up"; + trigger = { + platform = "homeassistant"; + event = "start"; + }; + action = [ + # Startup State + { service = "mqtt.publish"; + data = { + topic = "/bam/sonoffs/cmnd/state"; + payload = ""; + }; + } + # Firmware Version + { service = "mqtt.publish"; + data = { + topic = "/bam/sonoffs/cmnd/status"; + payload = "2"; + }; + } + # Will trigger restart of all devices! + #{ service = "mqtt.publish"; + # data = { + # topic = "sonoffs/cmnd/SetOption59"; # configure sending state on power change + # payload = "1"; + # }; + #} + ]; + } +] |