openHAB 2.4.0-1 (Release Build)
Raspberry Pi 2 B+
D1 Mini From here
I have a D1 mini successfully flashed with ESPEasy, and sonoff.bin firmware.
[https://github.com/letscontrolit/ESPEasy/releases/tag/mega-20190607](http://ESPEasy from here)
Got most of the info from [https://www.youtube.com/watch?v=KMiP9Ku71To](http://this video), my setup was a bit different but I was able to get it flashed.
After finally getting my MQTT broker online I tried to add my first MQTT device using the paper UI.
I first flashed the D1 mini with the sonoff firmware using ESPEasy software.
and since I have no idea what the buttons should be setup as in the configuration I set the following in the configuration.
Using mqtt.fx I can see it talking to my Pi’s mqtt server but that is about all I can get it to do.
2019-06-11 15:26:22,530 INFO --- MqttFX ClientModel : messageArrived() with topic: $SYS/broker/bytes/received
2019-06-11 15:26:22,530 INFO --- MqttFX ClientModel : messageArrived() with topic: $SYS/broker/bytes/sent
2019-06-11 15:26:24,243 INFO --- MqttFX ClientModel : Broker connection lost: Resetting client.
2019-06-11 15:26:24,248 INFO --- ScriptsController : Clear console.
2019-06-11 15:26:24,249 INFO --- MqttFX ClientModel : rebuildMessagesList()
2019-06-11 15:26:24,253 INFO --- Broker Status Controller : cancelled.
2019-06-11 15:26:24,254 INFO --- ScriptsController : Clear console.
2019-06-11 15:27:40,492 INFO --- BrokerConnectorController : onConnect
2019-06-11 15:27:40,493 INFO --- ScriptsController : Clear console.
2019-06-11 15:27:40,499 INFO --- MqttFX ClientModel : MqttClient with ID MQTT_FX_Client assigned.
2019-06-11 15:27:40,514 INFO --- MqttFX ClientModel : session present: false
2019-06-11 15:29:39,113 INFO --- SubscribeController : onSubscribe
2019-06-11 15:29:39,116 INFO --- MqttFX ClientModel : rebuildMessagesList()
2019-06-11 15:29:39,117 INFO --- MqttFX ClientModel : attempt to addRecentSubscriptionTopic
2019-06-11 15:29:39,117 INFO --- MqttFX ClientModel : addRecentSubscriptionTopic : de.jensd.mqttfx.entities.Topic@5e5566e8
2019-06-11 15:29:39,117 INFO --- MqttFX ClientModel : attempt to add PublishTopic
2019-06-11 15:29:39,119 INFO --- MqttFX ClientModel : sucessfully subscribed to topic # (QoS 0)
2019-06-11 15:29:39,160 INFO --- MqttFX ClientModel : messageArrived() with topic: /beacon/switch/gti/config
2019-06-11 15:29:39,160 INFO --- MqttFX ClientModel : messageArrived() added: message #1 to topic '/beacon/switch/gti/config'
2019-06-11 15:29:39,161 INFO --- MqttFX ClientModel : messageArrived() with topic: /beacon/binary_sensor/gti/state
2019-06-11 15:29:39,161 INFO --- MqttFX ClientModel : messageArrived() added: message #2 to topic '/beacon/binary_sensor/gti/state'
2019-06-11 15:29:39,161 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/LWT
2019-06-11 15:29:39,161 INFO --- MqttFX ClientModel : messageArrived() added: message #3 to topic '/home/relay1/LWT'
2019-06-11 15:29:39,161 INFO --- MqttFX ClientModel : messageArrived() with topic: tele/sonoff/LWT
2019-06-11 15:29:39,161 INFO --- MqttFX ClientModel : messageArrived() added: message #4 to topic 'tele/sonoff/LWT'
2019-06-11 15:30:45,506 INFO --- SubscribeController : onClearMessagesHistory
2019-06-11 15:30:50,180 INFO --- PublishController : publish
2019-06-11 15:30:57,494 INFO --- PublishController : publish
2019-06-11 15:31:49,937 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/LWT
2019-06-11 15:31:49,938 INFO --- MqttFX ClientModel : messageArrived() added: message #5 to topic '/home/relay1/LWT'
2019-06-11 15:31:54,615 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/LWT
2019-06-11 15:31:54,615 INFO --- MqttFX ClientModel : messageArrived() added: message #6 to topic '/home/relay1/LWT'
2019-06-11 15:31:54,665 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/cmnd/POWER
2019-06-11 15:31:54,665 INFO --- MqttFX ClientModel : messageArrived() added: message #7 to topic '/home/relay1/cmnd/POWER'
2019-06-11 15:31:54,708 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/INFO1
2019-06-11 15:31:54,708 INFO --- MqttFX ClientModel : messageArrived() added: message #8 to topic '/home/relay1/INFO1'
2019-06-11 15:31:54,749 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/INFO2
2019-06-11 15:31:54,750 INFO --- MqttFX ClientModel : messageArrived() added: message #9 to topic '/home/relay1/INFO2'
2019-06-11 15:31:54,750 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/INFO3
2019-06-11 15:31:54,750 INFO --- MqttFX ClientModel : messageArrived() added: message #10 to topic '/home/relay1/INFO3'
2019-06-11 15:32:02,868 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/STATE
2019-06-11 15:32:02,868 INFO --- MqttFX ClientModel : messageArrived() added: message #11 to topic '/home/relay1/STATE'
2019-06-11 15:36:36,431 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/RESULT
2019-06-11 15:36:36,432 INFO --- MqttFX ClientModel : messageArrived() added: message #12 to topic '/home/relay1/RESULT'
2019-06-11 15:36:40,659 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/RESULT
2019-06-11 15:36:40,659 INFO --- MqttFX ClientModel : messageArrived() added: message #13 to topic '/home/relay1/RESULT'
2019-06-11 15:36:42,777 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/RESULT
2019-06-11 15:36:42,777 INFO --- MqttFX ClientModel : messageArrived() added: message #14 to topic '/home/relay1/RESULT'
2019-06-11 15:37:02,882 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/STATE
2019-06-11 15:37:02,883 INFO --- MqttFX ClientModel : messageArrived() added: message #15 to topic '/home/relay1/STATE'
2019-06-11 15:42:03,381 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/STATE
2019-06-11 15:42:03,382 INFO --- MqttFX ClientModel : messageArrived() added: message #16 to topic '/home/relay1/STATE'
2019-06-11 15:47:03,405 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/STATE
2019-06-11 15:47:03,406 INFO --- MqttFX ClientModel : messageArrived() added: message #17 to topic '/home/relay1/STATE'
2019-06-11 15:52:03,410 INFO --- MqttFX ClientModel : messageArrived() with topic: /home/relay1/STATE
2019-06-11 15:52:03,411 INFO --- MqttFX ClientModel : messageArrived() added: message #18 to topic '/home/relay1/STATE'
I can get it to come online, (after rebooting the Pi was the only way to make it go online)
But I am not sure where to go from here.
I want to add a different button for each “Relay / GPIO” pin on the d1 mini, but I cannot get that part to work.
I am also not sure if I have the MQTT state topic set correctly or the command topic.
The settings I used on the device was the following pic.
I think I am close to getting it to work I just can’t pinpoint where my issue is now.