boris03
(Boris)
May 9, 2018, 5:26pm
41
I think it is done !!!
Deleted content of these tmp and cache folders
and realized by the way that the system is building an additioanl file mqtt.config with this content:
So the Openhab.log is now quite clean and shows me only two lines for MQTT.
I assume this is correct?
vzorglub
(Vincent Regaud)
May 9, 2018, 5:30pm
42
Yes this is correct
Now on your tasmota:
Benutzer: openhab
Passwort: openhabian
Restart it
boris03
(Boris)
May 9, 2018, 5:38pm
43
says connected (verbunden)
in some other comments I saw people adding commands like:
broker.retain=true
broker.async=false
is this necessary or handled via tasmota already?
vzorglub
(Vincent Regaud)
May 9, 2018, 5:40pm
44
No these are not necessary leave them as they are
You are now ready to get data from tasmota via mosquitto to openHAB!!
Well done
boris03
(Boris)
May 9, 2018, 5:42pm
45
Vincent you are the man!!!
boris03
(Boris)
May 9, 2018, 5:45pm
46
Please one last question,
Now both clients are connected to the broker and I can start with the items âŠ
I just think about adding additional sonoffs, how are they separated?
Is it then the topic name as defined in each sonoff?
If Yes where is that reflected in that command example below?
Switch Switch1 {mqtt=">[broker:myhome/bedroom/switch1:command:ON:1],>[broker:myhome/bedroom/switch1:command:OFF:0],<[broker:myhome/bedroom/switch1:state:ON:1],<[broker:myhome/bedroom/switch1:state:OFF:0"}
vzorglub
(Vincent Regaud)
May 9, 2018, 5:52pm
47
This sonoff that we have just configured has the topic of sonoff1
So your item becomes:
Switch Switch1 {mqtt=">[broker:cmnd/sonoff1/POWER:command:*:default],<[broker:stat/sonoff1/POWER:state:default" }
See:
epicurean
(J Wee)
September 25, 2018, 5:53am
48
I am having trouble getting proper binding from MQTT broker (eclipse) to Openhab2.3 . Both are installed as docker containers inside Synology 6.2. Both containers IP set as net=host.
I just want to control 2 tasmota flashed Sonoff basic with openhab. Not even out of the gate with the first one.
I followed the posts in this thread but have been unsuccessful.
my mqtt.cfg is:
broker.url=tcp://192.168.1.113:1883
broker.user=âopenhabâ
broker.pwd=âopenhabianâ
My first sonoff configuration:
host: 192.168.1.113
port: 1883
user: openhab
password: openhabian
client-id : sonoff1
What am I doing wrong?
vzorglub
(Vincent Regaud)
September 25, 2018, 6:31am
49
Remove the quotes in the mqtt.cfg:
broker.url=tcp://192.168.1.113:1883
broker.user=openhab
broker.pwd=openhabian
epicurean
(J Wee)
September 25, 2018, 7:25am
50
Thank you.
This is my log after a restart after taking out the quotes:
2018-09-25 07:18:17.534 [INFO ] [er.internal.HomeBuilderDashboardTile] - Started Home Builder at /homebuilder
2018-09-25 07:18:18.524 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to âAsia/Kuala_Lumpurâ.
2018-09-25 07:18:18.526 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to âen_SGâ.
2018-09-25 07:18:19.072 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.1.113:8080
2018-09-25 07:18:19.076 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.1.113:8443
2018-09-25 07:18:22.659 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-09-25 07:18:23.478 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-09-25 07:18:23.626 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-09-25 07:18:23.678 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-09-25 07:18:23.873 [WARN ] [penhab.io.transport.mqtt.MqttService] - Unrecognized property: broker.clientid
2018-09-25 07:18:23.873 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2018-09-25 07:18:23.874 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection ââ
2018-09-25 07:18:24.139 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection âbrokerâ
epicurean
(J Wee)
September 25, 2018, 7:55am
52
What is the error that says unrecognized property:broker.clientid?
Do I need to add a broker.clientId line in my mqtt.cfg?
vzorglub
(Vincent Regaud)
September 25, 2018, 8:07am
53
Itâs only a warning.
Show me your mqtt.cfg. All of it.
epicurean
(J Wee)
September 25, 2018, 8:11am
54
This is all of my mqtt.cfg
broker.url=tcp://192.168.1.113:1883
broker.clientId=XPE6
broker.user=openhab
broker.pwd=openhabian
I just saw an error in my log:
2018-09-25 08:00:02.563 [ERROR] [org.apache.felix.configadmin ] - Cannot use configuration org.openhab.mqtt for [org.openhab.core.scriptengine.action.ActionService, org.osgi.service.cm.ManagedService, id=318, bundle=200/mvn:org.openhab.action/org.openhab.action.mqtt/1.12.0]: No visibility to configuration bound to mvn:org.openhab.io/org.openhab.io.transport.mqtt/1.12.0