#How to add multiple entities to button card
1 messages · Page 1 of 1 (latest)
you only get one entity/action
To do more you make a script, and then call that script
so i have to create more scripts to do everything?
correct
you can make a template button that calls the action
whats the easiest way to make a button that can turn on 2 smart switches lol
The entity in the button card defines the state of the UI for the button, it wouldn't make sense what to do if there were multiple entities
Set entity to none, set the tap action to perform action, swtich.turn_on, and add both entities as the target
i tried that cant find my switches in targets
Are they switch entities, or an input_boolean?
switch
show a screenshot please
yes it must be the switch version
is it a light then?
yes
then use light.turn_on
switch.turn_on is limited to switches, if you make the dimmer show as a light, then it won't show up as a switch any more
ah theres a toggle for "light" aswell
so many toggle options it controls a light but it is a toggle switch so very odd
any dimmable switch is implemented as a light, switch domain is strictly for undimmable on/off
correct, only one, as I said
so i need to make a script to run these 2 scripts and use that?
If you want to do light.turn_on and something else, then yes you make one script, which calls light.turn_on and then does the other thing
then you call that script on tap
no tap is on/off toggle , double tap needs to run 2 scripts which puts the lights into night mode
and i need a hold to do brightness but havent got that far
For double tap, click the "Add Interaction" button
basically i need it to run exactly like the normal button for each light but control both
it may be easier to just make a group of lights
ya i have double tap but u cant run 2 scripts
how i do that
i just wanna be able to control all my lights at once or individually
go into helpers, group, light group
have to start from beginning idk where helpers is
im on main screen
nvm search bar worked
main screen -> settings -> devices etc -> helpers -> create helper -> group -> light group
oh thats perfect
now just need to make a script that calls multiple scripts
is there a way to make it not wait on last script to finish before exectuting the next script?
figured it out
there now to add the rest of the 3 switches for the other 3 rooms lol
@storm compass there a way to set turn on brightness, its defaulting to 100% i want 1%
or do i have to make a script for that
you can set it in the light.turn_on command, but not light.toggle iirc