---
title: "switch turned on · RUAL Documentation"
description: "Starts the flow when a plug, relay or switch is turned on."
canonical: https://docs.rual.nl/block-types/globals/homeassist_trigger_switch_on
language: en
---

[Cluster](https://docs.rual.nl/cluster)

[Blocks](https://docs.rual.nl/block-types)

[Interfaces](https://docs.rual.nl/interfaces)

[Blueprints](https://docs.rual.nl/blueprints)

[Tutorials](https://docs.rual.nl/tutorials)

[Home automation](https://docs.rual.nl/home-automation)

[Examples](https://docs.rual.nl/examples)

[Reference](https://docs.rual.nl/reference)

[Architecture](https://docs.rual.nl/architecture)

[Troubleshooting](https://docs.rual.nl/troubleshooting)

Other

# switch turned on

This block is part of the [`globals`](https://docs.rual.nl/block-types/globals) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

Starts the flow when a plug, relay or switch is turned on.

- device `v15.0.0` `value` Only fire for this device. Leave empty to fire for every matching device.

- room `v15.0.0` `value` Only fire for devices in this room. Leave empty for every room.

- flow `v15.0.0` `flow`

- device `v15.0.0` `object` The full device: id, name, room, type, capabilities, current state.

- device id `v15.0.0` `value` Stable platform id, e.g. zigbee:0x00158d0007e1a2b3.

- name `v15.0.0` `value` The device's friendly name.

- room `v15.0.0` `value` The room the device is assigned to, empty if none.

- type `v15.0.0` `value` sensor, light, switch, climate, cover, lock or button.

- capability `v15.0.0` `value` Which capability changed, e.g. occupancy, contact, power.

- value `v15.0.0` `value` The new value.

- previous `v15.0.0` `value` The value before this change, empty on the first report.

- at `v15.0.0` `number` Unix seconds the device reported.

Start-of-flow trigger. Fires when a device classified as a switch transitions power false->true. Switches are devices with on/off but no brightness or colour : metering plugs land here, not under lights.

| `zigbee` |
| --- |
| `zwave` |
| `matter` |
| `thread` |
| `smart home` |
| `home assistant` |
| `trigger` |

A typical wiring for [switch turned on](https://docs.rual.nl/block-types/globals/homeassist_trigger_switch_on): the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%2520ui/state_debug).

[![Studio canvas example for the switch turned on block: typical wiring for switch turned on.](https://docs.rual.nl/canvas-examples/homeassist_trigger_switch_on.png)](https://docs.rual.nl/canvas-examples/homeassist_trigger_switch_on.png?v=3)

## Used in these guides

These documentation pages use or explain this block:

- [Trigger Reference](https://docs.rual.nl/home-automation/triggers)

## Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

- [Back to `globals`](https://docs.rual.nl/block-types/globals): Return to the main group to view all sub-groups

- [Back to `home`](https://docs.rual.nl/block-types/globals?group=home): Return to the group to view all blocks within this group

Was this page helpful? [Tell us what to improve](https://docs.rual.nl/support) · RUAL Docs is an integral component of the [RUAL ecosystem](https://rual.nl)
