-
Couldn't load subscription status.
- Fork 7.7k
Zigbee DC electrical measurement sensor, are not dicovered by HA #11679
-
I want to build a "Zigbee DC electrical measurement sensor" for my Solar panel and battery.
Both input and output in the same ESP32-C6 chip. So I started testing the example in the Arduino Zigbee library:
Zigbee DC electrical measurement sensor.ino
It compile fine and in the serial Monitor, it is sending volt, current and power. Everything looks fine...
But when connected to HA, it will only show up as "Identify" :
image
... I was expecting Volt, Current and Power like any other measuring sensor... like this:
image
image
But instead i looks like this:
image
It apparently does not transmit the 3 sensors...
Is there anything wrong with the example code, or am I using this Arduino code totally wrong, or looking at it from a wrong "angle" ? 🤷♂️
Beta Was this translation helpful? Give feedback.
All reactions
This needs to be merged in ZHA in order to add DC measurement support zigpy/zha#453
Still pending...
Replies: 3 comments 6 replies
-
Yep ... Still sending these values via ZigBee to HA....
image
AC values is reported in the other end.... question is, why AC and not DC?
Is it an error in the example, or an error in HA?
image
Ps. The AC sketch is working as a charm.
Beta Was this translation helpful? Give feedback.
All reactions
-
Hello @P-R-O-C-H-Y
Any chance you can comment on why its reporting AC values and not DC values?
Beta Was this translation helpful? Give feedback.
All reactions
-
This needs to be merged in ZHA in order to add DC measurement support zigpy/zha#453
Still pending...
Beta Was this translation helpful? Give feedback.
All reactions
-
ok thanks for letting me know about this issue.
Pls. let me know if I can be in any help at all, to solve this.
Beta Was this translation helpful? Give feedback.
All reactions
-
Would be a great help if this sensor could produce the wanted measures from HA:
image
Beta Was this translation helpful? Give feedback.
All reactions
-
I have been testing with AC and it was working fine. You can also add analogInput to your device where you can set the desired use case, for example:
// Set up analog input zbAnalogDevice.addAnalogInput(); zbAnalogDevice.setAnalogInputApplication(ESP_ZB_ZCL_AI_POWER_IN_WATTS_CONSUMPTION); zbAnalogDevice.setAnalogInputDescription("Power Consumption (Watts)"); zbAnalogDevice.setAnalogInputResolution(0.01);
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes the AC seems to work ... its the DC im missing.
Beta Was this translation helpful? Give feedback.
All reactions
-
Yeah because the DC is not added yet in HA. If you can ping in the ZHA DC support PR (I linked in comments above) that you want that to me merged, it can help to get their attention.
Beta Was this translation helpful? Give feedback.
All reactions
-
I already did. But Im also working with the modbus protocol for Epever Tracer.
This might give me some faster results than waiting for the DC sensor to be merged.
But thanks for info.
Beta Was this translation helpful? Give feedback.