home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.15k stars 31.12k forks source link

Advantage Air Integration #78159

Closed beachie13 closed 1 year ago

beachie13 commented 2 years ago

The problem

All entities have stopped working after 2022.9 release.

What version of Home Assistant Core has the issue?

2022.9

What was the last working version of Home Assistant Core?

2022.8

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Advantage Air

Link to integration documentation on our website

https://www.home-assistant.io/integrations/advantage_air/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

advantage_air documentation advantage_air source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @bre77, mind taking a look at this issue as it has been labeled with an integration (advantage_air) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

Bre77 commented 2 years ago

What steps have you taken to troubleshoot so far? Depending what version you upgraded from the entity IDs may have changed.

beachie13 commented 2 years ago

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.9.1", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.5", "docker": true, "arch": "aarch64", "timezone": "Australia/Brisbane", "os_name": "Linux", "os_version": "5.15.32-v8", "supervisor": "2022.08.6", "host_os": "Home Assistant OS 8.5", "docker_version": "20.10.14", "chassis": "embedded", "run_as_root": true }, "custom_components": { "webrtc": { "version": "v2.3.0", "requirements": [] }, "hacs": { "version": "1.25.5", "requirements": [ "aiogithubapi>=22.2.4" ] }, "mass": { "version": "2022.8.2", "requirements": [ "music-assistant==1.8.5" ] }, "reolink_dev": { "version": "0.55", "requirements": [ "reolink==0.0.61" ] }, "ui_lovelace_minimalist": { "version": "v1.0.2", "requirements": [] }, "alexa_media": { "version": "4.0.3", "requirements": [ "alexapy==1.26.1", "packaging>=20.3", "wrapt>=1.12.1" ] }, "programmable_thermostat": { "version": "8.1", "requirements": [] } }, "integration_manifest": { "domain": "advantage_air", "name": "Advantage Air", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/advantage_air", "codeowners": [ "@Bre77" ], "requirements": [ "advantage_air==0.4.1" ], "quality_scale": "platinum", "iot_class": "local_polling", "loggers": [ "advantage_air" ], "is_built_in": true }, "data": { "aircons": {}, "system": { "aaServiceRev": "14.116", "allTspErrorCodes": {}, "backupId": "4fff86e4-a183-45dc-865f-8f11db1dc394", "country": "Australia", "dealerPhoneNumber": "REDACTED", "deviceIds": [ "tW6EU2TMNKXv43ZPEbqQAIo9ZtG2", "hiORrQQZ2gfBNmAMjfDOGMC3iAr2" ], "deviceIdsV2": { "hiORrQQZ2gfBNmAMjfDOGMC3iAr2": "fWUbBYEokED7oQOy98EnWW:APA91bFjJRDsIkKnNpwO6eVku9fAvuDhoJl8OQHl0vn1IJZ9_zGAqV1LjS4_vaCA563vveti1MPSoCUXqC7aMWxDpqAIdwtwiyd2lWDLXsOriQYfv5n1JhnVQfJXo5tuchnNv4rEOzlD", "tW6EU2TMNKXv43ZPEbqQAIo9ZtG2": "eTRhSbZiPiU:APA91bHMR_P3pzk6wOnasGfxveRMTH_rhaphyivCDzQnZxVO1wMbL42IXFRZXbaI2tc3E22EViAmJQXx92Ir0GFxwRiWBUQBBRjGeNxc-E4xGeEcVZNjWdnjDNEQbAE0yg2RGpMlFsYC" }, "deviceNames": { "hiORrQQZ2gfBNmAMjfDOGMC3iAr2": "Benjamin's iPhone", "tW6EU2TMNKXv43ZPEbqQAIo9ZtG2": "iPhone" }, "drawLightsTab": false, "drawThingsTab": false, "garageDoorReminderWaitTime": 2, "garageDoorSecurityPinEnabled": true, "hasAircons": true, "hasLights": false, "hasLocks": false, "hasSensors": false, "hasThings": false, "hasThingsBOG": false, "hasThingsLight": false, "latitude": "REDACTED", "lockDoorReminderWaitTime": 2, "logoPIN": "REDACTED", "longitude": "REDACTED", "mid": "d88039506c0a", "myAppRev": "15.1084", "name": "MyPlace", "needsUpdate": false, "noOfAircons": 1, "noOfSnapshots": 0, "postCode": "REDACTED", "remoteAccessPairingEnabled": true, "rid": "U0kPGHw0SxZTXPpjTsQQmatoD2K3", "showMeasuredTemp": true, "sysType": "MyAir5", "tspErrorCode": "noError", "tspIp": "192.168.0.149", "tspModel": "PIC8KS-MY5", "versions": {} } } }

beachie13 commented 2 years ago

All my entities went unavailable upon installation of 2022.9 (from 2022.8). I removed the integration and installed again, now it looks like the below with only 1 entity (Myplace App). There is also no hidden entities Capture

Bre77 commented 2 years ago

So in your diag, there is no Aircon data. Someone else had this issue recently, it's not a fault with the integration or home assistant.

https://github.com/home-assistant/core/issues/76904

Try restart your tablet, but failing that someone had to fully reset it.

beachie13 commented 2 years ago

That’s interesting because it was working immediately before updating home assistant

Bre77 commented 2 years ago

So the only other thing would be to look at the Home Assistant logs before the update and see if there were any errors before compared to after.

My guess is it could have broken before the update but the entity states didn't go unavailable until the restart, but it would be good to confirm this in case it's going to impact others.

beachie13 commented 2 years ago

I reset both the tablet and home assistant entities have shown up.

Bre77 commented 2 years ago

@beachie13 so just confirming, after resetting the tablet and restarting Home Assistant the entities have shown up?

If so please close the issue as I can't.

Out of interest did you just have to restart the tablet or factory reset?

nicgord commented 2 years ago

Just required tablet restart and then HA restart to get working again.

Bre77 commented 2 years ago

Thanks @nicgord, you can close this issue now.

nicgord commented 2 years ago

It wasn't me that raised the issue ... I just experienced problem today and found my way to this thread 😄

but thanks for this integration... tis great!

jbking93-git commented 2 years ago

@Bre77 I have just had an Advantage Air system installed and from my testing it seems interacting with the aircon using this integration causes my tablet to lose connection to my controller.

I'm not familiar with the inner workings but I can happily monitor temps and states all day but as soon as I start turning the aircon on or off or changing modes with Home Assistant the aircon is no longer accessible from the tablet or any other device, and takes about 5 minutes to come back online.

I thought I would raise here in case related, but am happy to raise a new issue if more appropriate

Bre77 commented 2 years ago

@jbking93-git Can you share a diagnostic from the integration? It will help me see what type of system you have, and what capabilities, to see if there is anything I can do about it.

nicgord commented 2 years ago

FYI… I have been using the advantage air integration since it first came (calling api directly of over http, not this integration which I assume does the same) . Whenever I make a change I get a quick disconnect from the unit, kinda like a reset/reboot of the api where connection goes down, normally comes back in 20 seconds. Not a drama, but it means I cannot click multiple changes at the same time as they don’t all go through….so if that is what you are seeing I think it is an advantage air problem. I have a mate with Adv air…he does not have the same problem…

jbking93-git commented 2 years ago

Thanks @Bre77, attached.

As the unit is brand new and I haven't had any time with it without Home Assistant, I'm not sure if it is just my setup or the integration causing this. I have since been spending a bit of time with it this afternoon and it hasn't dropped offline. Hard to track down the cause... is there any other troubleshooting or logs I can look at or share that might help me track down the cause?

@nicgord it's definitely not just the API going down. When it happens and I go over to the tablet it has lost connection to the unit and displays 0 Connected Units. I then have to wait much longer than 20 seconds for the controller to come back online, then I can force quit the app on the tablet and launch it again and everything is back to normal.

config_entry-advantage_air-c8860df8a6396b22e012a03e166d2cce.json.txt

Bre77 commented 1 year ago

I honestly have no idea why this disconnection issue happens, and just assume its because the tablets are not designed for it. The API has so many issues as it is.

You could try run the HACS version instead to see if it makes a difference: https://github.com/Bre77/hacs_advantage_air

I was working to get these integrated into core but I received pushback.

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.