Switch: add state (#34795)

This commit is contained in:
c0ffeeca7 2024-09-18 09:04:18 +02:00 committed by GitHub
parent 1ebf9ad0e9
commit 60b5cf87f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,13 +18,17 @@ related:
title: Dashboard
---
Keeps track which switches are in your environment, their state and allows you to control them.
The **Switch** {% term integration %} keeps track of the states of the switches in your environment and allows you to control them.
- Maintains a state per switch and a combined state `all_switches`.
- Registers actions `switch.turn_on`, `switch.turn_off`, and `switch.toggle` to control switches.
{% include integrations/building_block_integration.md %}
## The state of a switch entity
The state of a switch {% term entity %} can be either `on` or `off`.
## Device class
{% include integrations/device_class_intro.md %}