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

View File

@@ -8,3 +8,7 @@
- platform: ffmpeg - platform: ffmpeg
name: Flower Tent name: Flower Tent
input: -rtsp_transport tcp -i rtsp://mike:classic10@192.168.10.92/live 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 timer: !include timer.yaml
switch: !include switch.yaml switch: !include switch.yaml
cover: !include cover.yaml cover: !include cover.yaml
climate: !include climate.yaml
wake_on_lan:
frontend: frontend:
themes: !include_dir_merge_named themes 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: entities:
- light.globe_bulb_2 - light.globe_bulb_2
- light.globe_bulb_1 - light.globe_bulb_1
icon: mdi:lightbulb
office_lights: office_lights:
name: Office Lights name: Office Lights
entities: entities:
- light.office_lamp - light.office_lamp
- switch.smart_plug_2_relay - 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 # - platform: flux_led
devices: # devices:
192.168.10.94: # 192.168.10.94:
name: livingroom_tv_led # name: livingroom_tv_led
mode: "rgb" # mode: "rgb"

View File

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

View File

@@ -10,3 +10,11 @@
service: homeassistant.turn_off service: homeassistant.turn_off
target: target:
entity_id: group.basement_lights 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: sleep_timer:
name: Sleep Timer name: Sleep Timer
duration: "00:10:00" duration: "00:15:00"