diff options
author | makefu <github@syntax-fehler.de> | 2019-04-04 22:55:24 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-04-04 22:55:24 +0200 |
commit | b60f9e55ac7cf50eadc5635f5d93d2d004503ef3 (patch) | |
tree | a69ccaa35ed5bc7f3c3a783829dc1d0a425eaf2e /2configs/bureautomation/switch | |
parent | 7b146e593bec3bd7479d70eeb56b4ff71ad2d762 (diff) |
ma bureautomation: use tele/STATE instead of stat/POWER
Diffstat (limited to '2configs/bureautomation/switch')
-rw-r--r-- | 2configs/bureautomation/switch/tasmota_switch.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/2configs/bureautomation/switch/tasmota_switch.nix b/2configs/bureautomation/switch/tasmota_switch.nix index eb7b5fb80..115bae0cc 100644 --- a/2configs/bureautomation/switch/tasmota_switch.nix +++ b/2configs/bureautomation/switch/tasmota_switch.nix @@ -2,13 +2,16 @@ let tasmota_plug = name: topic: { platform = "mqtt"; inherit name; - state_topic = "/bam/${topic}/stat/POWER"; + state_topic = "/bam/${topic}/tele/STATE"; + value_template = "{{ value_json.POWER }}"; command_topic = "/bam/${topic}/cmnd/POWER"; availability_topic = "/bam/${topic}/tele/LWT"; payload_on= "ON"; payload_off= "OFF"; payload_available= "Online"; payload_not_available= "Offline"; + retain = false; + qos = 1; }; in [ (tasmota_plug "Bauarbeiterlampe" "plug") |