Good morning was wondering if someone might be able to help me with a question about the Xiaomi Mi power plug and zigbee2mqtt. .. zigbee2mqtt works fine in domoticz in general it does mostly what it suppose to. except it does not graph the power measurement. perhaps i am missing a step somewhere. if so maybe some kind soul would direct me to it.. I think the reason it is not graphing is because the power measurement has two outputs total kwh and current usage.. and domoticz does not know how to differentiate the two:
example from devices
Code: Select all
zigbee 0x00158d00027cbde8_kwh 4 zigbee - 0x00158d00027cbde8 General kWh 0, 305.08999999999997 1
all the single value devices graph fine such as say the link quality from the same device
Code: Select all
zigbee 0x00158d00027cbde8_signal 1 zigbee - 0x00158d00027cbde8 (Link Quality) General Custom Sensor 28 1
or the voltage
Code: Select all
zigbee 0x00158d00027cbde8_volt 3 zigbee - volts General Voltage 119 V 1
I looked through the python code of both zigbee2mqtt and domoticz zigbee2mqtt and I do not see where I can separate them into different values as zigbee2mqtt broadcast them as two different values in mqtt
example out put from zigbee2mqtt;
Code: Select all
{"state":"ON","power":304.19,"voltage":119,"consumption":11.48,"temperature":35,"linkquality":52}
also curiously it does not track the temperature and the consumption does not match as it seams to track kwh base differential of the previous.. to bad it not tracking the temperature of the device as that would be usefull if the device is working near it limits you could have the domoticz shut down the plug if the temp exceeds 50C as a safety percaution