mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 06:46:58 +00:00
parent
0581ad2c3a
commit
18e04289dd
@ -89,6 +89,7 @@ Adapted from the [TP-Link integration](https://www.home-assistant.io/integration
|
|||||||
```yaml
|
```yaml
|
||||||
sensor:
|
sensor:
|
||||||
- platform: template
|
- platform: template
|
||||||
|
sensors:
|
||||||
vesync_switch_watts:
|
vesync_switch_watts:
|
||||||
friendly_name_template: "{{ states.switch.vesync_switch.name}} Current Consumption"
|
friendly_name_template: "{{ states.switch.vesync_switch.name}} Current Consumption"
|
||||||
value_template: '{{ states.switch.vesync_switch.attributes["current_power_w"] | float }}'
|
value_template: '{{ states.switch.vesync_switch.attributes["current_power_w"] | float }}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user