bodyscape / cielo_home

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

Not receiving any response when sending command #44

Closed Kennyc1012 closed 5 months ago

Kennyc1012 commented 6 months ago

When trying to issue an action (setting temp, turn on, turn off, etc...) nothing is happening. There isn't much to go on by the logs, the only thing I have noticed is there is no response after making the API calls.

In the logs below, I have tried to set the thermostat to a different value but nothing happened on the unit.

2023-12-29 12:22:05.207 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Send Json : {"action": "actionControl", "macAddress": "REDACTED", "deviceTypeVersion": "BB02", "fwVersion": "1.0.9,2.4.0", "actionSource": "WEB", "applianceType": "AC", "applianceId": 308, "myRuleConfiguration": {}, "connection_source": 0, "user_id": "REDACTED", "token": "*****", "mid": "chrome-1696167032", "preset": 0, "application_version": "1.0.0", "ts": 1703888525, "actions": {"power": "on", "mode": "heat", "fanspeed": "auto", "temp": "74", "swing": "auto", "light": "off", "followme": "off"}, "oldPower": "on", "actionType": "temp", "actionValue": 74}
2023-12-29 12:23:38.893 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Send Json : {"action": "actionControl", "macAddress": "REDACTED", "deviceTypeVersion": "BB02", "fwVersion": "1.0.9,2.4.0", "actionSource": "WEB", "applianceType": "AC", "applianceId": 308, "myRuleConfiguration": {}, "connection_source": 0, "user_id": "REDACTED", "token": "*****", "mid": "chrome-1696167032", "preset": 0, "application_version": "1.0.0", "ts": 1703888618, "actions": {"power": "on", "mode": "heat", "fanspeed": "auto", "temp": "82", "swing": "auto", "light": "off", "followme": "off"}, "oldPower": "on", "actionType": "temp", "actionValue": 82}
2023-12-29 12:24:05.417 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Send Json : {"action": "actionControl", "macAddress": "REDACTED", "deviceTypeVersion": "BB02", "fwVersion": "1.0.9,2.4.0", "actionSource": "WEB", "applianceType": "AC", "applianceId": 308, "myRuleConfiguration": {}, "connection_source": 0, "user_id": "REDACTED", "token": "*****", "mid": "chrome-1696167032", "preset": 0, "application_version": "1.0.0", "ts": 1703888645, "actions": {"power": "on", "mode": "heat", "fanspeed": "auto", "temp": "80", "swing": "auto", "light": "off", "followme": "off"}, "oldPower": "on", "actionType": "temp", "actionValue": 80}

In these logs below, you can see after a Send Json action is made, a Receive Json action is received.

2023-12-30 09:29:34.461 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Send Json : {"action": "actionControl", "macAddress": "REDACTED", "deviceTypeVersion": "BB02", "fwVersion": "1.0.9,2.4.0", "actionSource": "WEB", "applianceType": "AC", "applianceId": 308, "myRuleConfiguration": {}, "connection_source": 0, "user_id": "REDACTED", "token": "*****", "mid": "chrome-1696167032", "preset": 0, "application_version": "1.0.0", "ts": 1703964574, "actions": {"power": "on", "mode": "heat", "fanspeed": "auto", "temp": "78", "swing": "auto", "light": "off", "followme": "off"}, "oldPower": "on", "actionType": "temp", "actionValue": 78}
2023-12-30 09:29:36.212 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Receive Json : {"message_type": "StateUpdate", "action": {"uirules": "default:default:default", "device_status": "on", "temp": "78", "action_source": "WEB", "statustimestamp": "1702674430", "fanspeed": "auto", "mode": "heat", "swing": "auto", "followme": "off", "ontimestamp": "1703937117", "power": "on", "mode_timestamp": "1702467807", "timestamp": "1703946576", "moderules": "default:default:default"}, "mac_address": "REDACTED", "mid": "WEB", "stateSync": "0", "exe": "1", "my_rule_configuration": {}, "lat_env_var": {"temperature": "67", "humidity": "40"}, "device_status": 1, "device_name": "Living room heat pump", "fw_version": "1.0.9,2.4.0", "accessToken": "*****", "refreshToken": "*****"}
2023-12-30 09:29:38.625 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Send Json : {"action": "actionControl", "macAddress": "REDACTED", "deviceTypeVersion": "BB02", "fwVersion": "1.0.9,2.4.0", "actionSource": "WEB", "applianceType": "AC", "applianceId": 308, "myRuleConfiguration": {}, "connection_source": 0, "user_id": "REDACTED", "token": "*****", "mid": "chrome-1696167032", "preset": 0, "application_version": "1.0.0", "ts": 1703964578, "actions": {"power": "on", "mode": "heat", "fanspeed": "auto", "temp": "76", "swing": "auto", "light": "off", "followme": "off"}, "oldPower": "on", "actionType": "temp", "actionValue": 76}
2023-12-30 09:29:39.930 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Receive Json : {"message_type": "StateUpdate", "action": {"uirules": "default:default:default", "device_status": "on", "temp": "76", "action_source": "WEB", "statustimestamp": "1702674442", "fanspeed": "auto", "mode": "heat", "swing": "auto", "followme": "off", "ontimestamp": "1703946280", "power": "on", "mode_timestamp": "1698867842", "timestamp": "1703946295", "moderules": "default:default:default"}, "mac_address": "REDACTED", "mid": "Heartbeat", "stateSync": "0", "exe": "0", "my_rule_configuration": {}, "lat_env_var": {"temperature": "59", "humidity": "43"}, "device_status": 1, "device_name": "Basement heat pump", "fw_version": "1.0.8,2.4.0", "accessToken": "*****", "refreshToken": "*****"}
2023-12-30 09:29:40.284 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Receive Json : {"message_type": "StateUpdate", "action": {"uirules": "default:default:default", "device_status": "on", "temp": "76", "action_source": "WEB", "statustimestamp": "1702674430", "fanspeed": "auto", "mode": "heat", "swing": "auto", "followme": "off", "ontimestamp": "1703937117", "power": "on", "mode_timestamp": "1702467807", "timestamp": "1703946580", "moderules": "default:default:default"}, "mac_address": "REDACTED", "mid": "WEB", "stateSync": "0", "exe": "1", "my_rule_configuration": {}, "lat_env_var": {"temperature": "67", "humidity": "40"}, "device_status": 1, "device_name": "Living room heat pump", "fw_version": "1.0.9,2.4.0", "accessToken": "*****", "refreshToken": "*****"}
2023-12-30 09:31:10.646 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Send Json : {"action": "actionControl", "macAddress": "REDACTED", "deviceTypeVersion": "BB02", "fwVersion": "1.0.9,2.4.0", "actionSource": "WEB", "applianceType": "AC", "applianceId": 308, "myRuleConfiguration": {}, "connection_source": 0, "user_id": "REDACTED", "token": "*****", "mid": "chrome-1696167032", "preset": 0, "application_version": "1.0.0", "ts": 1703964670, "actions": {"power": "on", "mode": "heat", "fanspeed": "auto", "temp": "74", "swing": "auto", "light": "off", "followme": "off"}, "oldPower": "on", "actionType": "temp", "actionValue": 74}
2023-12-30 09:31:12.410 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Receive Json : {"message_type": "StateUpdate", "action": {"uirules": "default:default:default", "device_status": "on", "temp": "74", "action_source": "WEB", "statustimestamp": "1702674430", "fanspeed": "auto", "mode": "heat", "swing": "auto", "followme": "off", "ontimestamp": "1703937117", "power": "on", "mode_timestamp": "1702467807", "timestamp": "1703946672", "moderules": "default:default:default"}, "mac_address": "REDACTED", "mid": "WEB", "stateSync": "0", "exe": "1", "my_rule_configuration": {}, "lat_env_var": {"temperature": "67", "humidity": "40"}, "device_status": 1, "device_name": "Living room heat pump", "fw_version": "1.0.9,2.4.0", "accessToken": "*****", "refreshToken": "*****"}
2023-12-30 09:31:13.214 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Send Json : {"action": "actionControl", "macAddress": "REDACTED", "deviceTypeVersion": "BB02", "fwVersion": "1.0.9,2.4.0", "actionSource": "WEB", "applianceType": "AC", "applianceId": 308, "myRuleConfiguration": {}, "connection_source": 0, "user_id": "REDACTED", "token": "*****", "mid": "chrome-1696167032", "preset": 0, "application_version": "1.0.0", "ts": 1703964673, "actions": {"power": "on", "mode": "heat", "fanspeed": "auto", "temp": "72", "swing": "auto", "light": "off", "followme": "off"}, "oldPower": "on", "actionType": "temp", "actionValue": 72}
2023-12-30 09:31:14.956 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Receive Json : {"message_type": "StateUpdate", "action": {"uirules": "default:default:default", "device_status": "on", "temp": "72", "action_source": "WEB", "statustimestamp": "1702674430", "fanspeed": "auto", "mode": "heat", "swing": "auto", "followme": "off", "ontimestamp": "1703937117", "power": "on", "mode_timestamp": "1702467807", "timestamp": "1703946675", "moderules": "default:default:default"}, "mac_address": "REDACTED", "mid": "WEB", "stateSync": "0", "exe": "1", "my_rule_configuration": {}, "lat_env_var": {"temperature": "67", "humidity": "40"}, "device_status": 1, "device_name": "Living room heat pump", "fw_version": "1.0.9,2.4.0", "accessToken": "*****", "refreshToken": "*****"}
2023-12-30 09:31:16.164 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Send Json : {"action": "actionControl", "macAddress": "REDACTED", "deviceTypeVersion": "BB02", "fwVersion": "1.0.9,2.4.0", "actionSource": "WEB", "applianceType": "AC", "applianceId": 308, "myRuleConfiguration": {}, "connection_source": 0, "user_id": "REDACTED", "token": "*****", "mid": "chrome-1696167032", "preset": 0, "application_version": "1.0.0", "ts": 1703964676, "actions": {"power": "on", "mode": "heat", "fanspeed": "auto", "temp": "76", "swing": "auto", "light": "off", "followme": "off"}, "oldPower": "on", "actionType": "temp", "actionValue": 76}
2023-12-30 09:31:17.925 DEBUG (MainThread) [custom_components.cielo_home.cielohome] Receive Json : {"message_type": "StateUpdate", "action": {"uirules": "default:default:default", "device_status": "on", "temp": "76", "action_source": "WEB", "statustimestamp": "1702674430", "fanspeed": "auto", "mode": "heat", "swing": "auto", "followme": "off", "ontimestamp": "1703937117", "power": "on", "mode_timestamp": "1702467807", "timestamp": "1703946678", "moderules": "default:default:default"}, "mac_address": "REDACTED", "mid": "WEB", "stateSync": "0", "exe": "1", "my_rule_configuration": {}, "lat_env_var": {"temperature": "67", "humidity": "40"}, "device_status": 1, "device_name": "Living room heat pump", "fw_version": "1.0.9,2.4.0", "accessToken": "*****", "refreshToken": "*****"}

Reloading the plugin fixes the issue, but it happens eventually after some time. My guess is a token is not being refreshed if expired before making an API request resulting in nothing happening.

bodyscape commented 6 months ago

The token is being refresh, Weird! i'll check on it.

bodyscape commented 6 months ago

@Kennyc1012 Try the 1.6.6-Pre1 with the beta filter in HACS.

Kennyc1012 commented 6 months ago

@bodyscape Thanks for the quick update. Just installed and will run for the next few days. Will report back with any issues.

bodyscape commented 6 months ago

@Kennyc1012 i test it also, i think i have the same problem sometimes. ;)

Kennyc1012 commented 6 months ago

@bodyscape just ran into the issue again. First one since I installed the version with the fix. Logs show the same thing as before.

miles267 commented 6 months ago

If we are running 1.6.5 release, should we update to the beta 1.6.6-Pre2?

bodyscape commented 6 months ago

@Kennyc1012 try the 1.6.6-Pre3, i think i found it. @miles267 if you want test it you can or wait the final version!

bodyscape commented 6 months ago

@Kennyc1012 forget it. Don't work! :(

bodyscape commented 5 months ago

@Kennyc1012 try 1.6.6-Pre4 😉 i test for 24 hours. It's seem good! But we never know! 😁

Kennyc1012 commented 5 months ago

@bodyscape installed pre4 this morning. Just ran into the issue now. Same thing in the logs where there is no response.

bodyscape commented 5 months ago

Lol me too. I found something else. I will let you know when I'm done. Thx

bodyscape commented 5 months ago

@Kennyc1012 try the 1.6.6-Pre5

Kennyc1012 commented 5 months ago

@bodyscape Still not working 😔

bodyscape commented 5 months ago

@Kennyc1012 you restart you HA right? after update the integration? Because i don't have the problem anymore for now.

image

Kennyc1012 commented 5 months ago

I'm fairly sure I did. Let me do that and test it again.

bodyscape commented 5 months ago

@Kennyc1012 since the last version the problem still never happen to me, at least yet. You? 😉

Kennyc1012 commented 5 months ago

So far, no. Seems to be working so far.

Kennyc1012 commented 5 months ago

@bodyscape just had it happen to me now. Lasted longer than usual though

bodyscape commented 5 months ago

@Kennyc1012 try the 1.6.6-Pre8. Lol i think this is the one! ;)

Kennyc1012 commented 5 months ago

Looking good after 24 hours. If no issues after another 24 I would say it has been fixed.

Kennyc1012 commented 5 months ago

Everything is working great. Going to close this. Thanks again @bodyscape for all your help