Compare commits

...

2 Commits

2 changed files with 38 additions and 14 deletions

View File

@ -71,6 +71,7 @@
- wohnzimmer
- kuche
- schlafzimmer
- kinderzimmer
- service: media_player.turn_off
target:
area_id:
@ -133,7 +134,7 @@
action:
- service: light.turn_on
target:
area_id: schlafzimmer
device_id: 68868390eda35e969ec60a13020f2407
mode: single
- id: '1623954512941'
alias: Licht im Schlafzimmer zum Aufwachen einschalten
@ -154,12 +155,16 @@
milliseconds: 0
- service: light.turn_on
target:
area_id: schlafzimmer
device_id: 68868390eda35e969ec60a13020f2407
data: {}
- service: cast.show_lovelace_view
data:
entity_id: media_player.ccsz
dashboard_path: lovelace-test
- delay:
hours: 0
minutes: 15
seconds: 0
milliseconds: 0
- service: light.turn_on
target:
device_id: 3c86ddd39979139f29645308815c0271
mode: single
- id: '1624820688449'
alias: 'Anruf: Beim Klingeln grün blinken'
@ -295,6 +300,7 @@
- wohnzimmer
- schlafzimmer
- kuche
- kinderzimmer
- type: turn_off
device_id: 6d1be741876624a70ab5b01b54c6fd6f
entity_id: switch.kuche_musik

View File

@ -42,14 +42,32 @@ sensor: !include sensors.yaml
# Template sensors
template:
- sensor:
- name: "Line Power Total"
unit_of_measurement: "W"
icon: mdi:flash
state: >
{% set phase_a = states('sensor.line_power_channel_a_power') | float %}
{% set phase_b = states('sensor.line_power_channel_b_power') | float %}
{% set phase_c = states('sensor.line_power_channel_c_power') | float %}
{{ (phase_a + phase_b + phase_c) | round(1) }}
- name: "Line Power Total"
unit_of_measurement: "W"
icon: mdi:flash
state: >
{% set phase_a = states('sensor.line_power_channel_a_power') | float %}
{% set phase_b = states('sensor.line_power_channel_b_power') | float %}
{% set phase_c = states('sensor.line_power_channel_c_power') | float %}
{{ (phase_a + phase_b + phase_c) | round(1) }}
- sensor:
- name: "Leckstrom"
unit_of_measurement: "W"
icon: mdi:flash
state: >
{% set total = states('sensor.line_power_total') | float %}
{% set raumduft = states('sensor.flur_raumduft_power') | float %}
{% set keller = states('sensor.keller_power') | float %}
{% set anrichte = states('sensor.kuche_anrichte_power') | float %}
{% set musik = states('sensor.kuche_musik_power') | float %}
{% set bett = states('sensor.schlafzimmer_bett_power') | float %}
{% set heimkino_sz = states('sensor.schlafzimmer_heimkino_power') | float %}
{% set deko = states('sensor.schreibtisch_deko_power') | float %}
{% set schreibtisch = states('sensor.schreibtisch_power') | float %}
{% set serverraum = states('sensor.serverraum_power') | float %}
{% set heimkino_wz = states('sensor.wohnzimmer_heimkino_power') | float %}
{% set spieleschrank = states('sensor.wohnzimmer_spieleschrank_power') | float %}
{{ (total - raumduft - keller - musik - bett - heimkino_sz - deko - schreibtisch - serverraum - heimkino_wz - spieleschrank) | round(1) }}
# calendar integration
calendar: !include calendars.yaml