mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 10:17:23 +00:00
Update solarlog template sensor example (#20274)
This commit is contained in:
parent
b8689691f2
commit
08529a9e4e
@ -35,11 +35,10 @@ In case you would like to convert the values, for example, to Wh instead of the
|
|||||||
|
|
||||||
```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: "Solarlog yield day"
|
||||||
solarlog_yield_day_template:
|
state: "{{ (states('sensor.solarlog_yield_day') | float(default=0) * 1000) | round(0,default=0) }}"
|
||||||
value_template: "{{ (states('sensor.solarlog_yield_day') | float * 1000) | round(0) }}"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user