Need some help with my Sonos automation. I have it playing Music at night, but I am trying to add a condition that if the “Bedroom.Sonos” is playing TV, then don’t execute. however it seems to be ignoring the condition?
Are you sure the state is TV?
Normally a media player would have a state of Playing when it is playing something and then source or some other attribute set to TV.
Check the HA developer tools under the States tab.
These are the “Attributes” under states when I set the source to TV
The State is “Playing”
Ok, so that’s why its not working. is there a way to set a condition based on Attributes? or a better way to do this?
group_members: media_player.bedroom_sonos
volume_level: 0.04
is_volume_muted: false
media_content_id: x-sonos-htastream:RINCON_B8E93770789E01400:spdif
media_content_type: music
media_title: TV
shuffle: false
repeat: off
queue_size: 1
device_class: speaker
friendly_name: Bedroom Sonos
supported_features: 4127295
source_list: TV
source: TV
I tested it by disabling the time trigger (I also removed the other disabled trigger) and running the automation. I had the SONOS set to TV, but it still played Music.