Hi all,
Current Setup:
RPI with Domoticz. Has temperature sensors, switches and 1 utility (ultrasonic sensor).
Managed to setup MQTT hardward domoticz/out and forward events to another RPI with Openhabian.
Installed Mosquitto and it receives the Domoticz stuff. So far so good.
Now the tricky parts.
mqtt.items
I can query the broker eg, mosquitto_sub -h localhost -t “#” -u user -P password -q 1
Example output below.
OUTPUT:
{
“Battery” : 100,
“RSSI” : 5,
“description” : “”,
“dtype” : “Temp”,
“id” : “33280”,
“idx” : 128,
“meterType” : “Energy”,
“name” : “Outdoor - Garage”,
“nvalue” : 0,
“stype” : “Viking 02811/02813, Proove TSS330”,
“svalue1” : “15.3”,
“unit” : 0
}
{
“Battery” : 255,
“RSSI” : 12,
“description” : “stripped out”,
“dtype” : “General”,
“id” : “00082125”,
“idx” : 125,
“meterType” : “Energy”,
“name” : “Ultrasonic”,
“nvalue” : 0,
“stype” : “Distance”,
“svalue1” : “88”,
“unit” : 1
}
{
“Battery” : 255,
“RSSI” : 12,
“description” : “”,
“dtype” : “Lighting 2”,
“id” : “0BB44DA”,
“idx” : 66,
“name” : “Switch #1”,
“nvalue” : 1,
“stype” : “AC”,
“svalue1” : “0”,
“switchType” : “On/Off”,
“unit” : 1
}
Is there any good tutorial post (I did seach) describing how to convert/populate the mosquitto_sub output into items syntax configuration? I know that domoticz/out (handler?) should be involved.
Anyone that can help me with getting the temperarure sensors, the switches and the utility meter running is a hero!