first commit
This commit is contained in:
310
automations.yaml
Normal file
310
automations.yaml
Normal file
@@ -0,0 +1,310 @@
|
||||
- id: '1632537684866'
|
||||
alias: Appliance has finished
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
|
||||
input:
|
||||
starting_threshold: 10
|
||||
actions:
|
||||
- service: notify.mobile_app_mikephone
|
||||
data:
|
||||
message: Wash cycle is now complete!
|
||||
- service: notify.mobile_app_pixel_4a
|
||||
data:
|
||||
message: Wash cycle is not complete!
|
||||
- service: tts.cloud_say
|
||||
data:
|
||||
entity_id: media_player.livingroom_speaker
|
||||
message: The wash cycle is now complete
|
||||
- condition: state
|
||||
entity_id: media_player.bedroom_tv_chromecast
|
||||
state: playing
|
||||
- service: notify.bedroomtv
|
||||
data:
|
||||
message: The wash cycle is now complete!
|
||||
power_sensor: sensor.smart_plug_4_power
|
||||
finishing_hysteresis: 3
|
||||
finishing_threshold: 5
|
||||
- id: '1632538769085'
|
||||
alias: Advanced medication reminder
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: Aohzan/medication_reminder.yaml
|
||||
input:
|
||||
logbook_message_no_answer: No answer time out
|
||||
notify_device: 187ba06bd5d1900fdf6df867d13009d0
|
||||
input_boolean: input_boolean.notify_medication
|
||||
reminder_time: '21:00:00'
|
||||
optional_action: []
|
||||
- id: '1632791004969'
|
||||
alias: Notify medication taken
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.notify_medication
|
||||
to: 'on'
|
||||
condition: []
|
||||
action:
|
||||
- service: notify.mobile_app_pixel_4a
|
||||
data:
|
||||
title: Medication Taken
|
||||
message: Mike has taken his pill.
|
||||
mode: single
|
||||
- id: '1632928476836'
|
||||
alias: Sleep Timer
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: timer.started
|
||||
event_data:
|
||||
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.bedroom_lamp_left
|
||||
- switch.bedroom_lamp_right
|
||||
- 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
|
||||
- service: notify.mobile_app_mikephone
|
||||
data:
|
||||
message: command_dnd
|
||||
title: priority_only
|
||||
- wait_for_trigger:
|
||||
- platform: event
|
||||
event_type: timer.finished
|
||||
event_data:
|
||||
entity_id: timer.sleep_timer
|
||||
- service: media_player.turn_off
|
||||
target:
|
||||
entity_id: media_player.lg_tv_remote
|
||||
mode: restart
|
||||
- id: '1632963978970'
|
||||
alias: Bedroom lamp on at sunset
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sun.sun
|
||||
attribute: elevation
|
||||
below: '5'
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: device_tracker.mikes_phone
|
||||
state: home
|
||||
- condition: state
|
||||
entity_id: device_tracker.jen_phone
|
||||
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
|
||||
mode: single
|
||||
- id: '1633200241746'
|
||||
alias: Office Button Presses
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: carlosmesquita/zha-xiaomi-aqara-wireless-mini-switch-wxkg11lm-lumi-sensor-switch-aq2.yaml
|
||||
input:
|
||||
mijia_square_switch: bba097c41e6eb679f95f92dbc7ec061e
|
||||
remote_button_short_press:
|
||||
- service: homeassistant.toggle
|
||||
target:
|
||||
entity_id: group.office_lights
|
||||
remote_button_double_press:
|
||||
- service: homeassistant.toggle
|
||||
target:
|
||||
entity_id: script.leaving_office
|
||||
- id: '1633210997896'
|
||||
alias: Bedroom Button Presses
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: SeanM/zha-aqara-wireless-mini-switch.yaml
|
||||
input:
|
||||
aqara_mini_switch: 87be5578c5cfe9927a72a2d438b5fe9a
|
||||
button_single_press:
|
||||
- service: homeassistant.toggle
|
||||
target:
|
||||
entity_id: light.bedroom_lamp_left
|
||||
button_long_press:
|
||||
- service: timer.start
|
||||
data:
|
||||
duration: '0'
|
||||
target:
|
||||
entity_id: timer.sleep_timer
|
||||
button_double_press:
|
||||
- service: homeassistant.toggle
|
||||
target:
|
||||
entity_id: switch.bedroom_lamp_right
|
||||
- id: '1633312071688'
|
||||
alias: Shaedyn's Bedtime Countdown
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '21:15:00'
|
||||
condition:
|
||||
- condition: time
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- sun
|
||||
- condition: state
|
||||
entity_id: input_boolean.bedtime_override
|
||||
state: 'off'
|
||||
action:
|
||||
- service: tts.cloud_say
|
||||
data:
|
||||
entity_id: media_player.livingroom_speaker
|
||||
message: You have 15 minutes until bedtime.
|
||||
- service: notify.shieldtv
|
||||
data:
|
||||
message: 15 MINS BEFORE BEDTIME!
|
||||
- wait_for_trigger:
|
||||
- platform: time
|
||||
at: '21:29:00'
|
||||
continue_on_timeout: true
|
||||
- service: tts.cloud_say
|
||||
data:
|
||||
entity_id: media_player.livingroom_speaker
|
||||
message: Its time for bed! Devices will shut down in one minute.
|
||||
- service: notify.shieldtv
|
||||
data:
|
||||
message: TIME FOR BED! 1 MIN
|
||||
- wait_for_trigger:
|
||||
- platform: time
|
||||
at: '21:30:00'
|
||||
- condition: state
|
||||
state: 'off'
|
||||
entity_id: input_boolean.bedtime_override
|
||||
- service: homeassistant.toggle
|
||||
target:
|
||||
entity_id: switch.livingroompc_sleep
|
||||
- service: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: remote.harmony_hub
|
||||
- service: light.turn_on
|
||||
target:
|
||||
entity_id: light.upstairs_light
|
||||
data:
|
||||
transition: 5
|
||||
brightness_pct: 75
|
||||
mode: single
|
||||
- id: '1633312401037'
|
||||
alias: Turn off Bedtime Override Boolean at midnight
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time
|
||||
at: 00:00:00
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.bedtime_override
|
||||
state: 'on'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.bedtime_override
|
||||
mode: single
|
||||
- id: '1633555833474'
|
||||
alias: Upstairs light on at sunset
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sun.sun
|
||||
attribute: elevation
|
||||
below: '10'
|
||||
condition: []
|
||||
action:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
entity_id: light.upstairs_light
|
||||
data:
|
||||
brightness_pct: 15
|
||||
mode: single
|
||||
- id: '1633561149527'
|
||||
alias: Porch light on at night
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sun.sun
|
||||
below: '-1'
|
||||
attribute: elevation
|
||||
condition: []
|
||||
action:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
entity_id: light.porch_light
|
||||
mode: single
|
||||
- id: '1633576069502'
|
||||
alias: Upstairs light bright when shae's door opens
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.shaedyns_door
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state: 'on'
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
transition: 30
|
||||
brightness_pct: 75
|
||||
target:
|
||||
entity_id: light.upstairs_light
|
||||
- wait_for_trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.shaedyns_door
|
||||
to: 'off'
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
milliseconds: 0
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.upstairs_light
|
||||
mode: single
|
||||
- id: '1633748728761'
|
||||
alias: Turn off night mode boolen
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: remote.harmony_hub
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: time
|
||||
after: 06:30:00
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.night_mode
|
||||
mode: single
|
||||
5
binary_sensor.yaml
Normal file
5
binary_sensor.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
- platform: workday
|
||||
name: School Night
|
||||
country: CA
|
||||
workdays: [sun, mon, tue, wed, thu]
|
||||
excludes: [fri, sat]
|
||||
2
camera.yaml
Normal file
2
camera.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- platform: environment_canada
|
||||
name: local
|
||||
30
configuration.yaml
Normal file
30
configuration.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
# Configure a default setup of Home Assistant (frontend, api, etc)
|
||||
default_config:
|
||||
|
||||
# Text to speech
|
||||
tts:
|
||||
- platform: google_translate
|
||||
|
||||
http: !include http.yaml
|
||||
group: !include groups.yaml
|
||||
automation: !include automations.yaml
|
||||
script: !include scripts.yaml
|
||||
scene: !include scenes.yaml
|
||||
light: !include lights.yaml
|
||||
weather: !include weather.yaml
|
||||
sensor: !include sensor.yaml
|
||||
binary_sensor: !include binary_sensor.yaml
|
||||
camera: !include camera.yaml
|
||||
input_boolean: !include input_boolean.yaml
|
||||
media_player: !include media_player.yaml
|
||||
input_number: !include input_number.yaml
|
||||
timer: !include timer.yaml
|
||||
switch: !include switch.yaml
|
||||
|
||||
frontend:
|
||||
themes: !include_dir_merge_named themes
|
||||
|
||||
recorder:
|
||||
db_url: mysql://homeassistant:hass1987!@core-mariadb/homeassistant?charset=utf8mb4
|
||||
|
||||
emulated_hue:
|
||||
11
groups.yaml
Normal file
11
groups.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
basement_lights:
|
||||
name: Basement Lights
|
||||
entities:
|
||||
- light.globe_bulb_2
|
||||
- light.globe_bulb_1
|
||||
|
||||
office_lights:
|
||||
name: Office Lights
|
||||
entities:
|
||||
- light.office_lamp
|
||||
- switch.smart_plug_2_relay
|
||||
11
input_boolean.yaml
Normal file
11
input_boolean.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
notify_medication:
|
||||
name: Notify when time for medication
|
||||
icon: mdi:pill
|
||||
|
||||
bedtime_override:
|
||||
name: Shayden Bedtime Override
|
||||
icon: mdi:bed
|
||||
|
||||
night_mode:
|
||||
name: Night Mode
|
||||
icon: mdi:bed-empty
|
||||
6
input_number.yaml
Normal file
6
input_number.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
sleep_timer_duration:
|
||||
name: Sleep Timer Duration
|
||||
initial: 5
|
||||
min: 5
|
||||
max: 30
|
||||
step: 5
|
||||
5
lights.yaml
Normal file
5
lights.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
- platform: flux_led
|
||||
devices:
|
||||
192.168.10.94:
|
||||
name: livingroom_tv_led
|
||||
mode: "rgb"
|
||||
7
media_player.yaml
Normal file
7
media_player.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
- platform: lg_netcast
|
||||
host: 10.0.0.40
|
||||
access_token: 608887
|
||||
|
||||
- platform: androidtv
|
||||
name: Bedroom TV Chromecast
|
||||
host: 10.0.0.61
|
||||
109
scenes.yaml
Normal file
109
scenes.yaml
Normal file
@@ -0,0 +1,109 @@
|
||||
- id: '1633572710525'
|
||||
name: Office Chill
|
||||
entities:
|
||||
light.office_lamp:
|
||||
min_mireds: 153
|
||||
max_mireds: 588
|
||||
effect_list:
|
||||
- Strobe color
|
||||
- Police
|
||||
- Christmas
|
||||
- RGB
|
||||
- Random Loop
|
||||
- Fast Random Loop
|
||||
- LSD
|
||||
- Slowdown
|
||||
- Night Mode
|
||||
- Date Night
|
||||
- Movie
|
||||
- Sunrise
|
||||
- Sunset
|
||||
- Romance
|
||||
- Happy Birthday
|
||||
- Disco
|
||||
- Strobe epilepsy!
|
||||
- Alarm
|
||||
- Police2
|
||||
- WhatsApp
|
||||
- Facebook
|
||||
- Twitter
|
||||
- Home
|
||||
- Candle Flicker
|
||||
- Slow Temp
|
||||
- Stop
|
||||
supported_color_modes:
|
||||
- color_temp
|
||||
- hs
|
||||
- rgb
|
||||
color_mode: rgb
|
||||
brightness: 255
|
||||
hs_color:
|
||||
- 267.765
|
||||
- 100
|
||||
rgb_color:
|
||||
- 118
|
||||
- 0
|
||||
- 255
|
||||
xy_color:
|
||||
- 0.207
|
||||
- 0.072
|
||||
flowing: false
|
||||
music_mode: false
|
||||
friendly_name: Office Lamp
|
||||
supported_features: 44
|
||||
state: 'on'
|
||||
- id: '1633572753608'
|
||||
name: Office Normal
|
||||
entities:
|
||||
light.office_lamp:
|
||||
min_mireds: 153
|
||||
max_mireds: 588
|
||||
effect_list:
|
||||
- Strobe color
|
||||
- Police
|
||||
- Christmas
|
||||
- RGB
|
||||
- Random Loop
|
||||
- Fast Random Loop
|
||||
- LSD
|
||||
- Slowdown
|
||||
- Night Mode
|
||||
- Date Night
|
||||
- Movie
|
||||
- Sunrise
|
||||
- Sunset
|
||||
- Romance
|
||||
- Happy Birthday
|
||||
- Disco
|
||||
- Strobe epilepsy!
|
||||
- Alarm
|
||||
- Police2
|
||||
- WhatsApp
|
||||
- Facebook
|
||||
- Twitter
|
||||
- Home
|
||||
- Candle Flicker
|
||||
- Slow Temp
|
||||
- Stop
|
||||
supported_color_modes:
|
||||
- color_temp
|
||||
- hs
|
||||
- rgb
|
||||
color_mode: color_temp
|
||||
brightness: 255
|
||||
color_temp: 239
|
||||
hs_color:
|
||||
- 26.747
|
||||
- 31.637
|
||||
rgb_color:
|
||||
- 255
|
||||
- 210
|
||||
- 174
|
||||
xy_color:
|
||||
- 0.41
|
||||
- 0.362
|
||||
flowing: false
|
||||
music_mode: false
|
||||
friendly_name: Office Lamp
|
||||
supported_features: 44
|
||||
state: 'on'
|
||||
41
scripts.yaml
Normal file
41
scripts.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
bedtime_mode:
|
||||
sequence:
|
||||
- type: turn_off
|
||||
device_id: 4850dbfbf153e58dd801ca200dcd79d6
|
||||
entity_id: light.bedroom_lamp
|
||||
domain: light
|
||||
- service: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.squeezebox_radio
|
||||
data:
|
||||
media_content_type: music
|
||||
media_content_id: /media/whitenoisefan.m4a
|
||||
mode: restart
|
||||
alias: 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
|
||||
- type: toggle
|
||||
device_id: 90c3e29c66fd372625f532aa108d129f
|
||||
entity_id: switch.mikepc_sleep
|
||||
domain: switch
|
||||
mode: single
|
||||
alias: Leaving Office
|
||||
icon: mdi:desk
|
||||
start_sleep_timer:
|
||||
alias: Start Sleep Timer
|
||||
sequence:
|
||||
- service: timer.start
|
||||
data: {}
|
||||
target:
|
||||
entity_id: timer.sleep_timer
|
||||
mode: restart
|
||||
icon: mdi:bed
|
||||
1
sensor.yaml
Normal file
1
sensor.yaml
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
12
switch.yaml
Normal file
12
switch.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
- platform: template
|
||||
switches:
|
||||
basement_lights:
|
||||
value_template: "{{ is_state('group.basement_lights', 'on')}}"
|
||||
turn_on:
|
||||
service: homeassistant.turn_on
|
||||
target:
|
||||
entity_id: group.basement_lights
|
||||
turn_off:
|
||||
service: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: group.basement_lights
|
||||
3
timer.yaml
Normal file
3
timer.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
sleep_timer:
|
||||
name: Sleep Timer
|
||||
duration: "00:10:00"
|
||||
1
weather.yaml
Normal file
1
weather.yaml
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user