No idea why this would not work, tried multiple methods of passing the entity but the error keeps asking for ‘at least one entity’. Below are two service calls I tried, but neither works.
Is this code for some kind of a lovelace card in which case you appear to me missing the “type: xxxxxxx” field so please check the doc’s for the relevant card.
Also, what is it that you are actually trying to do i.e. fire script.bedtime or the automation.bedtime?
Yeah it is the popup card from the browser mode popups (more info replacement). Everything else works well, I just don’t know what I am doing wrong in the tap-action piece to call the automation.trigger service call, or the script I created to trigger the automation.
Thanks for trying. Sorry if my question isn’t clear enough.
It works very well with or without the popup card, when the tap action is set to more-info. But when I switch to a call service action - which is what I want - call the automation.trigger service or call a script.trun_on service it doesn’t like how I am passing on the entity to that.
So the basic question has nothing to do with popup card or any other card, it is how do I trigger an automation or script from a button in lovelace. Meaning I want to bypass the triggers and conditions and run all the actions of an automation manually by tapping on a button in lovelace, is there a way to do that somehow?
Seems like a small task to do, but for the life of me I can’t find a way to do this, not for lack of trying, or any documentation or topics on that topic in this forum, hence asking it.
I would say that the group.all_lights: at the begining looks a bit odd.
That is how popup cards work - instead of getting the more info screen with the history, which is tpretty useless for this purpose, when I click the group.all_lights button on this dashboard it opens up another dashboard (calling it that for simplicity) with whatever I want to show - for e.g. I could show all the lights that are currently on with a group of scenes and automations I can quickly trigger that I have created under the popup card for that entity.
The only real difference I notice is that I don’t supply an entity for the button and I’m not sure of the importance of that.
It may be silly, but can you confirm you have the names correct for either the script or the automation and that conditions aren’t blocking anything from continuing?
Also, it’s easier for everybody if you just copy the entire error you are seeing over to your post, just in case you happen to focus on the wrong thing when just describing it.
Sorry for the late reply, I had moved onto other things and then the holidays. Haven’t had a chance to try this yet, will try and update when I get back home tomorrow.
Did not work, but thanks for trying. I have just used the scenes for now and tied the scene being called as a trigger for the automation to trigger for now. Needed that anyways for the voice command scene activations as well.