Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions source/_components/solaredge_local.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ In case you would like to convert the values for example to kWh instead of the d

{% raw %}
```yaml
# Example configuration.yaml entry for template platform
sensors:
platform: template
sensors:
solaredge_energy_this_year_template:
value_template: '{{(states('sensor.solaredge_energy_this_year') | float / 1000) | round(2)}}'
# 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) }}"
```
{% endraw %}