I would like to toggle between arm_away and disarm in Lovelace without the More Info box popping up. My yaml is below. Can someone help me tweak this, perhaps with a tap_action?
You mean you don’t want to type in the code?
In that case you need to make a script for each arm mode with the code as data.
So…
Script 1
Action arm_away … code: 1234
@tom_l I took it from this post and it seems to be working fine for me, but it gives me a pop-up and I want it to toggle with a tap. @Hellis81 I’d love to type the code. This is my foray into modifying Lovelace with raw yaml and I’m learning as I go. I have no formal coding experience so I’m hoping to get some help with baby steps like this so I can build a foundation from which to get my hands dirty on my own.
I’m not here to argue, to be clear. I’m a noob and there’s a lot I don’t know. Two things I do know:
the example I linked-to includes in the yaml action: more_info. So, I have no reason to expect that by strictly following that yaml I will be any closer to achieving the result I am seeking, which is to forego more_info. I don’t yet know how to create a custom button-card and…
type: button is working fine. It’s giving me the same result that the custom:button-card had intended to achieve for the original user. If I were to create a custom button card, the appearance of the card would be the same as that which I currently have. I want to change the functionality of the button so there is no more_info upon tapping.
Perhaps this is the question I should ask: How would one modify the original yaml such that the action were not more_info, but rather, a toggle between arm_away and disarm? With that info, I will just need to learn to make a custom:button-card and I’ll be all set.
Only because the developers are clever. You will find all that extra yaml I pointed out is being ignored and generating warnings.
By reading the link I posted and adjusting the the tap_action to call a single script ( call-service as scripts are services). The script should use the choose action to determine whether to disarm or arm. If the alarm is armed, disarm it, and vice-versa.
I see. I have a lot to learn yet about scripts. Thank you for giving me some info to work with so I now know what I’m looking for. I really appreciate it.