PimDoos / onesmartcontrolha

Home Assisttant integration for One Smart Control server
Apache License 2.0
4 stars 1 forks source link

V0.0.4 log errors #1

Closed dutch-erik closed 1 year ago

dutch-erik commented 1 year ago

V0.0.4 Just FYI, because I'm sure you do see the same thing. ;) Thanks a lot for your effort!

This error originated from a custom integration.

Logger: root
Source: custom_components/onesmartcontrol/onesmartwrapper.py:118
Integration: One Smart Control (documentation, issues)
First occurred: 09:14:09 (46 occurrences)
Last logged: 11:13:21

Error in gateway wrapper: 'meters'
Error in gateway wrapper: string indices must be integers
Error in gateway wrapper: list indices must be integers or slices, not dict
Error in gateway wrapper: 'devices'
Error in gateway wrapper: can't convert negative int to unsigned
Error in gateway wrapper: 'attributes'
Error in gateway wrapper: 'values'

This error originated from a custom integration.

Logger: root
Source: custom_components/onesmartcontrol/onesmartwrapper.py:115
Integration: One Smart Control (documentation, issues)
First occurred: 09:16:00 (8 occurrences)
Last logged: 11:01:03

Could not load data for COMFOAIR: {'error': 3, 'description': 'timeout'}
Could not load data for HEATPUMP: {'error': 3, 'description': 'timeout'}
Could not load data for HUAWEI SUN2000: {'error': 3, 'description': 'timeout'}
Could not load data for ONEENERGY: {'error': 300, 'description': 'Remote system error'}
Command timed out after 60 seconds: apparatus
Could not load data for HUAWEI SUN2000: {'error': 300, 'description': 'Remote system error'}```
PimDoos commented 1 year ago

Thanks for the report! Despite the errors, do your sensors show up in HA? I do expect some timeouts occasionally, as the modbus operations to the inverter, wtw and heatpump are not very reliable. I might suppress these later, as they (mostly) don't really affect operations as long as not all commands are timing out.

The errors in the top snippet should be fixed in v0.0.5.

PimDoos commented 1 year ago

Fixed in v0.0.5

dutch-erik commented 1 year ago

Yes, 4 devices and 70 entities do show up. Sun2000: I'm missing some entities, for example: yield total day, yield total. I see them in the One portal.

This error this morning:

This error originated from a custom integration.

Logger: root
Source: custom_components/onesmartcontrol/onesmartwrapper.py:114
Integration: One Smart Control (documentation, issues)
First occurred: 09:29:35 (2 occurrences)
Last logged: 09:33:46

Error in gateway wrapper: local variable 'device_name' referenced before assignment
PimDoos commented 1 year ago

Energy sensors for Sun2000 will be added later, they are available as appartus attributes 'e_total' and 'e_day'. I'm also planning to add more sensors for the heatpump and add climate entities for Sun2000 and the heat pump.