I have an automation that when i click a button, it sends my vacuum to clean the rooms selected in a list of toggle entities, it works fine and i also added an if-else block there so it doesn’t do anything if the list of rooms is empty.
But i would like some popup or toast alert to be shown with something like “No Rooms Selected”.
I can’t find any easy way to do this, and the addons/integrations i’ve tried do other extra things that i dont need.
Any idea how to do this easily? Maybe i could just execute a typical JavaScript alert(“message”) somehow?
I’m not sure, but does a numeric_state condition have a value_template? Doesn’t seem familiar to use it here.
Check the documentation, if value_template is allowed here. And on second thought, does float really work as a function? I only use it as a filter (sensor.selected_room_counts | float).
k i got the conditional to work, but now the problem with the confirm is that it shows 'Are you sure?" as title without the possibility of changing it xD
And what did you do to solve it? Might be interesting for future visitors to this thread.
Take a look here for the dialog:
Good you got it working!
EDIT: just as a suggestion, have you thought about running a loop over your counter? Sorry, don’t know how to describe it in better words, I mean something like this: