delayed updates

This commit is contained in:
2021-11-21 22:49:46 -05:00
parent 54882312bd
commit 2da0631bd6
11 changed files with 125 additions and 58 deletions

View File

@@ -56,29 +56,22 @@
entity_id: timer.sleep_timer
condition: []
action:
- service: homeassistant.turn_off
target:
entity_id: group.basement_lights
- service: homeassistant.turn_off
target:
entity_id:
- light.upstairs_light
- light.livingroom_lamp
- light.bedroom_lamp_left
- switch.bedroom_lamp_right
- group.outside_lights
- light.globe_bulb_2
- switch.christmas_tree
- service: media_player.play_media
data:
media_content_id: /media/whitenoisefan.m4a
media_content_type: music
target:
entity_id: media_player.squeezebox_radio
- service: light.turn_off
target:
entity_id: light.upstairs_light
data:
transition: 10
- type: turn_off
device_id: 451b184dee654bf08731024d01b4b602
entity_id: light.porch_light
domain: light
- service: input_boolean.turn_on
target:
entity_id: input_boolean.night_mode
@@ -95,7 +88,6 @@
target:
entity_id:
- media_player.lg_tv_remote
- media_player.bedroom_tv_chromecast
mode: restart
- id: '1632963978970'
alias: Bedroom lamp on at sunset
@@ -115,14 +107,9 @@
entity_id: device_tracker.jen
state: home
action:
- type: turn_on
device_id: 4850dbfbf153e58dd801ca200dcd79d6
entity_id: light.bedroom_lamp_left
domain: light
brightness_pct: 45
- service: homeassistant.turn_on
target:
entity_id: switch.bedroom_lamp_right
entity_id: group.bedroom_lights
mode: single
- id: '1633200241746'
alias: Office Button Presses
@@ -151,15 +138,13 @@
target:
entity_id: light.bedroom_lamp_left
button_long_press:
- service: timer.start
data:
duration: '0'
- service: script.turn_on
target:
entity_id: timer.sleep_timer
entity_id: script.start_sleep_timer
button_double_press:
- service: homeassistant.toggle
target:
entity_id: switch.bedroom_lamp_right
entity_id: light.bedroom_lamp_right
- id: '1633312071688'
alias: Shaedyn's Bedtime Countdown
description: ''
@@ -244,18 +229,18 @@
brightness_pct: 15
mode: single
- id: '1633561149527'
alias: Porch light on at night
alias: Outside lights on at night
description: ''
trigger:
- platform: numeric_state
entity_id: sun.sun
below: '-1'
below: '1'
attribute: elevation
condition: []
action:
- service: light.turn_on
- service: homeassistant.turn_on
target:
entity_id: light.porch_light
entity_id: group.outside_lights
mode: single
- id: '1633576069502'
alias: Upstairs light bright when shae's door opens
@@ -281,7 +266,7 @@
to: 'off'
for:
hours: 0
minutes: 1
minutes: 5
seconds: 0
milliseconds: 0
- service: light.turn_off

View File

@@ -8,3 +8,7 @@
- platform: ffmpeg
name: Flower Tent
input: -rtsp_transport tcp -i rtsp://mike:classic10@192.168.10.92/live
- platform: ffmpeg
name: Mother Tent
input: -rtsp_transport tcp -i rtsp://mike:classic10@192.168.10.93/live

9
climate.yaml Normal file
View File

@@ -0,0 +1,9 @@
# - platform: programmable_thermostat
# name: room
# heater:
# - switch.smart_plug_1
# actual_temp_sensor: sensor.bedroom_temperature
# min_temp: 17
# max_temp: 23
# tolerance: 0.3
# auto_mode: heating

View File

@@ -21,6 +21,9 @@ input_number: !include input_number.yaml
timer: !include timer.yaml
switch: !include switch.yaml
cover: !include cover.yaml
climate: !include climate.yaml
wake_on_lan:
frontend:
themes: !include_dir_merge_named themes

View File

@@ -0,0 +1,42 @@
esphome:
name: sonoff_switch_2
platform: ESP8266
board: esp01_1m
wifi:
ssid: "LANofOZ"
password: "@a1b2c3d4e5!"
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
web_server:
port: 80
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Sonoff_switch_1_button"
on_press:
- switch.toggle: relay
switch:
- platform: gpio
name: "Sonoff_switch_1_relay"
pin: GPIO12
id: relay
status_led:
pin:
number: GPIO13
inverted: yes

View File

@@ -3,9 +3,25 @@ basement_lights:
entities:
- light.globe_bulb_2
- light.globe_bulb_1
icon: mdi:lightbulb
office_lights:
name: Office Lights
entities:
- light.office_lamp
- switch.smart_plug_2_relay
- light.desk_led
icon: mdi:lightbulb
outside_lights:
name: Outside Lights
entities:
- light.driveway_light
- light.porch_light
icon: mdi:lightbulb
bedroom_lights:
name: bedroom lights
entities:
- light.bedroom_lamp_left
- light.bedroom_lamp_right

View File

@@ -1,5 +1,5 @@
- platform: flux_led
devices:
192.168.10.94:
name: livingroom_tv_led
mode: "rgb"
# - platform: flux_led
# devices:
# 192.168.10.94:
# name: livingroom_tv_led
# mode: "rgb"

View File

@@ -124,3 +124,10 @@
friendly_name: Upstairs Light
supported_features: 41
state: 'off'
light.driveway_light:
supported_color_modes:
- brightness
off_brightness:
friendly_name: Driveway Light
supported_features: 41
state: 'off'

View File

@@ -15,14 +15,9 @@ bedtime_mode:
icon: mdi:bed
leaving_office:
sequence:
- type: turn_off
device_id: 67db7ebde4a24eb779c2909e9b1c9ec8
entity_id: light.office_lamp
domain: light
- type: turn_off
device_id: b149e6c97a3cc9602c389d6305911fc8
entity_id: switch.smart_plug_2_relay
domain: switch
- service: homeassistant.turn_off
target:
entity_id: group.office_lights
- type: toggle
device_id: 90c3e29c66fd372625f532aa108d129f
entity_id: switch.mikepc_sleep
@@ -47,14 +42,16 @@ morning_routine:
entity_id: light.upstairs_light
domain: light
brightness_pct: 15
- type: turn_on
device_id: e6cbd7cd9a565f6e81ec1d7903d151f4
entity_id: light.livingroom_light
domain: light
brightness_pct: 5
- service: light.turn_on
data:
brightness_pct: 100
target:
entity_id: light.livingroom_lamp
- service: switch.turn_on
target:
entity_id: switch.harmony_hub_shield_tv
entity_id:
- switch.harmony_hub_shield_tv
- switch.christmas_tree
- delay:
hours: 0
minutes: 0
@@ -67,14 +64,10 @@ morning_routine:
- delay:
hours: 0
minutes: 0
seconds: 3
seconds: 5
milliseconds: 0
- wait_for_trigger:
- platform: numeric_state
entity_id: sun.sun
attribute: elevation
above: '1'
- service: light.turn_off
target:
entity_id: light.upstairs_light
- service: androidtv.adb_command
data:
entity_id: media_player.livingroom_tv_shield
command: input keyevent 8
mode: single

View File

@@ -10,3 +10,11 @@
service: homeassistant.turn_off
target:
entity_id: group.basement_lights
- platform: wake_on_lan
mac: 74:d4:35:eb:d8:06
name: Wake MikePC
- platform: wake_on_lan
mac: 1c:b7:2c:ab:dc:33
name: Wake LivingroomPC

View File

@@ -1,3 +1,3 @@
sleep_timer:
name: Sleep Timer
duration: "00:10:00"
duration: "00:15:00"