-
-
Notifications
You must be signed in to change notification settings - Fork 91
Please add configuration option to prevent MPD from looking up cover art. #379
Comments
same problem, how to solve this? |
hello anyone? |
IIRC this behaviour is baked into MPD without a tunable option. Also |
There is an alternative which is to set up an automation to automatically remove the notification from only MPD. It's by no mean a perfect solution and the notification still blinks for a split second, but at least it's less annoying to me. The link above is for older version of HASS which no longer works due to API change. Here is my version that's working: alias: Remove MPD invalid request notification
description: ""
trigger:
- platform: persistent_notification
update_type:
- added
notification_id: http-login
condition:
- condition: template
value_template: "{{ 'mpd.local.hass.io' in trigger.notification.message }}"
action:
- service: persistent_notification.dismiss
data:
notification_id: "{{ trigger.notification.notification_id }}"
mode: restart |
Can you actually whitelist MPD though to remove the requirement for authentication? as @SkyLined mentions?! I've not found a way to do this that actually works. My MPD gets ip banned as soon as I play a file :D EDIT: Hope this helps somebody. This workaround works perfectly for my use case. |
Which addon?
MPD
Is your feature request related to a problem? Please describe.
When you play a media file through MPD, MPD attempts to look for cover art by making requests to the server for
cover.png
,cover.jpg
,cover.tiff
andcover.bmp
. These requests do not have the required?authSig=...
query parameter and subsequently trigger alerts in Home Assistant that a request with invalid authentication is made, like so:It would be great if we could get MPD to stop doing that if possible.
Describe the solution you'd like
I want to tell MPD not to look for cover art, either by default, through a configuration setting, or through an additional argument when I call
media_player.play_media
Describe alternatives you've considered
It's been reported that you can tell HA to ignore these requests by whitelisting a certain IP range. That does remove the notifications about the invalid authentication but give MPD access without any authentication, which is a (minor) security risk.
Additional context
N/A
The text was updated successfully, but these errors were encountered: