Solaredge, update template sensors examples (#19909)

This commit is contained in:
SNoof85 2021-10-22 21:46:13 +02:00 committed by GitHub
parent 174044ee9c
commit 7d48aaa402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 12 deletions

View File

@ -33,11 +33,10 @@ In case you would like to convert the values for example to kWh instead of the d
```yaml
# Example configuration.yaml entry for template platform
sensor:
platform: template
sensors:
solaredge_energy_this_year_template:
value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
template:
- sensor:
- name: solaredge_energy_this_year_template:
state: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
```
{% endraw %}

View File

@ -69,13 +69,12 @@ In case you would like to convert the values for example to kWh instead of the d
```yaml
# Example configuration.yaml entry for sensor template platform
sensor:
- platform: template
sensors:
solaredge_energy_this_year_template:
value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
unit_of_measurement: "KWh"
icon_template: "mdi:solar-power"
template:
- sensor:
- name: solaredge_energy_this_year_template:
state: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
unit_of_measurement: "KWh"
icon: "mdi:solar-power"
```
{% endraw %}