Compare commits
7 Commits
d019d5e078
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 2da0631bd6 | |||
| 54882312bd | |||
| 5af1eb4475 | |||
| e1b32277fe | |||
| aac07bef3a | |||
| 8d7db9ce09 | |||
| 6d0c7f34d5 |
@@ -1,5 +1,5 @@
|
|||||||
- id: '1632537684866'
|
- id: '1632537684866'
|
||||||
alias: Appliance has finished
|
alias: Washing machine has finished
|
||||||
description: ''
|
description: ''
|
||||||
use_blueprint:
|
use_blueprint:
|
||||||
path: sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
|
path: sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
|
||||||
@@ -11,11 +11,7 @@
|
|||||||
message: Wash cycle is now complete!
|
message: Wash cycle is now complete!
|
||||||
- service: notify.mobile_app_pixel_4a
|
- service: notify.mobile_app_pixel_4a
|
||||||
data:
|
data:
|
||||||
message: Wash cycle is not complete!
|
message: Wash cycle is now complete!
|
||||||
- service: tts.cloud_say
|
|
||||||
data:
|
|
||||||
entity_id: media_player.livingroom_speaker
|
|
||||||
message: The wash cycle is now complete
|
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: media_player.bedroom_tv_chromecast
|
entity_id: media_player.bedroom_tv_chromecast
|
||||||
state: playing
|
state: playing
|
||||||
@@ -60,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
|
||||||
@@ -97,7 +86,8 @@
|
|||||||
entity_id: timer.sleep_timer
|
entity_id: timer.sleep_timer
|
||||||
- service: media_player.turn_off
|
- service: media_player.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.lg_tv_remote
|
entity_id:
|
||||||
|
- media_player.lg_tv_remote
|
||||||
mode: restart
|
mode: restart
|
||||||
- id: '1632963978970'
|
- id: '1632963978970'
|
||||||
alias: Bedroom lamp on at sunset
|
alias: Bedroom lamp on at sunset
|
||||||
@@ -117,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
|
||||||
@@ -153,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: ''
|
||||||
@@ -246,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
|
||||||
@@ -283,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
|
||||||
@@ -309,12 +292,8 @@
|
|||||||
alias: Morning wake up routine
|
alias: Morning wake up routine
|
||||||
description: ''
|
description: ''
|
||||||
trigger:
|
trigger:
|
||||||
- platform: template
|
- platform: time
|
||||||
value_template: '{{now().strftime("%a %h %d %H:%M %Z %Y") == (((state_attr(''sensor.pixel_4a_next_alarm'',
|
at: sensor.pixel_4a_next_alarm
|
||||||
''Time in Milliseconds'') | int / 1000) + 1*60 ) | timestamp_custom(''%a %h
|
|
||||||
%d %H:%M %Z %Y''))}}
|
|
||||||
|
|
||||||
'
|
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: person.jen
|
entity_id: person.jen
|
||||||
@@ -350,3 +329,19 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: scene.morning_lights_2
|
entity_id: scene.morning_lights_2
|
||||||
mode: single
|
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
|
||||||
|
|||||||
12
camera.yaml
12
camera.yaml
@@ -1,2 +1,14 @@
|
|||||||
- platform: environment_canada
|
- platform: environment_canada
|
||||||
name: local
|
name: local
|
||||||
|
|
||||||
|
- platform: ffmpeg
|
||||||
|
name: Veg Tent
|
||||||
|
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.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
9
climate.yaml
Normal 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
|
||||||
@@ -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
|
||||||
@@ -29,3 +32,5 @@ recorder:
|
|||||||
db_url: mysql://homeassistant:hass1987!@core-mariadb/homeassistant?charset=utf8mb4
|
db_url: mysql://homeassistant:hass1987!@core-mariadb/homeassistant?charset=utf8mb4
|
||||||
|
|
||||||
emulated_hue:
|
emulated_hue:
|
||||||
|
|
||||||
|
config: hacs.disable(HacsDisabledReason.RATE_LIMIT) return True
|
||||||
|
|||||||
42
esphome/sonoff-plug-2.yaml
Normal file
42
esphome/sonoff-plug-2.yaml
Normal 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
|
||||||
16
groups.yaml
16
groups.yaml
@@ -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
|
||||||
|
|||||||
10
lights.yaml
10
lights.yaml
@@ -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"
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
39
scripts.yaml
39
scripts.yaml
@@ -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
|
||||||
|
|||||||
@@ -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}}"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
sleep_timer:
|
sleep_timer:
|
||||||
name: Sleep Timer
|
name: Sleep Timer
|
||||||
duration: "00:10:00"
|
duration: "00:15:00"
|
||||||
|
|||||||
Reference in New Issue
Block a user