core/tests/fixtures/helpers/reload_configuration.yaml

16 lines
666 B
YAML

test_domain:
- platform: test_platform
sensors:
combined_sensor_energy_usage:
friendly_name: Combined Sense Energy Usage
unit_of_measurement: kW
value_template:
"{{ ((states('sensor.energy_usage') | float) + (states('sensor.energy_usage_2')
| float)) / 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 %}'