mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-15 13:26:28 +00:00
Deprecate Switch entity properties (#982)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
parent
5d49aa4119
commit
7ae2346834
@ -16,6 +16,13 @@ Properties should always only return information from memory and not do I/O (lik
|
||||
| Name | Type | Default | Description
|
||||
| ---- | ---- | ------- | -----------
|
||||
| is_on | boolean | **Required** | If the switch is currently on or off.
|
||||
|
||||
## Deprecated Properties
|
||||
|
||||
The following properties are deprecated and should not be used by new integrations. Provide them as sensors instead.
|
||||
|
||||
Name | Type | Default | Description
|
||||
| ---- | ---- | ------- | -----------
|
||||
| current_power_w | float | `None` | The current power usage in W.
|
||||
| today_energy_kwh | float | `None` | Total energy usage in kWh.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user