RobertD502 / home-assistant-flair

Custom component for Home Assistant Core for Flair pucks, vents, rooms, structures, and minisplits
MIT License
87 stars 12 forks source link

Stopped working #21

Closed ernst77 closed 2 years ago

ernst77 commented 2 years ago

Hello,

Vents suddenly stopped working on home assistant.

Logger: homeassistant.components.select
Source: helpers/entity_platform.py:719
Integration: Select (documentation, issues)
First occurred: 20 April 2022, 00:39:56 (5612 occurrences)
Last logged: 20:56:34

Updating flair select took longer than the scheduled update interval 0:00:30
image
RobertD502 commented 2 years ago

Happening for me as well. I have a few other logs that are indicating server side issues (504 codes). Unfortunately, not something I can fix within the integration.

ernst77 commented 2 years ago

Probably API issue... that's not good. We need local integration

RobertD502 commented 2 years ago

Can confirm it is on their end. Just restarted Home Assistant and was immediately met with a 504 code from their servers.

Spross1 commented 2 years ago

it looks like flair fixed their api. I had to restart Home Assistant but everything is working now for me

RobertD502 commented 2 years ago

504 responses continue to occur much more frequently than usual. I've contacted the engineering team, but most likely won't hear back until this week. Will keep everyone posted.

Drulzy commented 2 years ago

yeah it's not just HA... Flair is barely communicating with ecobee at the moment. Calls for heat, then forgets to end the call... doesn't open vents it should... If I were a smart guy I'd want to end the cloud reliance... :(

ernst77 commented 2 years ago

F02A470A-1057-45E7-8D16-C11A073EDFBC

they increased server count, but It does not seem to fix the problem, and no local solution will be provided… I’ve ordered some esp32 will try to change their vent “brains”, as this cloud stuff doesn’t do it for me.

RobertD502 commented 2 years ago

Can anyone else confirm seeing 401 status errors after a while?

Edit: DISREGARD!! Some backend changes that I was testing caused this - no one else would have been affected by this.

Spross1 commented 2 years ago

I don't see that in my logs, but I do see this "Updating flair sensor took longer than the scheduled update interval 0:00:30" for both the "homeassistant.components.sensor" as well as the "homeassistant.components.select" in my logs and I don't think this was as prevalent in the past and it is popping up every 60 seconds

Can anyone else confirm seeing 401 status errors after a while?

RobertD502 commented 2 years ago

I don't see that in my logs, but I do see this "Updating flair sensor took longer than the scheduled update interval 0:00:30" for both the "homeassistant.components.sensor" as well as the "homeassistant.components.select" in my logs and I don't think this was as prevalent in the past and it is popping up every 60 seconds

Can anyone else confirm seeing 401 status errors after a while?

Can you click on the log items and see if anything else is reported such as status codes (504, 401, etc).

Spross1 commented 2 years ago

I don't see that in my logs, but I do see this "Updating flair sensor took longer than the scheduled update interval 0:00:30" for both the "homeassistant.components.sensor" as well as the "homeassistant.components.select" in my logs and I don't think this was as prevalent in the past and it is popping up every 60 seconds

Can anyone else confirm seeing 401 status errors after a while?

Can you click on the log items and see if anything else is reported such as status codes (504, 401, etc).

Sorry, Robert, that was all of the information reported in the log as I was using the file editor to review the logs and I'm unable to click those. But I took a screenshot of the log entry that I can click on for reference in the UI.

Screen Shot 2022-04-28 at 7 30 19 PM
RobertD502 commented 2 years ago

@Spross1 I have released a pre-release of 0.0.5.6 which uses an updated version of the backend library and is faster - this may cut out some of these warning messages for you. However, since the release includes code changes that are specific to Home Assistant 2022.5.0, it is only available to those who are running the beta version of 2022.5.0. Once 2022.5.0 is officially released, it will be available to everyone.

Spross1 commented 2 years ago

@Spross1 I have released a pre-release of 0.0.5.6 which uses an updated version of the backend library and is faster - this may cut out some of these warning messages for you. However, since the release includes code changes that are specific to Home Assistant 2022.5.0, it is only available to those who are running the beta version of 2022.5.0. Once 2022.5.0 is officially released, it will be available to everyone.

How do I get access to the pre-release? If I can’t right now no worries but I’m currently running Version | core-2022.5.0b2 and I don’t see an update in HACS or anywhere else. I unfortunately I don’t know how to check the version of the integration I have though

RobertD502 commented 2 years ago

@Spross1 Go to HACS --> Integrations, Scroll down to the Flair integration and press on the overflow menu (three dots) and select redownload:

image

Make sure Show beta versions is checked:

image

There is a weird bug in HACS where it won't let you download the latest beta version from this screen when initially checking show beta versions, but if you exit out of that screen (after checking show beta versions), you should see the Flair card within HACS now highlighted in blue with the option to update.

Spross1 commented 2 years ago

@RobertD502 ok yes I see that now thank you for that information. By the way, I don't think that's a bug, it did load for me, it just took a few seconds while it was blacked out, then it loaded the beta option. I just downloaded it and I'm restarting so I'll try it out. Thank you for your work on this integration by the way, I love it!

RobertD502 commented 2 years ago

Interesting. It has always failed to load for me. No problem at all! Glad to hear it is working for you. By the way, I'm not sure if you read the release notes, but I plan on rewriting the backend library in the next month or so followed by rewriting the integration....the new library will require OAuth2 credentials so get those from Flair if you don't already have them! Although the backend and the integration will be completely rewritten, you won't have to set everything up again in Home Assistant. It'll be as simple as pressing on a reconfigure button on the Flair integration (on the HA integrations page) and providing your OAuth2 credentials.

RobertD502 commented 2 years ago

Flair seems to have resolved their server side issues. I have also changed 0.0.5.6 from pre-release to a regular release (requires HA 2022.5.0) which includes speed improvements. Restarting HA should get HACS to show the release if it isn’t showing already. With all of that said, I will be closing this issue now.