Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Zigbee DC electrical measurement sensor, are not dicovered by HA #11679

Answered by P-R-O-C-H-Y
tvixen asked this question in Q&A
Discussion options

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" ? 🤷‍♂️

You must be logged in to vote

This needs to be merged in ZHA in order to add DC measurement support zigpy/zha#453

Still pending...

Replies: 3 comments 6 replies

Comment options

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.

You must be logged in to vote
0 replies
Comment options

Hello @P-R-O-C-H-Y
Any chance you can comment on why its reporting AC values and not DC values?

You must be logged in to vote
2 replies
Comment options

This needs to be merged in ZHA in order to add DC measurement support zigpy/zha#453

Still pending...

Answer selected by tvixen
Comment options

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.

Comment options

Would be a great help if this sensor could produce the wanted measures from HA:
image

You must be logged in to vote
4 replies
Comment options

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);
Comment options

Yes the AC seems to work ... its the DC im missing.

Comment options

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.

Comment options

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /