muppet3000 / homeassistant-grott

Home Assistant Integration for Grott - MQTT
MIT License
65 stars 14 forks source link

State of charge for batteries not showing #49

Open sidequest-tomas opened 9 months ago

sidequest-tomas commented 9 months ago

Previously i got how much kWh received and exported from batteries, but where have these sensors gone? Can not find them in the entity list anymore.

image

rabbadab commented 8 months ago

So I think I was a bit trigger happy for this. I was later yesterday looking into my HA logs and could see that I was getting an error from grott addon. There is a space added to a few values (, "epvtotal ": 66720, "epv1today ": 31,) that your addon does not like so I added an issue to Johan 459 for removing that. I edited my py code to include the space and I got many more values including the state of charge now. I'll try to then compare what I get now and not and give you a good list ;) Do you want it as a new issue?

muppet3000 commented 8 months ago

Thanks for the feedback. Just log it all here with bullet points like I described above and I'll then map them all through.

BobC76 commented 8 months ago

FYI, minor point on "statement of charge" below

Firstly though thanks for all the hard work: having finally got fed up with being locked out took the leap and installed the grott add-on and the grott integration. All was pretty straightforward to install, and worked seamlessly with my setup following the instructions. Apart from a moment of 'fear' over remapping the datalogger to another IP address and it all falling down, which didn't happen, seems to be working smoothly. got abit confused over whether I wanted/needed the grott add-on HA integration or the grott integration so temporarily ended up with duplicate MQTT and Grott sensors which was confusing but not a problem to tidy up.

I presumed I needed to also set up template sensors to get my existing front end to see some of the 'old' named items from the legacy integration, as described at https://github.com/muppet3000/homeassistant-grott/blob/main/docs/FAQ.md . But I have <device-id>_statement_of_charge while the MQTT provided <device-id>_battery_charge sensor after the upgrade and a grott provided <device-id>_state_of_charge. The template.yaml example assumes they're both named _battery_charge. So I've fixed my version of that template to remap the new to the old name, until I get around to fixing the frontend to point to the new directly. There are a few others like that. Just in case that's worth noting for anyone...