mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +00:00
Add missing Switch device classes (#16813)
This commit is contained in:
parent
485772431a
commit
f26bca8524
@ -66,12 +66,13 @@ initial_state:
|
||||
|
||||
#### Device Class
|
||||
|
||||
Device class is currently supported by the following components:
|
||||
Device class is currently supported by the following platforms:
|
||||
|
||||
* [Binary Sensor](/integrations/binary_sensor/)
|
||||
* [Sensor](/integrations/sensor/)
|
||||
* [Cover](/integrations/cover/)
|
||||
* [Media Player](/integrations/media_player/)
|
||||
- [Binary Sensor](/integrations/binary_sensor/)
|
||||
- [Cover](/integrations/cover/)
|
||||
- [Media Player](/integrations/media_player/)
|
||||
- [Sensor](/integrations/sensor/)
|
||||
- [Switch](/integrations/switch/)
|
||||
|
||||
### Manual customization
|
||||
|
||||
@ -123,7 +124,7 @@ Home Assistant offers a service to reload the core configuration while Home Assi
|
||||
|
||||
To reload customizations, navigate to Configuration > Server Controls and then press the "Reload Location & Customizations" button. If you don't see this, enable Advanced Mode on your user profile page first.
|
||||
|
||||
Alternatively, you can reload via service call. Navigate to Developer Tools > Services tab, select `homeassistant.reload_core_config` from the dropdown and press the "Call Service" button.
|
||||
Alternatively, you can reload via service call. Navigate to Developer Tools > Services tab, select `homeassistant.reload_core_config` from the dropdown and press the "Call Service" button.
|
||||
|
||||
<div class='note warning'>
|
||||
New customize information will be applied the next time the state of the entity gets updated.
|
||||
|
@ -16,6 +16,14 @@ Keeps track which switches are in your environment, their state and allows you t
|
||||
- Maintains a state per switch and a combined state `all_switches`.
|
||||
- Registers services `switch.turn_on`, `switch.turn_off`, and `switch.toggle` to control switches.
|
||||
|
||||
## Device Class
|
||||
|
||||
The way these switches are displayed in the frontend can be modified in the [customize section](/docs/configuration/customizing-devices/). The following device classes are supported for switches:
|
||||
|
||||
- **None**: Generic switch. This is the default and doesn't need to be set.
|
||||
- **outlet**: This switch, switches a power outlet.
|
||||
- **switch**: A generic switch.
|
||||
|
||||
## Use the services
|
||||
|
||||
In the frontend open the sidebar. At the bottom, under **Developer Tools**, click **Services**. From the Service dropdown menu choose `switch.turn_on` or `switch.turn_off` from the list of available services. In the Entity dropdown menu choose or enter the entity ID you want to work with. This will enter something like the sample below into the **Service Data** field. Now hit **CALL SERVICE**.
|
||||
|
Loading…
x
Reference in New Issue
Block a user