Hi everyone, decided to take the plunge from 1.8 to 2.0, but having trouble with MQTT at the moment.
Essentially I’ve got an ESP which pings back the state or a door every so often. Config as follows:
- Enabled 1.x bindings
- installed the 1.9 MQTT binding and apt-get installed mosquitto
- Items: oh2.items
Switch garageDoor1 “Garage Door 1 [MAP(open.map):%s]” {mqtt="<[mosquitto:/home/garage/esp01/g1/state:state:default]"}
Switch garageDoor2 “Garage Door 2 [MAP(open.map):%s]” {mqtt="<[mosquitto:/home/garage/esp01/g2/state:state:default]"}
- open.map
ON=OPEN
OFF=CLOSED
-=CLOSED
- mqtt.cfg
mosquitto.url=tcp://localhost:1883
Then… logs
2017-01-29 00:43:41.453 [ERROR] [ersey.server.ServerRuntime$Responder] - An I/O error has occurred while writing a response mes sage entity to the container output stream.
etc. etc. etc.
What am I doing wrong? and how is this supposed to work? I used to have quite a simple configuration where I just had a switch (with garage door icon) that showed me the state of my door.