mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Mystrom - remove power consumption from switch (#22678)
This commit is contained in:
parent
190b86b48f
commit
a921a169be
@ -26,7 +26,6 @@ There is currently support for the following device types within Home Assistant:
|
||||
- [Setup of myStrom Buttons](#setup-of-mystrom-buttons)
|
||||
- [Switch](#switch)
|
||||
- [Setup](#setup)
|
||||
- [Get the current power consumption](#get-the-current-power-consumption)
|
||||
|
||||
## Light
|
||||
|
||||
@ -158,7 +157,7 @@ If you have set [`login_attempts_threshold`](/integrations/http/) and forget to
|
||||
|
||||
## Switch
|
||||
|
||||
The `mystrom` switch platform allows you to control the state of your [myStrom](https://mystrom.ch/en/) switches. The built-in sensor is measuring the power consumption while the switch is on.
|
||||
The `mystrom` switch platform allows you to control the state of your [myStrom](https://mystrom.ch/en/) switches.
|
||||
|
||||
### Setup
|
||||
|
||||
@ -188,23 +187,3 @@ name:
|
||||
type: string
|
||||
default: myStrom Switch
|
||||
{% endconfiguration %}
|
||||
|
||||
|
||||
### Get the current power consumption
|
||||
|
||||
The switch is measuring the current power consumption. To expose this as a sensor use a [`template` sensor](/integrations/template).
|
||||
|
||||
{% raw %}
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
power:
|
||||
friendly_name: "Current Power"
|
||||
unit_of_measurement: "W"
|
||||
value_template: "{{ state_attr('switch.office', 'current_power_w') }}"
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user