Closed d96moe closed 1 month ago
@d96moe Hi, so you see the heat/cool option and if you set it, it just defaults back to the old state?
Are you on the latest version of the integration 2024.9.3? If so, can you check the device page and under Diagnostics does it say Data Mode
Live or Cached?
Hi @sockless-coding, Yes exactly, I see and set heat/cool and for a couple of seconds the right mode is also show but then goes back to show the prev mode (but checking the cc app, it States heat/cool correctly). Looks like it miss-parse the response from cloud or something. Was on 2024.9.1 but updated now to 9.3. Same issue and diagnostics shows data mode "live".
@d96moe 2024.9.0 and .1 had an issue where the cached data was always fetched. If you are running 2024.9.3 and it says LIVE the state should be correct.
@sockless-coding, OK, apperantly there is then some kind of other issue still in 9.3 Heatpump is currently heating in the heat/cool mode but the plugin still shows the mode cool.
Can you provide the debug logs from 2024.9.3
Sure, of course 👍 I hope I managed to copy out the right section, please let me know if I missed anything.
2024-10-02 21:49:58.223 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/deviceStatus/CS-NZ25VKE%XXXXXXXXXX, response: {"timestamp":1727898598082,"permission":3,"summerHouse":2,"iAutoX":false,"nanoe":false,"nanoeStandAlone":false,"autoMode":true,"heatMode":true,"fanMode":true,"dryMode":true,"coolMode":true,"ecoNavi":false,"powerfulMode":true,"quietMode":true,"airSwingLR":true,"autoSwingUD":false,"ecoFunction":0,"temperatureUnit":0,"modeAvlList":{"autoMode":1},"nanoeList":{"visualizationShow":0},"clothesDrying":false,"insideCleaning":false,"fireplace":false,"pairedFlg":false,"parameters":{"ecoFunctionData":0,"insideCleaning":0,"fireplace":0,"lastSettingMode":0,"operate":1,"operationMode":2,"temperatureSet":22.5,"fanSpeed":0,"fanAutoMode":0,"airSwingLR":2,"airSwingUD":2,"ecoMode":2,"ecoNavi":0,"nanoe":0,"iAuto":0,"airDirection":1,"insideTemperature":22,"outTemperature":5,"airQuality":0}} 2024-10-02 21:49:58.223 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicdevice] Loading device parameters, has data: True 2024-10-02 21:49:58.223 DEBUG (MainThread) [custom_components.panasonic_cc.coordinator] Finished fetching Panasonic Device Coordinator data in 1.459 seconds (success: True) 2024-10-02 21:50:27.530 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] POST url: https://accsmart.panasonic.com/deviceStatus/control, data: {'deviceGuid': 'CS-NZ25VKE+YYYYYYYY', 'parameters': {'operationMode': 0}}, response: {"result":0} 2024-10-02 21:50:29.596 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/deviceStatus/CS-NZ25VKE%XXXXXXXXCC, response: {"timestamp":1727898629466,"permission":3,"summerHouse":2,"iAutoX":false,"nanoe":false,"nanoeStandAlone":false,"autoMode":true,"heatMode":true,"fanMode":true,"dryMode":true,"coolMode":true,"ecoNavi":false,"powerfulMode":true,"quietMode":true,"airSwingLR":true,"autoSwingUD":false,"ecoFunction":0,"temperatureUnit":0,"modeAvlList":{"autoMode":1},"nanoeList":{"visualizationShow":0},"clothesDrying":false,"insideCleaning":false,"fireplace":false,"pairedFlg":false,"parameters":{"ecoFunctionData":0,"insideCleaning":0,"fireplace":0,"lastSettingMode":0,"operate":1,"operationMode":0,"temperatureSet":22.5,"fanSpeed":0,"fanAutoMode":0,"airSwingLR":2,"airSwingUD":2,"ecoMode":2,"ecoNavi":0,"nanoe":0,"iAuto":0,"airDirection":1,"insideTemperature":21,"outTemperature":5,"airQuality":0}} 2024-10-02 21:50:29.596 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicdevice] Loading device parameters, has data: True 2024-10-02 21:50:29.596 DEBUG (MainThread) [custom_components.panasonic_cc.coordinator] Finished fetching Panasonic Device Coordinator data in 1.833 seconds (success: True)
Found the issue, 2024.10.0 should solve it
Great news, thank you @sockless-coding! Really appreciate your efforts with this plugin and the time you manage to find to put into this! Again, thanks!
Checklist
What version of Home Assistant Core?
core-2024.9.3
Describe the issue
The CC integration doesn't show the Heat/Cool mode. I can set the mode from HA and see that it's being set accordingly in the CC app but the integration then shows the mode cool again (but heating is shown correctly).
Looking at the log below, it looks like the operation mode is being changed (4 and 0)??
Error/Debug Logs
2024-09-28 18:13:25.505 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicdevice] Loading device parameters, has data: True 2024-09-28 18:13:25.505 DEBUG (MainThread) [custom_components.panasonic_cc.coordinator] Finished fetching Panasonic Device Coordinator data in 0.391 seconds (success: True) 2024-09-28 18:13:55.509 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicdevice] Loading device parameters, has data: True 2024-09-28 18:13:55.509 DEBUG (MainThread) [custom_components.panasonic_cc.coordinator] Finished fetching Panasonic Device Coordinator data in 0.395 seconds 2024-09-28 18:13:57.978 DEBUG (MainThread) [custom_components.panasonic_cc.coordinator] Finished fetching Panasonic Device Energy Coordinator data in 0.810 seconds (success: True) 2024-09-28 18:14:15.058 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] POST url: https://accsmart.panasonic.com/deviceStatus/control, data: {'deviceGuid': 'CS-NZ25VKE+XXXXX', 'parameters': {'operationMode': 4}}, response: {"result":0} 2024-09-28 18:14:25.470 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/deviceStatus/now/CS-NZ25VKE%_XXXXXX_, response: {"timestamp":1727540056985,"permission":3,"summerHouse":2,"iAutoX":false,"nanoe":false,"nanoeStandAlone":false,"autoMode":true,"heatMode":true,"fanMode":true,"dryMode":true,"coolMode":true,"ecoNavi":false,"powerfulMode":true,"quietMode":true,"airSwingLR":true,"autoSwingUD":false,"ecoFunction":0,"temperatureUnit":0,"modeAvlList":{"autoMode":1},"nanoeList":{"visualizationShow":0},"clothesDrying":false,"insideCleaning":false,"fireplace":false,"pairedFlg":false,"parameters":{"operate":1,"operationMode":4,"temperatureSet":22,"fanSpeed":0,"fanAutoMode":0,"airSwingLR":2,"airSwingUD":2,"ecoMode":0,"ecoNavi":0,"nanoe":0,"lastSettingMode":1,"iAuto":0,"airDirection":1,"insideTemperature":19,"outTemperature":11,"airQuality":0,"ecoFunctionData":0,"insideCleaning":0,"fireplace":0}} 2024-09-28 18:14:25.470 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicdevice] Loading device parameters, has data: True 2024-09-28 18:14:25.470 DEBUG (MainThread) [custom_components.panasonic_cc.coordinator] Finished fetching Panasonic Device Coordinator data in 0.356 seconds (success: True) 2024-09-28 18:14:52.770 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] POST url: https://accsmart.panasonic.com/deviceStatus/control, data: {'deviceGuid': 'CS-NZ25VKE+XXXXX', 'parameters': {'operationMode': 0}}, response: {"result":0} 2024-09-28 18:14:55.456 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/deviceStatus/now/CS-NZ25VKE%_XXXXX_, response: {"timestamp":1727540094454,"permission":3,"summerHouse":2,"iAutoX":false,"nanoe":false,"nanoeStandAlone":false,"autoMode":true,"heatMode":true,"fanMode":true,"dryMode":true,"coolMode":true,"ecoNavi":false,"powerfulMode":true,"quietMode":true,"airSwingLR":true,"autoSwingUD":false,"ecoFunction":0,"temperatureUnit":0,"modeAvlList":{"autoMode":1},"nanoeList":{"visualizationShow":0},"clothesDrying":false,"insideCleaning":false,"fireplace":false,"pairedFlg":false,"parameters":{"operate":1,"operationMode":0,"temperatureSet":22,"fanSpeed":0,"fanAutoMode":0,"airSwingLR":2,"airSwingUD":2,"ecoMode":0,"ecoNavi":0,"nanoe":0,"lastSettingMode":0,"iAuto":0,"airDirection":1,"insideTemperature":19,"outTemperature":11,"airQuality":0,"ecoFunctionData":0,"insideCleaning":0,"fireplace":0}} 2024-09-28 18:14:55.456 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicdevice] Loading device parameters, has data: True 2024-09-28 18:14:55.456 DEBUG (MainThread) [custom_components.panasonic_cc.coordinator] Finished fetching Panasonic Device Coordinator data in 0.343 seconds (success: True) 2024-09-28 18:14:58.528 DEBUG (MainThread) [custom_components.panasonic_cc.coordinator] Finished fetching Panasonic Device Energy Coordinator data in 0.360 seconds (success: True)