Closed dutch-erik closed 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.
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
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.
V0.0.4 Just FYI, because I'm sure you do see the same thing. ;) Thanks a lot for your effort!