When a switch is set to ON
Do something when a switch is set to ON.
![Screenshot 2022-12-16 at 12.32.56.png 696](https://files.readme.io/64924a0-Screenshot_2022-12-16_at_12.32.56.png)
With the trigger “When a switch is set to ON ”, you can select any action to occur as soon as a a switch is set to ON
Trigger -> Action
The most important thing about a trick is understanding its conditions and actions. They have a simple generic structure:
When the condition (trigger) happens, then do (action).
Trigger -> Action
How to create
You just have to click on the "+ Automations" icon on the upper right corner of the screen to open the No code automations panel, and then on the "+ Create new automation" button:
![22443c4-21901fb-9022c5e-Screen_Shot_2022-08-15_at_18.08.43 (1).png 464](https://files.readme.io/0bf1e7e-22443c4-21901fb-9022c5e-Screen_Shot_2022-08-15_at_18.08.43_1.png)
Select the "When a switch is set to ON" trigger, and fill in the options:
![Screenshot 2022-12-16 at 12.32.01.png 696](https://files.readme.io/83ffb5c-Screenshot_2022-12-16_at_12.32.01.png)
- Choose the table
- Choose switch field in the selected table that will trigger the action once it's updated to any value
Save this and choose an action.
Updated over 1 year ago