Updated to latest in HACS 0.81 now not working ie sensor there but no data. Error below
Unable to connect to Fronius: HTTPConnectionPool(host='192.168.0.6device', port=80): Max retries exceeded with url: /?Scope=System&DeviceId=1&DataCollection=CommonInverterData (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f83de97d890>: Failed to establish a new connection: [Errno -2] Name does not resolve'))
Just updated and half way there get 2 sensors only - i am using scope = system and below error
Wed Jul 24 2019 16:23:36 GMT+1200 (New Zealand Standard Time)
fronius_inverter: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 261, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 380, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/fronius_inverter/sensor.py", line 177, in update
state += self._data.latest_data[self._json_key]['Values'][item]
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'int'
Unable to connect to Fronius: HTTPConnectionPool(host='192.168.0.219', port=80): Max retries exceeded with url: /solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f1a7da3d610>, 'Connection to 192.168.0.219 timed out. (connect timeout=10)'))
After restart card there but no dater
Unable to connect to Fronius: HTTPConnectionPool(host='192.168.0.219', port=80): Max retries exceeded with url: /solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc727118910>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
Fronius Inverter URL: http://192.168.#.#/solar_api/v1/GetInverterRealtimeData.cgi?Scope=System&DeviceId=1&DataCollection=CommonInverterData
July 24, 2019, 10:23 AM custom_components/fronius_inverter/sensor.py (ERROR) - message first occured at July 24, 2019, 10:08 AM and shows up 4 times
But everything is displayed correctly my scope is set “System”
interesting ours is set for wifi to be always on but if you are saying this is relating to the inverter being off line I would imagine that would change based on wether it is producing anything ???
I’ve uploaded a version to the master branch that now defaults to accessing the API from “sunrise” to “sunset”, but can be overridden manually via:
start_time: ‘07:00’
stop_time: ‘17:00’
It’s very hard to force a value after an update in this case.
We ideally don’t want to drop all values to zero each night (such as yearly total) when there is no data available, which conflicts with getting no data if the system is restarted at night.