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

logs getting filles with "Updating hifiberry media_player took longer than the scheduled update interval 0:00:02" #3

Open
fyksen opened this issue Jan 31, 2021 · 12 comments

Comments

@fyksen
Copy link

fyksen commented Jan 31, 2021

Installed via HACS
Not sure why I'm getting these:

home-assistant   | 2021-01-30 18:53:20 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-30 19:03:52 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02

home-assistant   | 2021-01-30 22:40:04 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-30 22:40:14 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-30 22:50:36 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-31 01:00:10 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-31 01:05:28 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-31 01:24:47 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-31 01:42:01 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-31 01:55:12 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-31 03:19:18 WARNING (Thread-7) [pychromecast.socket_client] [Second bedroom TV(192.168.0.150):8009] Heartbeat timeout, resetting connection
home-assistant   | 2021-01-31 03:45:53 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-31 06:33:35 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-31 06:45:00 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.bedroom_led
home-assistant   | 2021-01-31 06:47:00 WARNING (MainThread) [homeassistant.components.automation.morning_alarm_rollers] morning alarm rollers: Already running
home-assistant   | 2021-01-31 06:47:00 WARNING (MainThread) [homeassistant.components.automation.morning_alarm_bedroom_led_lights] morning alarm bedroom LED lights: Already running
home-assistant   | 2021-01-31 07:22:13 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02
home-assistant   | 2021-01-31 07:30:15 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02

home-assistant   | 2021-01-31 07:49:13 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02

@kgroshert
Copy link

I'm also getting these:

2021-04-04 21:15:15 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:15:17 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:15:19 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:15:21 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:15:23 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:15:25 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:15:27 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:18:17 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:18:19 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:18:21 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:21:14 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:21:16 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:21:18 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:21:20 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:21:22 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:21:24 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02 2021-04-04 21:21:26 WARNING (MainThread) [homeassistant.components.media_player] Updating hifiberry media_player took longer than the scheduled update interval 0:00:02

My Hifiberry is on Wifi. Pretty stable but maybe the 2sec interval ist too low?

@willholdoway
Copy link
Owner

@dgomes merged your changes. Do you have any comments on interval? I think if the Pi has been on for a while then RAM fills and it is slower to respond but I'm worried about increasing interval as then it will always be quite laggy if more than 2s.

@dgomes
Copy link
Contributor

dgomes commented May 20, 2021

I also faced the same dilemma while preparing my PR, in the end I stayed with 2s since that was the value you had been using for sometime.

I think Hifiberry folks need a new API, probably based on web sockets that can feed us the updates, instead of us relying on polling the device.

For the time being I think 2 seconds is a compromisse between having updated information and not stressing the network/RPi.

@jacobwod
Copy link

Thanks for this great add-on @willholdoway! One minor issue however (that probably is a setting somewhere): my log gets filled with DEBUG level messages from pyhifiberry.audiocontrol2. This seems to be the only add-on that is really chatty. 😄 Any chance to lower the log level for Hifiberry?

@schnabel
Copy link
Contributor

Hi @jacobwod,
you could add

logger:
  default: info
  logs:
    pyhifiberry.audiocontrol2: info

to your configuration.yaml

@schnabel
Copy link
Contributor

schnabel commented Nov 14, 2021

I asked the hifiberry guys if the are interested in a websocket API. Would you (@willholdoway @dgomes ) be interested in case hifiberry accept my PR?

@willholdoway
Copy link
Owner

Yes!

@dgomes
Copy link
Contributor

dgomes commented Nov 14, 2021

that would be great!

This was referenced Dec 30, 2021
@schnabel
Copy link
Contributor

schnabel commented Apr 1, 2022

Hi @willholdoway I released pyhifiberry with the socketio-api. You should bump the version to 0.0.4 for the PR to work.

@schnabel
Copy link
Contributor

schnabel commented Apr 3, 2022

Hi @willholdoway, I wanted to test the integration today and unfortunately found out, that we have a serious problem :-(. With this PR they forced python-socketio to versions < 5.0. We require version > 5. I think we should start a new issue on this.

@willholdoway
Copy link
Owner

@schnabel did you ever get around this?

@schnabel
Copy link
Contributor

Hi, the hifiberry sockeio api has been included in the hifiberry-os two years ago :-).

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

6 participants