I am creating a blueprint for a button. I want to control lights, switch or cover by pressing the button using the homeassistant.toggle action. Is it possible to define what value (entity) will be used if the user does not select anything? If I use selector → default, this value is pre-filled in the form and the user has to delete it if he wants to select another one.
The homeassistant.toggle action has no effect on button entities… you need to use button.press.
Yes, using templates with if/then constructs or the default filter.
You can find examples in my Open Windows and Doors Sensor blueprint.