mirror of
https://github.com/home-assistant/core.git
synced 2026-07-06 22:36:33 +01:00
15 lines
593 B
YAML
15 lines
593 B
YAML
template:
|
|
- sensor:
|
|
broken:
|
|
- sensor:
|
|
- name: Combined Sense Energy Usage
|
|
default_entity_id: sensor.combined_sensor_energy_usage
|
|
unit_of_measurement: kW
|
|
state: >
|
|
{{ ((states('sensor.energy_usage') | float(default=0)) + (states('sensor.energy_usage_2') | float(default=0))) / 1000 }}
|
|
|
|
- name: Watching TV in Master Bedroom
|
|
default_entity_id: sensor.watching_tv_in_master_bedroom
|
|
state: >
|
|
{{ 'on' if state_attr("remote.alexander_master_bedroom","current_activity") in ["Watch TV", "Watch Apple TV"] else 'off' }}
|