PimDoos / onesmartcontrolha

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

All entities are not available #51

Closed mirkin-pixel closed 11 months ago

mirkin-pixel commented 1 year ago

Since the last weeks all of the entities are unavailable. A reinstalled the integration but it doesn’t solved the problem. IMG_1258

PimDoos commented 1 year ago

Can you check the firmware version of your One Connect Server and whether you have the latest version of the integration installed? image

Also, check if there are any log entries related to this integration. If none are visible for the onesmartcontrol integration, enable debug logging: image

mirkin-pixel commented 1 year ago

Firmware version is: 2.5.20 IMG_1260

I enabled logging, how long does it take before log entires shows up?

PimDoos commented 1 year ago

You might have to reload the integration or restart Home Assistant to trigger a connection attempt from the integration

mirkin-pixel commented 1 year ago

Hmm, tried both but still nothing.

PimDoos commented 1 year ago

Are the devices still visible in the One Smart Control app?

mirkin-pixel commented 1 year ago

Yes they are all visible IMG_1264 IMG_1263 IMG_1262

I found this in the log: 2023-05-04 20:38:01.203 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Socket push: Established network connection 2023-05-04 20:38:01.344 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Socket push: Authentication successful 2023-05-04 20:38:01.498 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Socket poll: Established network connection 2023-05-04 20:38:01.533 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Socket poll: Authentication successful 2023-05-04 20:38:01.533 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Handling 6 update flags: [(<OneSmartCommand.SITE: 'site'>, <OneSmartAction.GET: 'get'>), (<OneSmartCommand.METER: 'meter'>, <OneSmartAction.LIST: 'list'>), (<OneSmartCommand.DEVICE: 'device'>, <OneSmartAction.LIST: 'list'>), (<OneSmartCommand.PRESET: 'preset'>, <OneSmartAction.LIST: 'list'>), (<OneSmartCommand.ROOM: 'room'>, <OneSmartAction.LIST: 'list'>), (<OneSmartCommand.ENERGY: 'energy'>, <OneSmartAction.TOTAL: 'total'>)]

PimDoos commented 1 year ago

Looks like startup is succesful, but it does not receive data about available attritubes from the One Connect. After startup, does the log periodically output these 'Handling x update flags' log messages? (Every 5 minutes or so)

mirkin-pixel commented 1 year ago

I don’t see any of those log messages, I looked at the whole logbook

PimDoos commented 1 year ago

Please update to v0.3.6 and see if entities are discovered in the log

mirkin-pixel commented 1 year ago

Log: 2023-05-06 19:53:49.655 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Socket push: Established network connection 2023-05-06 19:53:49.961 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Socket push: Authentication successful 2023-05-06 19:53:50.062 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Socket poll: Established network connection 2023-05-06 19:53:50.216 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Socket poll: Authentication successful 2023-05-06 19:53:50.216 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Handling 6 update flags: [(<OneSmartCommand.SITE: 'site'>, <OneSmartAction.GET: 'get'>), (<OneSmartCommand.METER: 'meter'>, <OneSmartAction.LIST: 'list'>), (<OneSmartCommand.DEVICE: 'device'>, <OneSmartAction.LIST: 'list'>), (<OneSmartCommand.PRESET: 'preset'>, <OneSmartAction.LIST: 'list'>), (<OneSmartCommand.ROOM: 'room'>, <OneSmartAction.LIST: 'list'>), (<OneSmartCommand.ENERGY: 'energy'>, <OneSmartAction.TOTAL: 'total'>)] 2023-05-06 19:53:51.397 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Discovering entities for 6 devices 2023-05-06 19:53:51.856 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Discovered 2 entities for platform climate 2023-05-06 19:53:51.856 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Discovered 1 entities for platform select 2023-05-06 19:53:51.856 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Discovered 62 entities for platform sensor 2023-05-06 19:53:51.856 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Discovered 1 entities for platform switch 2023-05-06 19:53:51.856 INFO (MainThread) [custom_components.onesmartcontrol.onesmartwrapper] Discovered 1 entities for platform water_heater

PimDoos commented 1 year ago

Okay so it is discovering the entities... Normally the entities should finish loading their states in about 5 minutes after startup. Are there any entities that do load? I'm expecting to see at least the System Mode entity under the One Connect Server load correctly. image

mirkin-pixel commented 1 year ago

A few entities are showing up, but only these IMG_1273 All the other entities releated to the heatpump or comfoair are unavailable

PimDoos commented 1 year ago

I think this is related to the OneEnergy module upstairs. Can you try restarting the OneEnergy and OneConnect modules (probably requires shutting off the power) and try if this resolves the issue?

mirkin-pixel commented 1 year ago

I restarted both, switched of the main power downstairs en upstairs. Both units restarted but the same result.

PimDoos commented 11 months ago

I just encountered this same issue on one of my HA deployments. I think it might be related to the push socket not fully starting until HA reports it is done starting up.