mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Solaredge, update template sensors examples (#19909)
This commit is contained in:
parent
174044ee9c
commit
7d48aaa402
@ -33,11 +33,10 @@ In case you would like to convert the values for example to kWh instead of the d
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry for template platform
|
# Example configuration.yaml entry for template platform
|
||||||
sensor:
|
template:
|
||||||
platform: template
|
- sensor:
|
||||||
sensors:
|
- name: solaredge_energy_this_year_template:
|
||||||
solaredge_energy_this_year_template:
|
state: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
|
||||||
value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
@ -69,13 +69,12 @@ In case you would like to convert the values for example to kWh instead of the d
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry for sensor template platform
|
# Example configuration.yaml entry for sensor template platform
|
||||||
sensor:
|
template:
|
||||||
- platform: template
|
- sensor:
|
||||||
sensors:
|
- name: solaredge_energy_this_year_template:
|
||||||
solaredge_energy_this_year_template:
|
state: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
|
||||||
value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
|
unit_of_measurement: "KWh"
|
||||||
unit_of_measurement: "KWh"
|
icon: "mdi:solar-power"
|
||||||
icon_template: "mdi:solar-power"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user