I’ve just loaded the Tasmota firmware on one of my sonoff basic units and the web interface is all good but following this tutorial I’m not able to get the switch to work at all.
Is your mqtt broker named ‘domus1’, like in the example?
If you are using the HA Broker, you have to use the IP/name of HA.
BTW, don`t know if Tasmote works with the HA Broker.
Thanks!
Ok well I changed the domus1 in the config to 192.168.0.100 which is the HA IP and funny enough I can turn the switch on in HA now, but it doesn’t translate the state and it doesn’t turn off again, I have to manually turn it off on the switch.
When i toggle switch ON my browser. Sonoff switch goes ON just like i want, BUT after couple seconds HA browser shows switch goes back OFF state. Sonoff leave that ON state. If i try manually off sonoff that goes back to ON state after couple seconds. Only way i get that “permanent ON” state off, i need to stop mosquitto service, delete percident file and start mosquitto service again.
I am very thankfull if someone can help me with this problem.
This occurs because HA did not receive the state_topic: message indicating that the light had turned on. In your example, it should receive a message with topic stat/s20-001/POWER and payload ON (or OFF when you turn the light off).
Hi try that link instructions but not helped. Now i try mosquitto -v command. That gives me this, still that sonoff goes ON state ok, but after that not work.
pi@hassbian:~ $ mosquitto -v
1504805954: mosquitto version 1.4.14 (build date Mon, 10 Jul 2017 23:48:43 +0100) starting
1504805954: Using default config.
1504805954: Opening ipv4 listen socket on port 1883.
1504805954: Error: Address already in use
Or if that normal? Little scared how this mqtt start workings and quite much problems to get this working, if compare how easy everything seems many tutorials
You have the client id the same for both the sonoff and the config of the broker in HA, i fell for the same thing. Change it in the sonoff to something unique
So, just got my Sonoff POW loaded with Tasmota 5.11 and have it online. I am trying to get some of the power numbers out of the unit and am not having much luck…
Is it normal for the POW not to have a wifi led on if the switch is turned off? The unit is still connected but does not display the blue led when it is logically off. I am running Tasmota 5.11.1