mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Automate kitchen string lights
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user