rospogrigio / daikin_residential

Cloud control of Daikin devices that are supported by Daikin Residential Controller app.
GNU General Public License v3.0
283 stars 37 forks source link

Devices recognized but all entities are unavailable #24

Open palex opened 2 years ago

palex commented 2 years ago

Hi, first many thanks for your work! After last update of Daikin firmware and/or Home-Assistant, integration stopped work, and I saw that you released new version. Downloaded, deleted old one and replaced. Write email and password of configuration.yaml and start HASS but all entities remain unavilable. Here is log:

2021-10-11 21:56:21 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration daikin_residential which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-11 21:56:21 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'map', 'daikin_residential', 'dialogflow', 'braviatv', 'network', 'webostv', 'input_text', 'climate', 'sensor', 'device_tracker', 'google', 'conversation', 'tts', 'binary_sensor', 'blueprint', 'energy', 'sun', 'webhook', 'script', 'input_boolean', 'plex', 'mobile_app', 'system_health', 'tradfri', 'timer', 'sonos', 'history', 'mqtt', 'wake_on_lan', 'zone', 'rfxtrx', 'updater', 'trace', 'logbook', 'calendar', 'notify', 'configurator', 'foscam', 'camera', 'panasonic_viera', 'ssdp', 'coronavirus', 'met', 'tag', 'roomba', 'switch', 'zwave', 'my', 'automation', 'apcupsd'} 2021-10-11 21:56:21 INFO (MainThread) [homeassistant.setup] Setting up daikin_residential 2021-10-11 21:56:21 INFO (MainThread) [homeassistant.setup] Setup of domain daikin_residential took 0.0 seconds 2021-10-11 21:56:22 INFO (MainThread) [custom_components.daikin_residential.daikin_api] Daikin Residential API initialized. 2021-10-11 21:56:22 INFO (MainThread) [custom_components.daikin_residential.daikin_api] Retrieving new TokenSet... 2021-10-11 21:56:27 INFO (MainThread) [custom_components.daikin_residential.daikin_api] New TokenSet successfully retrieved. 2021-10-11 21:56:27 INFO (SyncWorker_9) [homeassistant.loader] Loaded daikin from homeassistant.components.daikin 2021-10-11 21:56:27 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Daikin for daikin_residential File "/home/palex/.homeassistant/custom_components/daikin_residential/init.py", line 84, in async_setup_entry daikin_api = DaikinApi(hass, entry) File "/home/palex/.homeassistant/custom_components/daikin_residential/daikin_api.py", line 42, in init

Can I do anything else to help investigate this issue?

droscy commented 2 years ago

Hi palex, could you please write the full version of Home Assistant (retrieve it from Configuration -> Info), the firmware version of Daikin AC (get it from official App) and enable the debug log for this plugin?

To enable the debug log add in your configuration.yaml

logger:
  default: info
  logs:
    custom_components.daikin_residential: debug

then restart Home Assistant.

Thanks

palex commented 2 years ago

Hi, I was very busy last months, but now I come back to this problem. Here is a log:

2021-12-25 20:09:31 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration daikin_residential which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-12-25 20:09:32 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'map', 'wake_on_lan', 'coronavirus', 'tts', 'camera', 'configurator', 'sun', 'google', 'notify', 'webostv', 'dlna_dmr', 'network', 'input_text', 'sonos', 'ssdp', 'blueprint', 'tradfri', 'rfxtrx', 'climate', 'panasonic_viera', 'zwave', 'foscam', 'system_health', 'met', 'input_boolean', 'script', 'conversation', 'apcupsd', 'energy', 'device_tracker', 'plex', 'my', 'webhook', 'roomba', 'dialogflow', 'trace', 'history', 'automation', 'sensor', 'binary_sensor', 'logbook', 'updater', 'mqtt', 'daikin_residential', 'switch', 'braviatv', 'zone', 'mobile_app', 'timer', 'calendar', 'tag'} 2021-12-25 20:09:32 INFO (MainThread) [homeassistant.setup] Setting up daikin_residential 2021-12-25 20:09:32 INFO (MainThread) [homeassistant.setup] Setup of domain daikin_residential took 0.0 seconds 2021-12-25 20:09:33 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] Initialing Daikin Residential API... 2021-12-25 20:09:33 INFO (MainThread) [custom_components.daikin_residential.daikin_api] Daikin Residential API initialized. 2021-12-25 20:09:33 INFO (MainThread) [custom_components.daikin_residential.daikin_api] Retrieving new TokenSet... 2021-12-25 20:09:33 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] STATE: 7jxXKidzx64zdIp4OoH9L_Tj004QtxEGoXw-qY1k7Y8 2021-12-25 20:09:34 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] SAMLCONTEXT: eu1_964626835798_da6a6edd-5a8d-4b05-a930-3ffdf74197ad 2021-12-25 20:09:34 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] VERSION: 12707-3-27340875 2021-12-25 20:09:35 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] LOGIN REPLY: {'callId': '5bbf960891a548c09c80666c1f3f00c0', 'errorCode': 0, 'apiVersion': 2, 'statusCode': 200, 'statusReason': 'OK', 'time': '2021-12-25T18:09:35.265Z', 'registeredTimestamp': 1626982459, 'UID': 'b9430973b0ba45dba24f8f862a015a5b', 'UIDSignature': '3dO+JSogaOpB4ckvmJaFJq79UXE=', 'signatureTimestamp': '1640455775', 'created': '2021-07-22T19:33:49.915Z', 'createdTimestamp': 1626982429, 'isActive': True, 'isRegistered': True, 'isVerified': True, 'lastLogin': '2021-12-25T18:09:35.218Z', 'lastLoginTimestamp': 1640455775, 'lastUpdated': '2021-07-22T19:35:47.682Z', 'lastUpdatedTimestamp': 1626982547682, 'loginProvider': 'site', 'oldestDataUpdated': '2021-07-22T19:33:49.915Z', 'oldestDataUpdatedTimestamp': 1626982429915, 'profile': {'firstName': 'Pavel', 'lastName': 'Alexandrov', 'country': 'BG', 'email': 'palex@alexandrovs.com'}, 'registered': '2021-07-22T19:34:19.643Z', 'socialProviders': 'site', 'verified': '2021-07-22T19:35:47.682Z', 'verifiedTimestamp': 1626982547682, 'newUser': False, 'sessionInfo': {'login_token': 'st2.s.AcbHcPcPCw.g7yRjzEYLpYIa3A99fIKuZFPj9u_UTm-YgRCXkDOMZxlaHYycl1PhLRhHRGQBOOr3KLic6ZFyjGIzLHU5hxzbJ02Cgdxd2ga4AWeaUJKoGo._yYp9T7nfjEVAgcKcLhLa5eVJGjsvaBBOzYLA-_XgFem6-s_T77fBvT1lB2qh58UFVFKbx2a4td9oVZzHv65hw.sc3', 'expires_in': '31536000'}} 2021-12-25 20:09:36 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] VERIFIER: kcTNJOvlEpdLUYtcR.iKMpEJv_9rTzCJvAW4NPT9d3_3FqyZ-kJazhJMzybgm7Gv 2021-12-25 20:09:36 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] TOKENSET RETRIEVED: {'access_token': 'eyJraWQiOiJ4cGtRMUhsOEppQkFvbWtpekk3d2MwQzh2ekZONEM1aTRya0hoRnBZSzJzPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiI3ZTUwYmQzYi0wYzA0LTQyY2ItYTQwMS0yMjkzMzkzNGQwMGQiLCJjb2duaXRvOmdyb3VwcyI6WyJldS13ZXN0LTFfU0xJOXFKcGM3X0NEQyJdLCJ0b2tlbl91c2UiOiJhY2Nlc3MiLCJzY29wZSI6Im9wZW5pZCIsImF1dGhfdGltZSI6MTY0MDQ1NTc3NiwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLmV1LXdlc3QtMS5hbWF6b25hd3MuY29tXC9ldS13ZXN0LTFfU0xJOXFKcGM3IiwiZXhwIjoxNjQwNDU5Mzc2LCJpYXQiOjE2NDA0NTU3NzYsInZlcnNpb24iOjIsImp0aSI6IjQ4ZWU3MTZmLWJmNDktNGNhYi04OWVjLTYzMDBiYTM1ZDEzNiIsImNsaWVudF9pZCI6IjdyazM5NjAyZjBkczhsazBoMDc2dnZpam5iIiwidXNlcm5hbWUiOiJDRENfYjk0MzA5NzNiMGJhNDVkYmEyNGY4Zjg2MmEwMTVhNWIifQ.JrY_0S5j04GTnvVmF30a1TlouNgRqjfDplPxcfe05DiTU5aZyqWabSJZHEhzmQ6EK42DrYWQrov3Lc-_K7DQ8YAkNsXg8S-yTn2Dj5cYcyiXyvhOjGpWK8t03G8LCud-RSsxh7eE0tVhF10OlxlXa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-lmWQ21XlY-QKwrmqnLOpYMaPifE6WUROBtD_lMft8Eri576REri6chNgjNhZxibtlpiDytKj2PNHkrGKlsWpqDkflrcQfU688z6th_EoWKuuCLSWGbYI6Y01XZb0qgFlgNHCff_KOHyytzmcIB0ysZQHJCb03wwcA_nfPOk5ztWjLGhSiDPJbufgOvj2K1Aq1Na7ayy7tpC1FiHpE0hWgTmkWJFKxZaamj81zVpmuEjwZp6_0MpJ_eMbpf_wY4hGS1upJz44ISFe3SZ9E9Js8WdJtQwAUiqSZ6deXAXlQ4eRYRPtJVcMySJDMjND55C8Ee87A4g1_N5XdNcJBgwQE072gXVuQvp9FPSKY5RQxKvd-dJ8FwJ5B-waOKKBOrUDENk81vaJeJwRx9p0wdKeanGrPahgY4uHkyIKcGN32Wt7x7vvSWOF4txuEsILgxhkaPaGQTHNgDhDOEkMbq4XIh-Sj2tRKMjH6bTZ5gZjtod3FGYz9eeC2EfcmmIIOcv_mNWkyZEQpjUJnFkhdeUQ5c4YsBy3wloYtkWrKEw1-DrnuGZXRf4WRybD9LAG7e5Gm3EN0sSi1qfUZ8HLOUVA0oLogEUKc4CaElIuidOx7LBL-uvozvgs38ECwo9-8TKH5ykP29MfJZpym3El20KiZXkwTopw2JNfVGngzSUq3vxlAhHiBac4yu1pVwRyQtHg_EXITEIra-vbea-sdnyn4a-7AipUOOUS6uwXbmASJFU8hsGSOiI6laQtqFwDLnSuVGA.i9XOU49Km-yYDP1xRBHlPg', 'expires_in': 3600, 'token_type': 'Bearer'} 2021-12-25 20:09:36 INFO (MainThread) [custom_components.daikin_residential.daikin_api] New TokenSet successfully retrieved. 2021-12-25 20:09:36 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] BEARER REQUEST URL: https://api.prod.unicloud.edc.dknadmin.be/v1/info 2021-12-25 20:09:36 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] BEARER REQUEST HEADERS: {'user-agent': 'Daikin/1.6.1.4681 CFNetwork/1209 Darwin/20.2.0', 'x-api-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:09:37 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] BEARER RESPONSE CODE: 200 2021-12-25 20:09:37 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] Initialing Daikin Residential API... 2021-12-25 20:09:37 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Daikin for daikin_residential File "/home/palex/.homeassistant/custom_components/daikin_residential/init.py", line 84, in async_setup_entry daikin_api = DaikinApi(hass, entry)

Firmware Version is 1_12_51 Model BRP069C4x

Regards, Pavel