Hello,
I am using openMQTTGateway on an ESP32 (esp32dev-multi_receiver) to report various 433 devices, mainly thermometers, to my Domoticz server wth homeassistant discovery through Mosquitto.
It creates an displays my various 433 devices, but…
For each physical device I get 3 or 4 devices in Domoticz, one for each information from the physical device. ie. for a temp + humidity sensor, in Domoticz I get 4 different devices, one for the temperature, one for the humidity, one for the rssi strength and one for the battery level. Domoticz failed to combine theses as a single combined device.
It seems that it is due to the way openMQTTGateway publishes the information: all 4 measurement have a different id and this prevents Domoticz to recognize these as belonging to the same device.
For one of my device, the config topics are currently:
homeassistant/sensor/Ambientweather-F007TH-2-154-humidity/config
{"stat_t":"+/+/RTL_433toMQTT/Ambientweather-F007TH/2/154","dev_cla":"humidity","unit_of_meas":"%","name":"Humidity","uniq_id":"Ambientweather-F007TH-2-154-humidity","val_tpl":"{{ value_json.humidity | is_defined }}","stat_cla":"measurement","device":{"ids":["Ambientweather-F007TH-2-154"],"cns":[["mac","Ambientweather-F007TH-2-154"]],"mdl":"Ambientweather-F007TH","name":"Ambientweather-F007TH-2-154","via_device":"OMG_multi_receiver"}}
homeassistant/sensor/Ambientweather-F007TH-2-154-rssi/config
{"stat_t":"+/+/RTL_433toMQTT/Ambientweather-F007TH/2/154","dev_cla":"signal_strength","unit_of_meas":"dB","name":"RSSI","uniq_id":"Ambientweather-F007TH-2-154-rssi","val_tpl":"{{ value_json.rssi | is_defined }}","stat_cla":"measurement","device":{"ids":["Ambientweather-F007TH-2-154"],"cns":[["mac","Ambientweather-F007TH-2-154"]],"mdl":"Ambientweather-F007TH","name":"Ambientweather-F007TH-2-154","via_device":"OMG_multi_receiver"}}
homeassistant/sensor/Ambientweather-F007TH-2-154-temperature_C/config
{"stat_t":"+/+/RTL_433toMQTT/Ambientweather-F007TH/2/154","dev_cla":"temperature","unit_of_meas":"°C","name":"Temperature","uniq_id":"Ambientweather-F007TH-2-154-temperature_C","val_tpl":"{{ value_json.temperature_C | is_defined }}","stat_cla":"measurement","device":{"ids":["Ambientweather-F007TH-2-154"],"cns":[["mac","Ambientweather-F007TH-2-154"]],"mdl":"Ambientweather-F007TH","name":"Ambientweather-F007TH-2-154","via_device":"OMG_multi_receiver"}}
homeassistant/binary_sensor/Ambientweather-F007TH-2-154-battery_ok/config
{"stat_t":"+/+/RTL_433toMQTT/Ambientweather-F007TH/2/154","dev_cla":"battery","name":"Battery","uniq_id":"Ambientweather-F007TH-2-154-battery_ok","val_tpl":"{{ value_json.battery_ok | is_defined }}","pl_on":"0","pl_off":"1","device":{"ids":["Ambientweather-F007TH-2-154"],"cns":[["mac","Ambientweather-F007TH-2-154"]],"mdl":"Ambientweather-F007TH","name":"Ambientweather-F007TH-2-154","via_device":"OMG_multi_receiver"}}
MG_multi_receiver"}}
From readings and discussions in the Domoticz forums, I think that to be combined by Domoticz, the config topics should be (note the ‘/’ instead of “_”):
homeassistant/sensor/Ambientweather-F007TH-2-154/humidity/config
{"stat_t":"+/+/RTL_43...
homeassistant/sensor/Ambientweather-F007TH-2-154/rssi/config
{"stat_t":"+/+/RTL_43...
homeassistant/sensor/Ambientweather-F007TH-2-154/temperature_C/config
{"stat_t":"+/+/RTL_43...
homeassistant/binary_sensor/Ambientweather-F007TH-2-154/battery_ok/config
{"stat_t":"+/+/RTL_43...
Questions:
- has someone already encountered this problem?
- to test this, is there a simple way to modifiy these config topics without modifying the source code?