mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 04:16:48 +00:00
Update pvoutput.markdown, corrected identation (#18806)
This commit is contained in:
parent
e4d0874eb2
commit
47bd86695b
@ -52,7 +52,7 @@ sensor:
|
|||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
power_consumption:
|
power_consumption:
|
||||||
value_template: "{% if is_state_attr('sensor.pvoutput', 'power_consumption', 'NaN') %}0{% else %}{{ state_attr('sensor.pvoutput', 'power_consumption') }}{% endif %}"
|
value_template: "{% if is_state_attr('sensor.pvoutput', 'power_consumption', 'NaN') %}0{% else %}{{ state_attr('sensor.pvoutput', 'power_consumption') }}{% endif %}"
|
||||||
friendly_name: "Using"
|
friendly_name: "Using"
|
||||||
unit_of_measurement: "Watt"
|
unit_of_measurement: "Watt"
|
||||||
energy_consumption:
|
energy_consumption:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user