goodwe-sems-home-assistant icon indicating copy to clipboard operation
goodwe-sems-home-assistant copied to clipboard

Feedback on moving from extra_state_attributes to sensors.

Open L-four opened this issue 1 year ago • 4 comments

I have been working on a branch which exposes API data as Sensors rather then extra_state_attributes on the inverter entity. Is allows us to tell home assistant about the types of the attributes.

Here's where I currently stand in this development https://github.com/L-four/goodwe-sems-home-assistant/blob/master/custom_components/sems/sensor.py

I would like to gauge interest merging this change and gathering feedback on these changes.

Screenshots:

image image

L-four avatar Oct 21 '23 09:10 L-four

Really nice work. I think it would definitely make the component more future proof! Also it makes access to the different attributes as sensors a lot nicer than using templates.

Maybe a next step would be to make a PR and iterate in there, or put it on a branch here, so we can make a beta release at least.

TimSoethout avatar Oct 23 '23 13:10 TimSoethout

Yeah, individual sensors would be awesome. I'm a noob with HA, but I could help with testing this anyways - if someone tells me how to install a dev branch of this integration.

f00f avatar Oct 31 '23 11:10 f00f

this is nice. hope it will be merged soon.

robinhood-code avatar Nov 03 '23 14:11 robinhood-code

@TimSoethout created a PR from this: https://github.com/TimSoethout/goodwe-sems-home-assistant/pull/91

f00f avatar Nov 06 '23 09:11 f00f