Replies: 2 comments 2 replies
-
I've seens your question on the HA Discord about this. BTW you could also use old school groups, but instead of targeting the group itself, you can target the group members by using the |
Beta Was this translation helpful? Give feedback.
-
So you have a group entity which has all the media_players you do want to send the message to, eg While you can't target that group itself in a tts service call, as it isn't a media player entity, you can target the group members eg service: tts.cloud_say
target:
entity_id: "{{ state_attr('group.send_tts', 'entity_id') | list }}"
data:
message: This is a nice message or, using the new tts entity repeat:
for_each: "{{ state_attr('group.send_tts', 'entity_id') | list }}"
sequence:
- service: tts.speak
data:
media_player_entity_id: "{{ repeat.item }}"
message: Another nice message
target:
entity_id: tts.home_assistant_cloud |
Beta Was this translation helpful? Give feedback.
-
Hey there. Thanks for the cool integration. I am in need to be able to add/remove members from a new style (aka from the interface) media player group. I know it is possible to use the group.set service for the old style groups but it does not appear that similar functionality exists for the new style groups. Would it be possible to extend Spook to be able to modify these group members?
My use case is that I have a group of media player entities in a media player group that I uses Google TTS to broadcast messages to. I am wanting to implement a do not disturb (DND) mode that would allow for that entity to be removed from the group whenever it's DND attribute is changed to true via automation. The broadcast message would then not be played on those devices in DND mode. At current, I cannot think of a way to get this done without a bunch of templating and even that I'm not sure will work as I'd like the message to be broadcast simultaneously.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions