Skip to content

Media alert showing when not needed #83

Description

@TheBartoMan

Love the new GUI and the introduction of Trigger on any state thanks.

However I do have an issue with my use case.

The entity is a google home speaker

I have the message to display as: {{ states('media_player.living_room_speaker') }} : {{ state_attr('media_player.living_room_speaker', 'media_artist') }} - {{ state_attr('media_player.living_room_speaker', 'media_title') }}

I have the Trigger on any state turned on, and the auto-hide after set to 8 seconds

It works great and changes every time the track changes I see the state, the artist and the song.

here is a radio station playing:
Image

I cant just use state = playing as it doesnt knwo when the music changes, hence the "Trigger on any state" works great.

..the issue I have is that when the radio station isnt playing a song (such as when they are talking), the media_artist says "none" and due to the change it pops up again. Also if my google home gets a message, it pops up again a few time like these:

Image Image

Ideally i would like to still have conditions please if possible? This way it would only come up when "trigger on and state change" AND media_artist not = "none"

Thank you again for your hard work and quick fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions