Hello
I´ve been trying to configure a roller blind with this very useful fork of the very famous Tasmota firmware. It allows to interlock two switches, set running times for intermediate positions and configure more than one shutter with one NodeMCU (as an example); I´m using a sonoff Dual R2, and the hardware is working very well (even using a normal roller blind switch attached to two GPIOs), but for the life of me, I can´t configure MQTT properly, the blinds just appear as unavailable to HA.
This is my current config:
- platform: mqtt
name: "Persiana Salon"
availability_topic: "salon/persiana1/tele/LWT"
payload_available: "Online"
payload_not_available: "Offline"
position_topic: stat/salon/persiana1/SHUTTER1
position_open: 100
position_closed: 0
set_position_topic: "salon/persiana1/cmnd/shutterposition"
command_topic: "salon/persiana1/cmnd/backlog"
payload_open: "SHUTTEROPEN"
payload_close: "SHUTTERCLOSE"
payload_stop: "SHUTTERSTOP"
retain: false
optimistic: false
qos: 1
And tried publishing through another client on my broker with salon/persiana1/cmnd/backlog
and it accepts SHUTTEROPEN
and SHUTTERCLOSE
and works properly, but I don´t know how to make the shutter available on HA (shows it as unavailable, but the topic salon/persiana1/LWT
shows it as Online
in the external client)
Could it be that there is another retained flag that is causing it to not show on HA? (unlikely, just changed the topic and full topic to salon/persianaa
and it doesn’t work either)
I´m at a complete loss here…
Also, in case it helps, this is from the console:
00:20:31 MQT: salon/persiana1/SHUTTER1 = 100 (retained)
00:20:31 MQT: salon/persiana1/RESULT = {"POWER1":"OFF"}
00:20:31 MQT: salon/persiana1/POWER1 = OFF (retained)
00:20:31 MQT: salon/persiana1/RESULT = {"SHUTTER-1":{"position":100, "direction":0}}
00:21:21 MQT: salon/persiana1/STATE = {"Time":"2019-02-27T00:21:21","Uptime":"0T08:30:39","Vcc":3.444,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Montes01","BSSId":"34:97:F6:61:67:C0","Channel":8,"RSSI":52},"DeepSleep":0,"Heap":22768}
00:21:21 MQT: salon/persiana1/SENSOR = {"Time":"2019-02-27T00:21:21","Switch1":"ON","Switch2":"ON","SHUTTER-1":{"position":100, "direction":0}}
Already tried to get help from the Discord channel, but it seems that my time zone is a little off for the US (GMT +1)
Thanks everyone