I’m heavily using the actions sonos.snapshot and sonos.restore for triggers like restore after watching tv, or after ringing the doorbell, ect, so no one has to understand how to restore every in the Sonos app…
First observation
When using the sonos.snapshot or sonos.restore actions, it is quite strange that you have to use the keyword allsee documentation .
But selecting all in the UI is not an option.
The value all is commonly used by other Home Assistant actions to indicate all entities in the same domain (i.e. light.turn_on).
That action’s configuration is missing what it should snapshot. As for the with_groupoption, its default value is true so it’s unnecessary to explicitly include it.
Right, because now it specifies what it should snapshot (all eligible media_player entities on the specified floors).
If you’re referring to how the UI presents selecting targets for sonos.snapshot (currently limited to
just entity_id) then UI-related Feature Requests are submitted to Github in Home Assistant’s Frontend repository (the forum’s FR section is for non-UI requests).
If you’re referring to how the UI presents selecting targets for sonos.snapshot (currently limited to
just entity_id) then UI-related Feature Requests are submitted to Github in Home Assistant’s Frontend repository (the forum’s FR section is for non-UI requests).
Which selectors are used for integration services is actually not a frontend concern. Each integration in core defines in services.yaml what selectors they want to show for each field.
So if you want a more complex selector than entity_id, that would be decided in the sonos core component. So this is the correct location for this request.
So what must be added here to make it work the way Grumblezz wants?
It would likely take more than just changes here, also changes in the integration code itself that handles these inputs, but if you want a target selector I guess replacing selector: entity: with selector: target: would be a first step.
Thanks! Looking at that file then I immediately see also other various issues, which shows that there are more service not working as expected. Like setting the alarm ect. The selector should be in the following format: