Well that’s over a week now and still no official fix… any ideas when the next release of HA will be? or is it going to be lumped into the next monthly build? another 10 days away?
<rant> with all the breaking changes and issues with updates taking so long to be pushed out like this I’m starting to get really frustrated with HA, I spend way more time maintaining the system than what it could possibly ever contribute to my life. Don’t get me wrong I love learning, tinkering and the challenge of building things, its just getting to the point of “is it worth it”, so many people are interested in my setup when i get notifications from my cameras with AI highlighting people and cars, or when my air conditioning automatically adjusts based on solar production and full breakdowns of what appliances are costing the most or how much I’ve saved on power bills from having things controlled by HA. but ultimately the complexity of setting it all up and maintaining it is more than most can do themselves. </rant>
this might sound silly, but can the integration be cloned into HACS so we can update without waiting for official updates?
can’t we just read the data from the inverters themselves ?
then we are no longer dependent on chinese webservers !
mine are connected via LAN to my network, why not read them locally ?
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 249, in _async_setup_platform
await asyncio.shield(task)
File “/config/custom_components/growatt_server/sensor.py”, line 903, in async_setup_entry
devices, plant_id = await hass.async_add_executor_job(get_device_list, api, config)
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/growatt_server/sensor.py”, line 878, in get_device_list
login_response = api.login(config[CONF_USERNAME], config[CONF_PASSWORD])
File “/usr/local/lib/python3.9/site-packages/growattServer/init.py”, line 119, in login
data = json.loads(response.content.decode(‘utf-8’))[‘back’]
File “/usr/local/lib/python3.9/json/init.py”, line 346, in loads
return _default_decoder.decode(s)
File “/usr/local/lib/python3.9/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/local/lib/python3.9/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I have checked the login details, they are 100% correct.
Does anyone have an idea what is going wrong and how I can fix it?
Problem is there again for me:
Logger: homeassistant.components.growatt_server.sensor
Source: components/growatt_server/sensor.py:176
Integration: Growatt Server (documentation, issues)
First occurred: 14:04:53 (1 occurrences)
Last logged: 14:04:53
Unable to fetch data from Growatt server
After this I also tried the uninstall of the integration / install integration. Install itself was succesful but still no data:
Logger: homeassistant.components.sensor
Source: components/growatt_server/sensor.py:164
Integration: Sensor (documentation, issues)
First occurred: 14:04:54 (2 occurrences)
Last logged: 14:04:54
Error adding entities for domain sensor with platform growatt_server
Error while setting up growatt_server platform for sensor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 428, in async_add_entities
await asyncio.gather(*tasks)
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 691, in _async_add_entity
await entity.add_to_platform_finish()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 777, in add_to_platform_finish
self.async_write_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 533, in async_write_ha_state
self._async_write_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 571, in _async_write_ha_state
state = self._stringify_state(available)
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 539, in _stringify_state
if (state := self.state) is None:
File “/usr/src/homeassistant/homeassistant/components/sensor/init.py”, line 404, in state
value = self.native_value
File “/usr/src/homeassistant/homeassistant/components/growatt_server/sensor.py”, line 164, in native_value
result = round(result, self.entity_description.precision)
TypeError: type NoneType doesn’t define round method
Uninstalled and installed the application again. Today this was succesful. I did it last time as well but then it had no effect.
I assume the integration changed the last days for the good.
Thanks to the people that replied and big thanks to the people that fixed the integration!