Compare commits

..

5 Commits

Author SHA1 Message Date
2da0631bd6 delayed updates 2021-11-21 22:49:46 -05:00
54882312bd added chromecast to turn off at end of sleep timer 2021-11-04 11:11:37 -04:00
5af1eb4475 Added hacs entry to bypass limit 2021-11-04 11:11:01 -04:00
e1b32277fe Added extra sensor for Jens timer 2021-11-04 11:10:33 -04:00
aac07bef3a Added Grow Cameras 2021-10-29 23:36:24 -04:00
12 changed files with 157 additions and 67 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
@@ -93,7 +86,8 @@
entity_id: timer.sleep_timer
- service: media_player.turn_off
target:
entity_id: media_player.lg_tv_remote
entity_id:
- media_player.lg_tv_remote
mode: restart
- id: '1632963978970'
alias: Bedroom lamp on at sunset
@@ -113,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
@@ -149,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: ''
@@ -242,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
@@ -279,7 +266,7 @@
to: 'off'
for:
hours: 0
minutes: 1
minutes: 5
seconds: 0
milliseconds: 0
- service: light.turn_off
@@ -305,12 +292,8 @@
alias: Morning wake up routine
description: ''
trigger:
- platform: template
value_template: '{{now().strftime("%a %h %d %H:%M %Z %Y") == (((state_attr(''sensor.pixel_4a_next_alarm'',
''Time in Milliseconds'') | int / 1000) + 1*60 ) | timestamp_custom(''%a %h
%d %H:%M %Z %Y''))}}
'
- platform: time
at: sensor.pixel_4a_next_alarm
condition:
- condition: state
entity_id: person.jen
@@ -346,3 +329,19 @@
target:
entity_id: scene.morning_lights_2
mode: single
- id: '1635994152897'
alias: APP Event - Close Garage
description: ''
trigger:
- platform: event
event_type: ''
event_data:
event_type: mobile_app_notification_action
event_data:
action: CLOSEGARAGE
condition: []
action:
- service: cover.close_cover
target:
entity_id: cover.garage_door
mode: single

View File

@@ -3,8 +3,12 @@
- platform: ffmpeg
name: Veg Tent
input: -rtsp_transport tcp -i rtsp://mike:classic10@192.168.0.91/live
input: -rtsp_transport tcp -i rtsp://mike:classic10@192.168.10.91/live
- platform: ffmpeg
name: Flower Tent
input: -rtsp_transport tcp -i rtsp://mike:classic10@192.168.0.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
switch: !include switch.yaml
cover: !include cover.yaml
climate: !include climate.yaml
wake_on_lan:
frontend:
themes: !include_dir_merge_named themes
@@ -29,3 +32,5 @@ recorder:
db_url: mysql://homeassistant:hass1987!@core-mariadb/homeassistant?charset=utf8mb4
emulated_hue:
config: hacs.disable(HacsDisabledReason.RATE_LIMIT) return True

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

@@ -1 +1,8 @@
- platform: template
sensors:
minutes_next_jen_alarm:
friendly_name: "Minutes Until Jen Next Alarm"
unit_of_measurement: "min"
icon_template: mdi:timer
value_template: "{{((states('sensor.pixel_4a_next_alarm')|as_timestamp -
utcnow()|as_timestamp)/60)|round}}"

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"