Actions
Actions are the things Home Assistant can do for you, like turning a light on, setting a thermostat, playing music, or restarting the system. They are the building blocks of automations and scripts.
Browse the full list below, or use the search box to find a specific action by name or description. Each action has its own page with a step-by-step UI walkthrough, examples, and a complete data field reference.
New to actions? Read about actions in automations and scripts to learn how they fit together.
Light
-
Toggle a light
light.toggleFlip a light between on and off. If it's off, it turns on. If it's on, it turns off. -
Turn off a light
light.turn_offTurn a light off. Optionally fade it out with a transition, or have it flash briefly before it goes dark. -
Turn on a light
light.turn_onTurn a light on. Optionally set brightness, color, color temperature, an effect, or a transition.