From 8ea7716c5476e6fb44045ac100f6d8a4053ad267 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Mon, 30 May 2022 23:21:10 +0300 Subject: [PATCH] Add / revert temperature automations --- .../advanced_dashboard/08_automations.yaml | 13 +++- .../modules/lighting/temperature.yaml | 78 +++++++++++++++---- 2 files changed, 75 insertions(+), 16 deletions(-) diff --git a/config/lovelace/advanced_dashboard/08_automations.yaml b/config/lovelace/advanced_dashboard/08_automations.yaml index a5c17f7..edcc7e0 100644 --- a/config/lovelace/advanced_dashboard/08_automations.yaml +++ b/config/lovelace/advanced_dashboard/08_automations.yaml @@ -75,8 +75,17 @@ cards: - automation.lighting_turn_off_all_lights_after_sunrise - type: divider - automation.lighting_temperature_adjust_on_start - - automation.lighting_temperature_sunset - - automation.lighting_temperature_night + - automation.lighting_temperature_sunset_living_room_main + - automation.lighting_temperature_sunset_pc + - automation.lighting_temperature_sunset_bedroom_main + - automation.lighting_temperature_sunset_kitchen_main + - automation.lighting_temperature_sunset_kitchen_secondary + - automation.lighting_temperature_night_living_room_main + - automation.lighting_temperature_night_pc + - automation.lighting_temperature_night_bedroom_main + - automation.lighting_temperature_night_kitchen_main + - automation.lighting_temperature_night_kitchen_secondary + - automation.lighting_temperature_adjust_on_start - type: divider - automation.lighting_bedroom_door_open - type: divider diff --git a/config/packages/modules/lighting/temperature.yaml b/config/packages/modules/lighting/temperature.yaml index c644f0d..072706f 100644 --- a/config/packages/modules/lighting/temperature.yaml +++ b/config/packages/modules/lighting/temperature.yaml @@ -10,27 +10,77 @@ automation: - light.kitchen_main - light.kitchen_secondary - - alias: Lighting · Temperature · Sunset + - alias: Lighting · Temperature · Sunset · Living room main use_blueprint: path: light_sun_set_temperature.yaml input: - light: - - light.living_room_main - - light.pc - - light.master_bedroom_main - - light.kitchen_main - - light.kitchen_secondary + light: light.living_room_main temp: 400 - - alias: Lighting ·Temperature · Night + - alias: Lighting · Temperature · Sunset · PC use_blueprint: path: light_sun_set_temperature.yaml input: - light: - - light.living_room_main - - light.pc - - light.master_bedroom_main - - light.kitchen_main - - light.kitchen_secondary + light: light.pc + temp: 400 + + - alias: Lighting · Temperature · Sunset · Bedroom main + use_blueprint: + path: light_sun_set_temperature.yaml + input: + light: light.master_bedroom_main + temp: 400 + + - alias: Lighting · Temperature · Sunset · Kitchen main + use_blueprint: + path: light_sun_set_temperature.yaml + input: + light: light.kitchen_main + temp: 400 + + - alias: Lighting · Temperature · Sunset · Kitchen secondary + use_blueprint: + path: light_sun_set_temperature.yaml + input: + light: light.kitchen_secondary + temp: 400 + + - alias: Lighting ·Temperature · Night · Living room main + use_blueprint: + path: light_sun_set_temperature.yaml + input: + light: light.living_room_main + temp: 500 + after_offset: "+03:00:00" + + - alias: Lighting ·Temperature · Night · PC + use_blueprint: + path: light_sun_set_temperature.yaml + input: + light: light.pc + temp: 500 + after_offset: "+03:00:00" + + - alias: Lighting ·Temperature · Night · Bedroom main + use_blueprint: + path: light_sun_set_temperature.yaml + input: + light: light.master_bedroom_main + temp: 500 + after_offset: "+03:00:00" + + - alias: Lighting ·Temperature · Night · Kitchen main + use_blueprint: + path: light_sun_set_temperature.yaml + input: + light: light.kitchen_main + temp: 500 + after_offset: "+03:00:00" + + - alias: Lighting ·Temperature · Night · Kitchen secondary + use_blueprint: + path: light_sun_set_temperature.yaml + input: + light: light.kitchen_secondary temp: 500 after_offset: "+03:00:00"