Logic to disable entities when Extra Battery not connected #102
Unanswered
Ne0-Hack3r
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@vwt12eh8
I have been studying your code as an exercise in learning how to build HA integration, learning more about the byte stream sequences used over TCP with the Delta Pro in particular, and also as part of my journey into learning and using Python.
I've successfully modified a few things to expose some additional data (such as battery cell voltages) as new sensors. For Delta Pro these are per BMS and I see the appropriate entities now in HA including ones for Extra2. I notice that when 2nd Extra Battery is not present the entities created originally by your integration are disabled (such as Extra2 Battery Cycles). However, the ones I've added are not disabled.
I've been searching through the code to find the logic that disables the appropriate entities related to an extra battery when not present but cannot seem to locate the specific code I need to modify to include the additional entities I have added. If you could point me in the right direction it would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions