Automate kitchen string lights

This commit is contained in:
Georgi Gardev
2022-12-08 21:51:35 +02:00
parent 7ac93f6ec4
commit 16e23014b1
6 changed files with 27 additions and 15 deletions
+7 -6
View File
@@ -126,11 +126,12 @@ views:
name: Vacuum
- type: custom:button-card
template: v3_button_brita_water
# - type: custom:button-card
# template: v3_button_power
# entity: switch.kitchen_outlet
# name: Outlet
# variables:
# power_sensor: sensor.kitchen_outlet_electric_consumption_w
- type: custom:button-card
template: v3_button
entity: switch.kitchen_outlet
icon: mdi:string-lights
name: Christmas lights
# variables:
# power_sensor: sensor.kitchen_outlet_electric_consumption_w
- !include ./lovelace/popup_cards.yaml
@@ -69,6 +69,7 @@ cards:
icon: mdi:lightbulb
entities:
- automation.living_room_candle_turn_on_after_sunset
- automation.kitchen_christmast_lights_turn_on_after_sunset
- automation.lighting_turn_on_ceiling_lights_after_sunset
- automation.lighting_turn_off_all_lights_after_sunrise
- type: divider
@@ -107,11 +107,12 @@
name: Vacuum
- type: custom:button-card
template: v3_button_brita_water
# - type: custom:button-card
# template: v3_button_power
# entity: switch.kitchen_outlet
# name: Outlet
# variables:
# power_sensor: sensor.kitchen_outlet_electric_consumption_w
- type: custom:button-card
template: v3_button
entity: switch.kitchen_outlet
icon: mdi:string-lights
name: Christmas lights
# variables:
# power_sensor: sensor.kitchen_outlet_electric_consumption_w
- !include ../popup_cards.yaml
+1 -1
View File
@@ -570,7 +570,7 @@ cards:
template: brita_card
- type: custom:popup-card
entity: sensor.kitchen_outlet_electric_consumption_w
entity: switch.kitchen_outlet
title: Kitchen power
card:
type: entities
+8
View File
@@ -0,0 +1,8 @@
automation:
- alias: Kitchen christmast lights · turn on after sunset
trigger:
platform: sun
event: sunset
action:
- service: switch.turn_on
entity_id: switch.kitchen_outlet
+3 -2
View File
@@ -20,8 +20,7 @@ script:
- service: light.turn_off
entity_id: light.master_bedroom
- service: script.living_room_candle_off
- service: rest_command.isparkle_off
routine_good_night:
alias: Routine · Going to sleep
@@ -45,9 +44,11 @@ script:
- media_player.living_room_tv
- switch.cadmium
- group.all_radiators
- switch.kitchen_outlet
- service: script.browsers_low
- service: cover.close_cover
entity_id: cover.living_room
- service: script.living_room_candle_off
- service: rest_command.isparkle_off