Latest build. OSX. Yosemite. 10.10.3
Latest Tasmota flashed to Sonoff.
Flashed with esptool.py
Did NOT auto-discover sonoff devices - manually editing configuration.yaml
Using HA, I can successfully turn On/Off a Sonoff Basic. (also from web, or command line)
But after I turn On, for example, in about 1 second, the visual switch indicator will revert to off. But the light turned on.
Wait for the “tele” and HA will update to show light On.
Same for off… will turn off right away, but HA doesn’t think its off… until “tele” after 300 second refresh.
Seems to not understand/parse this:
21:15:55 MQT: stat/sonoff-LivingRoomLight/POWER = OFF (retained)
But updates correctly from this:
21:19:53 MQT: tele/sonoff-LivingRoomLight/STATE = {“Time”:“2019-01-29T21:19:53”,“Uptime”:“0T21:35:13”,“Vcc”:3.618,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“POWER”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“who_r_u24”,“BSSId”:“CC:40:D0:65:00:B9”,“Channel”:4,“RSSI”:100}}
Config:
light:
- platform: mqtt
name: “Sonoff Living Room Light”
state_topic: “tele/sonoff-LivingRoomLight/STATE”
command_topic: “cmnd/sonoff-LivingRoomLight/POWER”
availability_topic: “tele/sonoff-LivingRoomLight/LWT”
value_template: “{{ value_json.POWER }}”
qos: 1
payload_on: “ON”
payload_off: “OFF”
payload_available: “Online”
payload_not_available: “Offline”
retain: true
I’m new and this is my first device.
Is the Telemetry supposed to be more frequent than 300 secs?
After HA turns a device on (and I see the switch revert to off), is it in fact polling the device and trying to indicate to me that the device didn’t really turn on?
From the Sonoff console, these are the only 2 message that appear when I flip a switch in HA:
21:15:55 MQT: stat/sonoff-LivingRoomLight/RESULT = {“POWER”:“OFF”}
21:15:55 MQT: stat/sonoff-LivingRoomLight/POWER = OFF (retained)
Shouldn’t one of those be a “cmnd” and not a “status”?
thx
jaymer…