Modification made on 2 sensors #40
Closed
TecnoTalarn
started this conversation in
General
Replies: 1 comment
-
pvPower was already added, also updated batCurr Please mark as answered if this helps |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After integrating this code into HA, I have noticed that the graphs of esolar pvPower and esolar batCurr are not displayed. Looking at the code I saw that they do not have the unit of measure assigned. I modified these descriptions by adding the lines as shown here, and now I see the corresponding graphics.
SensorEntityDescription(
key="pvPower",
name="pvPower",
icon="mdi:solar-panel-large",
native_unit_of_measurement=POWER_WATT,
),
SensorEntityDescription(
key="batCurr",
name="batCurr",
icon="mdi:solar-panel-large",
native_unit_of_measurement="A",
),
Beta Was this translation helpful? Give feedback.
All reactions