Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home Assistant Tells me No Devices #234

Open
Csejka opened this issue Jun 29, 2024 · 43 comments
Open

Home Assistant Tells me No Devices #234

Csejka opened this issue Jun 29, 2024 · 43 comments

Comments

@Csejka
Copy link

Csejka commented Jun 29, 2024

Hi there,

after Updating my Home Assistant and all Plugins to the newest Version and also Adding 2FA to my Panasonic Comfort Cloud i cant get the plugin back working again.

When i try to login to my Account within the Plugin it tells me No Devices Found - In the Comfort Cloud App i have my 2 Air Conditions inside.

Can anybody help me ?

Best Beni

@sockless-coding
Copy link
Owner

Enable debug logging and l need the entry that looks like:
[custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/device/group ...

@Csejka
Copy link
Author

Csejka commented Jun 29, 2024

i found it

2024-06-29 18:07:25.669 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] Starting Session
2024-06-29 18:07:26.077 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/device/group, response: {"uiFlg":false,"groupCount":1,"groupList":[{"groupId":348643,"groupName":"My House","pairingList":[],"deviceList":[]}]}

@sockless-coding
Copy link
Owner

What type of devices is it, because that api call doesn't return any...

@Csejka
Copy link
Author

Csejka commented Jun 29, 2024

Panasonic CS-TZ25WKEW

Panasonic CS-TZ35WKEW

@sockless-coding
Copy link
Owner

And the credentials you entered in HA have access to them?

@Csejka
Copy link
Author

Csejka commented Jun 29, 2024

for sure i have this two air cons in my CC account and can access them over the app

i had my air cons working with your plugin the last 2 years --> it suddenly stopped after updates on your component and HA side

@sockless-coding
Copy link
Owner

The problem is most likely on the Panasonic side... try renaming your group in the app, restart HA and look for the groupName device group request.

@Csejka
Copy link
Author

Csejka commented Jun 29, 2024

i tried this My House but no success

@sockless-coding
Copy link
Owner

So you renamed the group in the app to something else, but the log entry still said 'My House'?

@Csejka
Copy link
Author

Csejka commented Jun 29, 2024

i made a new group - restartet home assistant Name of the Group is Home and when i want to login to the integrations it gives me that again

2024-06-29 20:38:22.126 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/device/group, response: {"uiFlg":false,"groupCount":1,"groupList":[{"groupId":348643,"groupName":"My House","pairingList":[],"deviceList":[]}]}

@codyc1515
Copy link
Contributor

Have you set-up a separate account that does not have access to your devices? Try confirming that you are using the same login for HA and the app and seeing the same in the app with the same login.

@Master-Atreides
Copy link

Master-Atreides commented Jul 1, 2024

Hi all,

Don't know if this is related or whether I should pile in on another thread, but after the fix over a week ago, the integration went down again this morning. I have since updated to v1.0.56 and tried removing and adding the integration from scratch, however I consistently get the following message through HA...
Screenshot_20240701_162511_Home Assistant

Any assistance would be appreciated.

@heldchen
Copy link
Contributor

heldchen commented Jul 1, 2024

@Master-Atreides not related. there are other issues for that.

@Master-Atreides
Copy link

Master-Atreides commented Jul 1, 2024 via email

@asatron1
Copy link

asatron1 commented Jul 2, 2024

Hi,
after update from 1.0.56 to 1.0.58. i have the same problem.
rename the groupname in the app and a reboot changes nothing

image

Deleting and reconnecting doesn't change anything

@Csejka
Copy link
Author

Csejka commented Jul 2, 2024

yeah - i still have the problem

@asatron1
Copy link

asatron1 commented Jul 2, 2024

here a log with "Error in get_device"

2024-07-02 15:20:46.311 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] Starting Session
2024-07-02 15:20:46.314 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsettings] Loaded settings from '/root/.panasonic-settings'
2024-07-02 15:20:46.317 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] Access token is valid
2024-07-02 15:20:47.124 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/device/group, response: {"uiFlg":false,"groupCount":1,"groupList":[{"groupId":1122045,"groupName":"Zuhause","pairingList":[],"deviceList":[{"deviceGuid":"CS-Z35ZKEW+E064818781","deviceType":"3","deviceName":"Wohnzimmer ","permission":3,"temperatureUnit":0,"summerHouse":0,"nanoeStandAlone":true,"autoMode":true,"modeAvlList":{"autoMode":1},"parameters":{"operate":0,"operationMode":2,"temperatureSet":21,"fanSpeed":0,"fanAutoMode":0,"airSwingLR":2,"airSwingUD":2,"ecoFunctionData":0,"ecoMode":0,"ecoNavi":0,"nanoe":2,"iAuto":0,"airDirection":0,"lastSettingMode":0},"deviceModuleNumber":"CS-Z35ZKEW","deviceHashGuid":"5071d4ca2b6cfd9792c3b62c46f96cc50bda1ab3035862cba23dd8095b5431cb","modelVersion":2,"coordinableFlg":true,"pairedFlg":false}]}]}
2024-07-02 15:20:47.124 INFO (MainThread) [custom_components.panasonic_cc] Got 1 devices
2024-07-02 15:20:47.642 ERROR (MainThread) [custom_components.panasonic_cc.pcomfortcloud.helpers] Error in get_device
Expected status code '200' but received '500'
Response body: {"code":5005,"message":"Adapter Communication error"}
2024-07-02 15:20:47.643 WARNING (MainThread) [custom_components.panasonic_cc.panasonic] Error updating device 5071d4ca2b6cfd9792c3b62c46f96cc50bda1ab3035862cba23dd8095b5431cb
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/panasonic.py", line 86, in do_update
data = await self._api.get_device(self.id)

and here after the change from the groupname:

custom_components.panasonic_cc.pcomfortcloud.exceptions.ResponseError: (get_device: Expected status code 200, received: 500: {"code":5005,"message":"Adapter Communication error"}
2024-07-02 15:22:37.126 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] Starting Session
2024-07-02 15:22:37.132 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsettings] Loaded settings from '/root/.panasonic-settings'
2024-07-02 15:22:37.135 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] Access token is valid
2024-07-02 15:22:37.487 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/device/group, response: {"uiFlg":false,"groupCount":1,"groupList":[{"groupId":1122045,"groupName":"Zuhause","pairingList":[],"deviceList":[{"deviceGuid":"CS-Z35ZKEW+E064818781","deviceType":"3","deviceName":"Wohnzimmer ","permission":3,"temperatureUnit":0,"summerHouse":0,"nanoeStandAlone":true,"autoMode":true,"modeAvlList":{"autoMode":1},"parameters":{"operate":0,"operationMode":2,"temperatureSet":21,"fanSpeed":0,"fanAutoMode":0,"airSwingLR":2,"airSwingUD":2,"ecoFunctionData":0,"ecoMode":0,"ecoNavi":0,"nanoe":2,"iAuto":0,"airDirection":0,"lastSettingMode":0},"deviceModuleNumber":"CS-Z35ZKEW","deviceHashGuid":"5071d4ca2b6cfd9792c3b62c46f96cc50bda1ab3035862cba23dd8095b5431cb","modelVersion":2,"coordinableFlg":true,"pairedFlg":false}]}]}
2024-07-02 15:22:37.487 INFO (MainThread) [custom_components.panasonic_cc] Got 1 devices
2024-07-02 15:22:38.467 ERROR (MainThread) [custom_components.panasonic_cc.pcomfortcloud.helpers] Error in get_device
Expected status code '200' but received '500'
Response body: {"code":5005,"message":"Adapter Communication error"}
2024-07-02 15:22:38.467 WARNING (MainThread) [custom_components.panasonic_cc.panasonic] Error updating device 5071d4ca2b6cfd9792c3b62c46f96cc50bda1ab3035862cba23dd8095b5431cb
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/panasonic.py", line 86, in do_update
data = await self._api.get_device(self.id)

@heldchen
Copy link
Contributor

heldchen commented Jul 2, 2024

@asatron1 is your HVAC still working in the panasonic app? "Adapter Communication error" seems to indicate a hardware error...

@asatron1
Copy link

asatron1 commented Jul 2, 2024

@heldchen
yes, everything works with the APP.
Shortly before the update everything worked fine. The problem occurred immediately after the update

@heldchen
Copy link
Contributor

heldchen commented Jul 2, 2024

I think @sockless-coding will have to add some debug logging to get_device so that we can see the request made - I suspect there's a regression in the device handling since the zone implementation (I did not yet update my installation from 1.0.48 as it still works fine for me).

@asatron1
Copy link

asatron1 commented Jul 2, 2024

@heldchen
After your question, I got the idea to unplug the air conditioner from the energy. After that, everything worked again.

@Csejka
Is that also the solution for you?

image

@sockless-coding
Copy link
Owner

@Csejka create a new Panasonic user and grant it access to your HVAC, then try using that user in HA. Panasonic isn't returning any information for your user.

@Csejka
Copy link
Author

Csejka commented Jul 3, 2024

hi there

i reseted the air cons and then connected both to the main user and then to the second user - now it works

best beni

@RonnieRocket2
Copy link

Hi, after update from 1.0.56 to 1.0.58. i have the same problem. rename the groupname in the app and a reboot changes nothing

image

Deleting and reconnecting doesn't change anything

I have the same issue

@Segran
Copy link

Segran commented Sep 18, 2024

Same here, none of the advices above makes the least difference. Comfort Cloud have never been a marvel of reliability, but now it’s simply just silly - it does not work.

@sockless-coding
Copy link
Owner

@Segran if it has been working before, please enable debug logging and reload the integration and give me the logs, and I'll take a look. Though the Panasonic servers have had their fair share of issues lately...

@Segran
Copy link

Segran commented Sep 18, 2024 via email

@sockless-coding
Copy link
Owner

@Segran under System / Logs there's a Load Full Logs button it will show you the whole log.
Easiest is you reload the integration and then head over to the logs, the last entries few entries containing custom_components.panasonic_cc is the only thing I need.

@Segran
Copy link

Segran commented Sep 20, 2024 via email

@sockless-coding
Copy link
Owner

I think the App hides the 5005 error and presents cached data until it gets a correct response.
Though that error you included was listed once and was triggered at 01:09...
that also indicates that there is at least one Panasonic device registered in HA.

@Segran
Copy link

Segran commented Sep 20, 2024 via email

@sockless-coding
Copy link
Owner

@Segran Ok, then I need the debug logs:
On the integration page:
image
Navigate to System Logs:
image
Click Load full logs and scroll down
And look for something similar to this:

2024-09-20 20:19:49.199 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] Starting Session
2024-09-20 20:19:49.202 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsettings] Loaded settings from '/root/.panasonic-settings'
2024-09-20 20:19:49.203 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] Access token is valid
2024-09-20 20:19:49.548 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/device/group, response: {"uiFlg":false,"groupCount":1,"groupList":[{"groupId":26389,"groupName":"My House","pairingList":[],"deviceList":[{"deviceGuid":"[REDACTED]","deviceType":"3","deviceName":"Living Room","permission":2,"temperatureUnit":0,"summerHouse":2,"nanoeStandAlone":true,"autoMode":true,"modeAvlList":{"autoMode":1},"parameters":{"operate":0,"operationMode":3,"temperatureSet":21,"fanSpeed":0,"fanAutoMode":1,"airSwingLR":5,"airSwingUD":3,"ecoFunctionData":0,"ecoMode":0,"ecoNavi":0,"nanoe":1,"iAuto":0,"airDirection":0,"lastSettingMode":0},"deviceModuleNumber":"CS-HZ25UKE","deviceHashGuid":"[REDACTED]","modelVersion":1,"coordinableFlg":false}]}]}
2024-09-20 20:19:49.548 INFO (MainThread) [custom_components.panasonic_cc] Got 1 devices
2024-09-20 20:19:51.605 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicsession] GET url: https://accsmart.panasonic.com/deviceStatus/[REDACTED]13394, response: {"timestamp":1726856391464,"permission":2,"summerHouse":2,"iAutoX":false,"nanoe":true,"nanoeStandAlone":true,"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":0,"operationMode":3,"temperatureSet":21,"fanSpeed":0,"fanAutoMode":1,"airSwingLR":5,"airSwingUD":3,"ecoMode":0,"ecoNavi":0,"nanoe":1,"iAuto":0,"airDirection":0,"insideTemperature":24,"outTemperature":13,"airQuality":0},"deviceNanoe":1}
2024-09-20 20:19:51.605 DEBUG (MainThread) [custom_components.panasonic_cc.pcomfortcloud.panasonicdevice] Loading device parameters, has data: True
2024-09-20 20:19:51.605 DEBUG (MainThread) [custom_components.panasonic_cc.coordinator] Living Room Device features
Nanoe: True
Eco Navi: False
AI Eco: False
2024-09-20 20:19:51.605 DEBUG (MainThread) [custom_components.panasonic_cc.coordinator] Finished fetching Panasonic Device Coordinator data in 2.057 seconds (success: True)

@Segran
Copy link

Segran commented Sep 20, 2024 via email

@sockless-coding
Copy link
Owner

@Segran What heat pump do you have?
The API reports device type 1 (My CS-HZ25UKE reports as type 3) and the deviceHashGuid is not included, so they might have changed how that should be computed.

@sockless-coding
Copy link
Owner

@Segran give 2024.9.0 a try

@Segran
Copy link

Segran commented Sep 21, 2024 via email

@Segran
Copy link

Segran commented Sep 23, 2024

For some obscure reason I'm listed as "owner" of this sw. maybe you can correct that as well?

@sockless-coding
Copy link
Owner

@Segran what do you mean listed as "owner"?

@Segran
Copy link

Segran commented Sep 24, 2024 via email

@sockless-coding
Copy link
Owner

Might have been because I referenced this issue in another one...

@KrzysztofMaciejewski
Copy link

Hi

Latest version installed and "No devices" problem showed up

logs:

2024-11-09 13:10:47.948 WARNING (MainThread) [custom_components.panasonic_cc.pcomfortcloud.apiclient] Found 2 unknown device(s): {"deviceGuid": "B835711822", "deviceType": "2", "deviceName": "Skawi\u0144ska ", "connectionStatus": 1, "operationMode": 1, "zoneStatus": [{"zoneId": 1, "operationStatus": 0, "temperature": -3}, {"zoneId": 2}], "tankStatus": {"operationStatus": 0, "temperature": 45}} {"deviceGuid": "B194694239", "deviceType": "2", "deviceName": "S31", "connectionStatus": 0, "operationMode": 1, "zoneStatus": [{"zoneId": 1, "operationStatus": 1, "temperature": 0}, {"zoneId": 2}], "tankStatus": {"operationStatus": 1, "temperature": 45}} Submit this log to https://github.com/sockless-coding/panasonic_cc/issues/310 2024-11-09 13:10:48.170 WARNING (MainThread) [custom_components.panasonic_cc.pcomfortcloud.apiclient] Failed to get aquarea device info for B835711822 Submit this log to https://github.com/sockless-coding/panasonic_cc/issues/310 Traceback (most recent call last): File "/config/custom_components/panasonic_cc/pcomfortcloud/apiclient.py", line 124, in check_aquarea aqua_device = await self.get_aquarea_device(device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/panasonic_cc/pcomfortcloud/apiclient.py", line 189, in get_aquarea_device device_id = id_response.cookies.get("selectedDeviceId").value ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'value' 2024-11-09 13:10:48.306 WARNING (MainThread) [custom_components.panasonic_cc.pcomfortcloud.apiclient] Failed to get aquarea device info for B194694239 Submit this log to https://github.com/sockless-coding/panasonic_cc/issues/310 Traceback (most recent call last): File "/config/custom_components/panasonic_cc/pcomfortcloud/apiclient.py", line 124, in check_aquarea aqua_device = await self.get_aquarea_device(device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/panasonic_cc/pcomfortcloud/apiclient.py", line 189, in get_aquarea_device device_id = id_response.cookies.get("selectedDeviceId").value ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'value'

Any suggestion what is the problem and how to fix it?
Thanks

@TetraLama
Copy link

Hey there.

Firstly, thanks for this integration. I used it some times ago.

I'm deploying a new HA, and want to integrate my HeatPump, but I got the No devices error.

Here is the debug log:

{"deviceGuid": "B736809204", "deviceType": "2", "deviceName": "PAC  MJ", "connectionStatus": 0, "operationMode": 1, "zoneStatus": [{"zoneId": 1, "operationStatus": 1, "temperature": 0}, {"zoneId": 2}], "tankStatus": {"operationStatus": 1, "temperature": 50}}
Submit this log to https://github.com/sockless-coding/panasonic_cc/issues/310

2024-11-11 10:50:18.979 WARNING (MainThread) [custom_components.panasonic_cc.pcomfortcloud.apiclient] Failed to get aquarea device info for B736809204
Submit this log to https://github.com/sockless-coding/panasonic_cc/issues/310
Traceback (most recent call last):
  File "/config/custom_components/panasonic_cc/pcomfortcloud/apiclient.py", line 124, in check_aquarea
    aqua_device = await self.get_aquarea_device(device)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/panasonic_cc/pcomfortcloud/apiclient.py", line 189, in get_aquarea_device
    device_id = id_response.cookies.get("selectedDeviceId").value
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'value'

Do you have any ideas why ?
Kindly

@sockless-coding
Copy link
Owner

Looks like you have Aquarea devices, they are not controllable from the comfort cloud API.
I've been thinking about trying to add support for it, but there is already an integration for Aquarea devices https://github.com/cjaliaga/home-assistant-aquarea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants