mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Switch: add state (#34795)
This commit is contained in:
parent
1ebf9ad0e9
commit
60b5cf87f4
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user