core/tests/components/template/fixtures/broken_configuration.yaml

18 lines
713 B
YAML

sensor:
- platform: template
broken:
- platform: template
sensors:
combined_sensor_energy_usage:
friendly_name: Combined Sense Energy Usage
unit_of_measurement: kW
value_template:
"{{ ((states('sensor.energy_usage') | float(default=0)) + (states('sensor.energy_usage_2')
| float(default=0))) / 1000 }}"
watching_tv_in_master_bedroom:
friendly_name: Watching TV in Master Bedroom
value_template:
'{% if state_attr("remote.alexander_master_bedroom","current_activity")
== "Watch TV" or state_attr("remote.alexander_master_bedroom","current_activity")
== "Watch Apple TV" %}on{% else %}off{% endif %}'