If your sonoff is sending data to the broker then nothing wrong with sonoff
Your items are getting updated which points to an error with your mqtt binding
What is your mqtt.cfg?
You showed the data from the sonoff but not the topic, can you show that as well, please?
==> /var/log/openhab2/openhab.log <==
2018-07-30 16:06:52.952 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'home.sitemap'
2018-07-30 16:06:53.355 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'home.things'
2018-07-30 16:06:53.362 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'home.things' is either empty or cannot be parsed correctly!
2018-07-30 16:06:55.739 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2018-07-30 16:06:55.742 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'broker'
2018-07-30 16:06:56.462 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-07-30 16:06:56.924 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2018-07-30 16:06:57.044 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-07-30 16:06:57.218 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2018-07-30 16:06:57.329 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
==> /var/log/openhab2/events.log <==
2018-07-30 16:07:42.183 [ome.event.ItemCommandEvent] - Item 'Standard_Lamp' received command ON
2018-07-30 16:07:42.196 [vent.ItemStateChangedEvent] - Standard_Lamp changed from OFF to ON
2018-07-30 16:07:42.807 [ome.event.ItemCommandEvent] - Item 'Standard_Lamp' received command OFF
2018-07-30 16:07:42.821 [vent.ItemStateChangedEvent] - Standard_Lamp changed from ON to OFF
2018-07-30 16:07:43.785 [ome.event.ItemCommandEvent] - Item 'Bedside_Lamp' received command ON
2018-07-30 16:07:43.793 [vent.ItemStateChangedEvent] - Bedside_Lamp changed from NULL to ON
2018-07-30 16:07:43.901 [vent.ItemStateChangedEvent] - Mqtt changed from NULL to {"POWER":"ON"}
2018-07-30 16:07:44.498 [ome.event.ItemCommandEvent] - Item 'Bedside_Lamp' received command OFF
2018-07-30 16:07:44.524 [vent.ItemStateChangedEvent] - Bedside_Lamp changed from ON to OFF
2018-07-30 16:07:44.580 [vent.ItemStateChangedEvent] - Mqtt changed from {"POWER":"ON"} to {"POWER":"OFF"}
Looking at broker in mqtt.fx do my topics look right?
Sorry just learning MQTT as i go (yes read the guides, but getting head around it) and i notice some of the topics created show “bedside” and others as “bedside_lamp”
Hmmm
Im getting more confused to be honest, it looks to me i followed all tutorials right but it just doesn’t work. Like the JSON transformation isnt working, but i uninstalled and reinstalled it etc. still nothing
Thanks i will do, one issue thats confusing me still…
We changed retain to false, yet mqtt.fx is still showing retained messages, rebooted 2-3 times but still pile of retained messages?