bodyscape / cielo_home

Integration with Cielo Home
Apache License 2.0
44 stars 10 forks source link

Losing connection to Cielo Bre #16

Closed cvanover7 closed 11 months ago

cvanover7 commented 11 months ago

I have a Breeze Plus that Cielo loses connection every 2 hours, day after day. Cielo maintains network connection, but Home Assistant Cielo add-on looses connection. Cielodisconnects 023-07-04 11:34:20.382 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘homeassistant.util.read_only_dict.ReadOnlyDict object’ has no attribute ‘hol2023-07-04 11:34:20.381 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘homeassistant.util.read_only_dict.ReadOnlyDict object’ has no attribute ‘hvac_current_setting’ when rendering ‘{{ states.climate.main_level_ac.attributes.hvac_current_setting }}’ d_acttion’ when rendering ‘{{ states.climate.main_level_ac.attributes.hold_acttion }}’ 2023-07-04 11:34:20.383 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘homeassistant.util.read_only_dict.ReadOnlyDict object’ has no attribute ‘current_temp’ when rendering ‘{{ states.climate.main_level_ac.attributes.current_temp }}’ 2023-07-04 11:34:23.869 DEBUG (Thread-14497) [custom_components.cielo_home.cielohome] Send Ping Connection Reset 2023-07-04 11:34:24.021 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Send Json : {“message”: “Ping Connection Reset”, “token”: “***”} 2023-07-04 11:34:27.431 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Websocket closed : 8** 2023-07-04 11:34:27.431 INFO (MainThread) [custom_components.cielo_home.cielohome] Try reconnection in 5 secondes 2023-07-04 11:34:32.786 INFO (MainThread) [custom_components.cielo_home.cielohome] Connected success 2023-07-04 11:34:33.295 DEBUG (MainThread) [custom_components.cielo_home.cielohome] devices : [

bodyscape commented 11 months ago

I'll check on it!

bodyscape commented 11 months ago

what do you mean by 'Cielo maintains network connection', because the Cielo server kill the HA connection when he detect no activity. Do you lost the state of something after a reconnection? There a reason why i put a log 'INFO' and not error on the reconnection. I don't have control on it when the server close it.

cvanover7 commented 11 months ago

I've monitored my router and the Cielo device never closes the network connection (ruling out network issues, network drops). I want HA to monitor the AC (when the AC unit cools, etc), but all I get is "unavailable" and "on" every 2 hours. Does HA need a heartbeat to Cielo device to keep the connection open?

cvanover7 commented 11 months ago

Any idea why it keeps losing connection or how to prevent it?

bodyscape commented 11 months ago

Try Version 1.4.7

cvanover7 commented 11 months ago

Version 1.4.7 seems to fix the connection issue, 18 hours and still connected.!! Thanks. I was hoping that maintaining connection would allow me to monitor the current state of the mini split, IE trigger from the mini split when it automatically switches from 'off' to 'cool' when the Mini split crosses a temperature threshold. However, I don't see that trigger in HA. I see triggers on HVAC Options "Auto" to "Cool", but this appears to trigger when I make the change in the Cielo app and not when the Mini split automatically switches based on it's internal temperature.

bodyscape commented 11 months ago

No idea why, sorry about this one!

cvanover7 commented 11 months ago

I believe this (my last comment) is a Cielo issue and not cielo_home or HA issue. 1.4.7 fixed the disconnect issue and this can be closed.