Thanks for your replies. Ive spent a few hours playing round with this today…
If I leave a space between each item type in the items file it all formats as desired, i’m not sure why It doesn’t work otherwise but this is a workable solution for me.
However I still don’t seem to have the MQTT binding working (sorry that this has been brought up so many times.
Ive gone as far as setting up a new SD card, with the openhabian image available as of today.
I followed your tutorial below to the latter,
Fresh openhabian install,
Setup Mosquitto, I opted not to enter a password and left the box blank*
Edited the file
/etc/openhab2/services/mqtt.cfg
the only changes I made were
mosquitto.url=tcp://localhost:1883
I didnt edit the userID and password section * as I left this blank when setting up mosquitto, should this effect anything?
Used MQTT Lens from a remote computer to test the connection, both ways works fine.
I then went ahead and installed the MQTT binding via the paper UI
Created the single item as noted in the MQTT tutorial to test the connection.
Switch MQTT_Test "Testing..." { mqtt="<mosquitto:testing/mqtt/topic:state:default], >[broker:testing/mqtt/back-topic:command:*:default]" }
Using MQTT lens I publshed “On” to the topic testing/mqtt/topic
On the openhab log viewer I get nothing to indicate the items state has changed
2017-10-12 17:20:00.283 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.0.199:8080
2017-10-12 17:20:00.285 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.0.199:8443
2017-10-12 17:20:00.908 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-10-12 17:20:01.046 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-10-12 17:20:01.192 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2017-10-12 17:20:01.400 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2017-10-12 17:20:01.405 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mosquitto'
I have tried with and without MQTT action installed, It doesn’t seem to make a difference either way.
Any ideas?
Thanks for your help thus far