I created a script to toggle lights in an area called Christmas Lights. Then I created a tile to run the script, but when clicking the tile it brings up a popup screen with a run button, instead of just running the script. Obviously to just turn lights on or off, I don’t want that extra step.
Is there something I missed when setting up the tile or the script? I did everything through the GUI, but…
The script code looks like this:
action: switch.toggle
metadata: {}
data: {}
target:
area_id: christmas_lights
The tile code looks like this:
type: tile
entity: script.all_christmas_lights
grid_options:
columns: 12
rows: 1
Is there a better way to do this like separate on/off commands instead of toggle?