I’m having trouble configuring MQTT on my openHAB 2.5 configuration.
I’m trying to merge different community examples into my setup but it seems I’m missing something.
I want to have item states external to openHAB to be able to write automation scripts in typescript as I’m having a really hard time wrapping my head around the built-in script language and libraries.
My configuration is in files as I’ve had some unfortunate events where the PaperUI config went missing after a wrong maneuver in the Karaf interface.
Here’s what I have so far
openHAB 2.5 setup on openhabian (rPi3)
Mosquitto broker (default openhabian setup)
Mqtt spy on my PC
Bindings: MySensors, modbus, tado, hue, rfxcom
Basically, with the below setup, openHAB isn’t posting the state to the mosquitto broker. Changing the state of the dc_test item does work.
Are you trying to get your MQTT Channel to follow your Deconz Channel? At the moment you don’t have it setup correctly for that - you will need to use the follow profile.
@hafniumzinc thanks for helping out.
For the doorcontact sensor, I only want to export the state to MQTT.
After that, I’ll need to be able to command actuators (lights and shades mostly) from MQTT.
I’ll give your suggestion a go.
Is there a way to push all the items states to MQTT with one configuration ? That would make my day
Now this is really bizarre, I changed the config to the below
now the sensor data is published to MQTT topic home/automat/light/badkamer/set ! How does that work ?