Possible to obtain data like Inverter Model etc ? #677
Replies: 2 comments 7 replies
-
Following the templating docs, you can do the following:
I don't think that there is a way to expose extra device info, as I am limited to what HA's |
Beta Was this translation helpful? Give feedback.
-
FYI Thijs, Looks good, managed to get this working so we can detect if there's one or two inverters and drop out the model details of: Huawei = SUN2000-##KTL-L# | SUN2000-##KTL-M# | SUN2000-##KTL-MB# (so 1 and 3 phase)
Unfortunately doesn't look like there's anywhere to pull the battery model from, with {{ device_attr("sensor.inverter_input_power", "battery_type") }} and {{ device_attr("sensor.inverter_input_power", "battery_1_type") }} responding with 'None' even though the diagnostic reports:
Was hopeful it could be pulled, that would allow (iirc the values) 1 = LG battery and 2 = LUNA2000 battery. That (or/with a check of one of the standard LUNA sensors status) could then be used to determine how many batteries... then would just need to work out if its a 5/10/15 or a 7/14/21 battery. |
Beta Was this translation helpful? Give feedback.
-
@wlcrs Hi Thijs,
Could you please assist, not being a programmer I can see that in the Huawei_Lib the bridge is providing the ability to 'pull' information such as:
I notice that in the WLCRS integration if you can to the 'Device Info' some of this information is populated there, such as the model_name (coming from Register 30,000). A quick look at the diagnostics shows, for example:
So it looks like your already pulling this information via modbus, just wondering if there's somewhere your storing this that can be accessed? i.e. Buried away as an attribute, that I can use template sensor to pull the atribute out and publish a a sensor(s).
Or is this something where a new 'user-defined-custom-sensors' would be needed to created in the sensor.py file, to have this information (then somehow only triggering it upon start/reboot, so its not queried every 30sec like the normal sensors).
Many thanks for any assistance / direction you can provide.
Beta Was this translation helpful? Give feedback.
All reactions