trumee
(trumee)
July 1, 2018, 10:00pm
1
Hello,
I have few Zwave sensors reporting temperature in the house. I would like to record these in a Zabbix server. The zabbix server can read data from the mqtt server (mosquitto).
Can a rule be defined that pushes the Zwave sensor value to an mqtt topic?
Thanks
rlkoshak
(Rich Koshak)
July 1, 2018, 10:21pm
2
You probably don’t even need a rule. You can configure the mqtt binding so any time the Item changes state it publishes that change to the configured topic. See the following to get started.
After countless threads regarding initial configuration issues, here is a short guide on how to get started with MQTT, the MQTT binding and openHAB.
This thread is a wiki article and can be improved by everyone. Please do!
MQTT is a machine-to-machine (M2M)/“Internet of Things” connectivity protocol.
It was designed as an extremely lightweight publish/subscribe messaging transport.
A few resources first:
Read all you ever need to know about MQTT in the MQTT Essentials
The openHAB MQT…
trumee
(trumee)
July 1, 2018, 11:12pm
3
How do i link Zwave/Zigbee state to MQTT?
e.g.
My Zigbee sensor is like so,
Number mo_MasterRoom_temperature "Temperature [%.1f]" <temperature> (gMasterRoom) {channel="zigbee:device:blah:sensor_temperature"}
and my MQTT binding is like so,
Number Temp_MasterRoom "Temperature sensor" {mqtt=">[mosquitto:cmnd/mysensor/Temperature:command:*:default]" }
How do i connect the two?
rlkoshak
(Rich Koshak)
July 1, 2018, 11:24pm
4
Put the mqtt binding config on the zwave/zigbee linked items too. Then change from command to state.
Number mo_MasterRoom_temperature "Temperature [%.1f]" <temperature> (gMasterRoom) {channel="zigbee:device:blah:sensor_temperature", mqtt=">[mosquitto:cmnd/mysensor/Temperature:state:*:default]" }