Hi. My 1st post here.
Using Raspberry 2b+, Openhabian, Sonoff Mini with Tasmota
Struggling to make MQTT connection.
When I send a command (even trough MQTT.FX) the blue led on the device blinks once, the app say it’s ON but the lamp doesn’t turn on.
That’s nothing to do with any openHAB settings. Check what topics and commands your device is expecting. When you’ve got it working with mqtt.fx, look at openHAB.
Thanks.
MQTT.FX accepts casa/Sonoff_Mini/tele/LWT in subscribe.
anything I put after casa/Sonoff_Mini/cmnd/ in publish just make the led blink one time.
2020-07-02 11:39:08.975 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘mqtt.things’, using it anyway:
Provide a thing UID in this format: bindingId : thingTypeId : thingId (with <> between the words)
2020-07-02 11:39:08.988 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘mqtt.things’
2020-07-02 11:39:09.024 [WARN ] [.thing.internal.GenericThingProvider] - Thing topic does not have a bridge so it needs to be defined in full notation like :topic:Sonoff_Mini
2020-07-02 11:39:09.032 [WARN ] [.thing.internal.GenericThingProvider] - Thing topic does not have a bridge so it needs to be defined in full notation like :topic:Sonoff_Mini
2020-07-02 11:39:09.042 [WARN ] [.thing.internal.GenericThingProvider] - Thing topic does not have a bridge so it needs to be defined in full notation like :topic:Sonoff_Mini
Also note you are using funny quotes. Not sure if this is just b/c you typed in without using ``` before and after item, things, rules, etc… it’s called code fences.
2020-07-02 12:01:13.406 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘mqtt.things’, using it anyway:
Provide a thing UID in this format:
::
2020-07-02 12:01:13.417 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘mqtt.things’
2020-07-02 12:01:13.436 [WARN ] [.thing.internal.GenericThingProvider] - Thing topic does not have a bridge so it needs to be defined in full notation like :topic:Sonoff_Mini
2020-07-02 12:01:13.443 [WARN ] [.thing.internal.GenericThingProvider] - Thing topic does not have a bridge so it needs to be defined in full notation like :topic:Sonoff_Mini
2020-07-02 12:01:13.452 [WARN ] [.thing.internal.GenericThingProvider] - Thing topic does not have a bridge so it needs to be defined in full notation like :topic:Sonoff_Mini
Not sure if you have read this link but it may help with configuration of OH side.
Here is another link to tasmota docs that have tips to include not changing the Client part in the mqtt config. I would read thru and start with a simple/basic setup then after you have that working move to more advanced configuration if needed.
Also not sure what you used to flash the sonoff with but here’s a tool you may be interested in.
I haven’t tried the tasmotizer myself but it looks to be a simple way to get up and running.
Goodness, make that work first.
There is no point in messing up your openHAB settings at random until you know what it is you are trying to achieve. What command payloads are you sending, exactly? It is case sensitive.
That is pretty clear. It got your message. That means you got the topic correct, hurrah! But it didn’t understand the payload. ON, On, on ?
Before flash the device one more time I just unchecked the MQTT enable on “Configure other” , restarted the device (it was sending the message “MqttCount”:99), and then I checked the MQTT enable again and restarted the device (the message on the console turned to “MqttCount”:1) and IT IS WORKING.