MQTT Gateway not publishing all data from device

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
Hencor
Posts: 48
Joined: Sunday 01 September 2019 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: DE
Contact:

MQTT Gateway not publishing all data from device

Post by Hencor »

Hello,

I‘m using the „normal“ mqtt hardware to publish data from a general kWh meter. Is there a possibility to have also the counter today value published? That would be very helpful to not need to calculate this value in a different application again.
It seems that only the actual watts and the total counter are included in the data.
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT Gateway not publishing all data from device

Post by waltervl »

If it is not in the mqtt message it cannot be published with standard Domoticz MQTT as there is no configuration option to do this.

You could write a dzvents script so send it with mosquitto_pub as it is a dzvents attribute of a counter device or have the external application read the getdevice JSON for the counter were it is listed.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest