Closed HectorHumanes closed 3 years ago
I am experiencing the same issue. Latest Hassio, RP4.
I am experiencing the same issue.
I use a Chromecast Audio, and AirCast is running on Home Assistant OS 5.12, core-2021.3.4, supervisor-2021.03.6 - in a VM on Hyper-V.
Same for me: several Chromecast Audios, Google Minis (1st and 2nd) and the group i created within Google Home.
Home Assistant OS 5.12, supervisor-2021.03.6, core-2021.3.4 on a Raspberry Pi
I can't seem to find any indication of the drop-off in the logs. It's likely an upstream issue with the upstream Airconnect
Perhaps bumping version to 0.2.50.4?
FWIW: I'm on a unifi network, with IMGP snooping, MDNS reflecion and repeaters turned on. My chrome casts are on the IOT network, and my home assistant is on the Standard network. They can ping and multicast is working across the network. there's no device isolation or firewall between them yet.
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!
NOT WORKING WORKAROUND
After some time trying to fix the issue without success I've found an automatic workaround I'd to share with you guys. As I said, it's just a workaround while waiting for the final solution (I'm widely open to test whatever you propose @cromulus). In the meanwhile:
Get the hostname of the Aircast Addon running in hassio. There are many different ways to do it, but the easiest one is checking it under Supervisor -> AirCast. Note you have to substitute the dash symbol (-) for a underscore symbol (_) in the name
Create a Long Term token. To do so, go to your profile page, go down and create a new long-term token.
Once we have this information, add this to configuration.yml
rest_command:
aircastrestart:
url: http://**homeassistantIP**:8123/api/hassio/addons/**hostnameofyourAirCastAddonWith/restart
method: POST
headers:
authorization: Bearer yourlongtermtoken**
user-agent: 'HomeAssistant/1.0'
content_type: 'application/json'
alias: Restart AirCast Addon description: Temporal fix of the AirCast Addon trigger:
Then, every day at 4 am the AirCast addon will be restarted and the connection with the google home devices will be reset, being avalaible during the day without issues.
Any comment or improvement on this is more than welcome, so feel free to propose new solutions :)
Thanks for the workaround @HectorHumanes.
What exactly should the configuration.yaml entry look like?
I get this error:
Invalid config for [rest_command]: invalid slug user-agent (try user_agent) for dictionary value @ data['rest_command']. Got OrderedDict([('aircast_restart', None), ('url', 'http://XXXX:8123/api/hassio/addons/XXXX-aircast/restart'), ('method', 'POST'), ('headers', None), ('authorization', 'Bearer XXXXX'), ('user-agent', 'HomeAssistant/1.0'), ('content_type', 'application/json')]).
You are supposed to change the 'XXXX' part with your own data.
I've carried out more test with my workaround and it's still failing, so there's no workaround at the moment. Still looking into last @cromulus comment trying to replicate the conditions. I'll keep you posted
Oh yeah, I did. I just replaced the private stuff with XXXX when I pasted the error in here. I'm not a deep HA fanatic, so I'm just not sure if I have the right syntax in the yaml file.
Finally I thing i've got the solution. I've disabled the aircast addon and tried AirConnect v0.2.53.1 running in Docker as a container (https://github.com/1activegeek/docker-airconnect). Since then, the connection with the google home has been running seamlessly for the whole weekend. So my guess is that something in the home assistant addon wrapper is causing the connectivity issues or there is anything fixed in the latest "official" version which is causing troubles in the home assistant version if it's not updated to latest version from the philippe44's repo.
@cromulus can you confirm your component is running the latest version of AirConnect?
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!
Problem/Motivation
Expected behavior
Actual behavior
Steps to reproduce
Proposed changes
Additional info: