1
0

Compare commits

..

No commits in common. "479fa18e40a08f786fe3066c71d612d9f99970af" and "a21f418f74ebfdb72d96ad13911031d860faa8e3" have entirely different histories.

14 changed files with 57 additions and 209 deletions

View File

@ -14,48 +14,30 @@
kelvin: 2000 kelvin: 2000
brightness: 1 brightness: 1
entity_id: light.bedroom_lights entity_id: light.bedroom_lights
- service: cover.set_cover_position
target:
entity_id: cover.bedroom_blinds
data:
position: 10
- service: light.turn_on - service: light.turn_on
data: data:
kelvin: 5300 kelvin: 5300
transition: 1800 transition: 1800
brightness: 255 brightness: 255
entity_id: light.bedroom_lights entity_id: light.bedroom_lights
- service: light.turn_on
data:
kelvin: 5300
transition: 1800
brightness: 255
entity_id: light.bed_lamps
- service: light.turn_on
data:
kelvin: 5300
transition: 1800
brightness: 255
entity_id: light.bed_lightstrip
- repeat:
count: 10
sequence:
- service: cover.set_cover_position
target:
entity_id: cover.bedroom_blinds
data:
position: "{{ repeat.index * 10 | int }}"
- delay: - delay:
seconds: 180 minutes: 30
- service: media_player.volume_set - service: media_player.volume_set
data: data:
volume_level: 0.1 volume_level: 0.1
entity_id: media_player.bedroom entity_id: media_player.bedroom
- delay: - delay: '10'
seconds: 10
- service: media_player.play_media - service: media_player.play_media
data: data:
entity_id: media_player.bedroom entity_id: media_player.bedroom
media_content_id: 'https://open.spotify.com/playlist/3Qu9kE0ivJIkn76pxTLMFe' media_content_id: 'https://open.spotify.com/playlist/3Qu9kE0ivJIkn76pxTLMFe'
media_content_type: music media_content_type: music
- service: script.good_morning - service: script.good_morning
- delay:
minutes: 30
- service: automation.turn_on - service: automation.turn_on
target: target:
entity_id: entity_id:

View File

@ -9,7 +9,7 @@
condition: condition:
- condition: numeric_state - condition: numeric_state
entity_id: sensor.bedroom_motion_illuminance entity_id: sensor.bedroom_motion_illuminance
below: '16' below: '21'
- condition: state - condition: state
entity_id: input_select.home_mode entity_id: input_select.home_mode
state: Day state: Day

View File

@ -10,14 +10,14 @@
- choose: - choose:
- conditions: - conditions:
- condition: state - condition: state
entity_id: light.office entity_id: light.table_lamp
state: 'on' state: 'on'
sequence: sequence:
- service: light.turn_off - service: light.turn_off
entity_id: light.office entity_id: light.table_lamp
- conditions: - conditions:
- condition: state - condition: state
entity_id: light.office entity_id: light.table_lamp
state: 'off' state: 'off'
sequence: sequence:
- choose: - choose:
@ -27,7 +27,7 @@
state: 'on' state: 'on'
sequence: sequence:
- service: light.turn_on - service: light.turn_on
entity_id: light.office entity_id: light.table_lamp
data: data:
brightness_pct: 100 brightness_pct: 100
kelvin: 2000 kelvin: 2000
@ -37,7 +37,7 @@
state: 'off' state: 'off'
sequence: sequence:
- service: light.turn_on - service: light.turn_on
entity_id: light.office entity_id: light.table_lamp
data: data:
brightness_pct: 100 brightness_pct: 100
kelvin: 3200 kelvin: 3200

View File

@ -1,32 +0,0 @@
- id: f1-automation
alias: '[F1] Automation'
mode: single
trigger:
- platform: state
entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar
to: 'on'
action:
- service: media_player.play_media
data:
media_content_id: https://open.spotify.com/track/5r7egnfTIQjaKSGREhIky9?si=688bbc2db49a4980
media_content_type: music
target:
entity_id: media_player.bedroom
- choose:
- conditions:
- condition: not
conditions:
- condition: state
entity_id: media_player.living_room
state: TV
attribute: source
sequence:
- service: sonos.join
data:
master: media_player.bedroom
entity_id: media_player.living_room
- service: sonos.join
data:
master: media_player.bedroom
entity_id: media_player.bathroom

View File

@ -2,24 +2,16 @@
alias: '[Hallway] Super sensor reset' alias: '[Hallway] Super sensor reset'
mode: restart mode: restart
trigger: trigger:
- platform: state - entity_id: binary_sensor.hallway_motion_sensor
entity_id: binary_sensor.hallway_motion_sensor
for: 00:00:05 for: 00:00:05
from: 'off' from: 'off'
platform: state
to: 'on' to: 'on'
action: action:
# - service: python_script.set_state - data_template:
# data_template: entity_id: binary_sensor.hallway_motion_sensor
# entity_id: binary_sensor.hallway_motion_sensor state: 'off'
# state: 'off' service: python_script.set_state
- service: zha.set_zigbee_cluster_attribute
data:
ieee: 00:15:8d:00:07:75:31:c0
endpoint_id: 1
cluster_id: 1280
cluster_type: in
attribute: 2
value: '0'
- id: hallway-button - id: hallway-button
alias: '[Hallway] Button single press' alias: '[Hallway] Button single press'

View File

@ -1,76 +0,0 @@
- id: ra-music-bathroom-arrive
alias: '[RA] Bathroom arrive'
mode: single
trigger:
- platform: state
entity_id: sensor.przemyslaws_apple_watch_room_presence
to: ra-bathroom
condition:
- condition: or
conditions:
- condition: state
entity_id: media_player.bedroom
state: playing
action:
- service: sonos.join
data:
master: media_player.bedroom
entity_id: media_player.bathroom
- id: ra-music-bathroom-leave
alias: '[RA] Bathroom leave'
mode: single
trigger:
- platform: state
entity_id: sensor.przemyslaws_apple_watch_room_presence
from: ra-bathroom
for: '0:01:00'
condition:
- condition: or
conditions:
- condition: state
entity_id: media_player.bathroom
state: playing
action:
- service: sonos.unjoin
data:
entity_id: media_player.bathroom
- id: ra-music-bedroom-arrive
alias: '[RA] Bedroom arrive'
mode: single
trigger:
- platform: state
entity_id: sensor.przemyslaws_apple_watch_room_presence
to: ra-bedroom
condition:
- condition: or
conditions:
- condition: state
entity_id: media_player.bathroom
state: playing
action:
- service: sonos.join
data:
master: media_player.bathroom
entity_id: media_player.bedroom
- id: ra-music-bedroom-leave
alias: '[RA] Bedroom leave'
mode: single
trigger:
- platform: state
entity_id: sensor.przemyslaws_apple_watch_room_presence
from: ra-bathroom
for: '0:01:00'
condition:
- condition: or
conditions:
- condition: state
entity_id: media_player.bedroom
state: playing
action:
- service: sonos.unjoin
data:
entity_id: media_player.bedroom

View File

@ -14,7 +14,7 @@
state: Day state: Day
- condition: numeric_state - condition: numeric_state
entity_id: sensor.kitchen_motion_sensor_illuminance entity_id: sensor.kitchen_motion_sensor_illuminance
below: '16' below: '21'
sequence: sequence:
- choose: - choose:
- conditions: - conditions:

View File

@ -13,14 +13,14 @@
- choose: - choose:
- conditions: - conditions:
- condition: state - condition: state
entity_id: light.office entity_id: light.table_lamp
state: 'on' state: 'on'
sequence: sequence:
- service: light.turn_off - service: light.turn_off
entity_id: light.office entity_id: light.table_lamp
- conditions: - conditions:
- condition: state - condition: state
entity_id: light.office entity_id: light.table_lamp
state: 'off' state: 'off'
sequence: sequence:
- choose: - choose:
@ -36,7 +36,7 @@
state: 'on' state: 'on'
sequence: sequence:
- service: light.turn_on - service: light.turn_on
entity_id: light.office entity_id: light.table_lamp
data: data:
brightness_pct: 100 brightness_pct: 100
kelvin: 2000 kelvin: 2000
@ -46,7 +46,7 @@
state: 'off' state: 'off'
sequence: sequence:
- service: light.turn_on - service: light.turn_on
entity_id: light.office entity_id: light.table_lamp
data: data:
brightness_pct: 100 brightness_pct: 100
kelvin: 3200 kelvin: 3200
@ -56,7 +56,7 @@
state: Night state: Night
sequence: sequence:
- service: light.turn_on - service: light.turn_on
entity_id: light.office entity_id: light.table_lamp
data: data:
brightness_pct: 5 brightness_pct: 5
kelvin: 2700 kelvin: 2700

View File

@ -2,7 +2,7 @@
alias: '[Work] Daily Warning' alias: '[Work] Daily Warning'
trigger: trigger:
- platform: time - platform: time
at: '9:30' at: '8:30'
condition: condition:
- condition: time - condition: time
weekday: weekday:
@ -15,9 +15,6 @@
- service: light.turn_on - service: light.turn_on
data: data:
brightness_pct: 100 brightness_pct: 100
entity_id: light.bathroom_color_zha_group_0x0007
- service: light.turn_on
data:
hs_color: hs_color:
- 120 - 120
- 100 - 100
@ -59,7 +56,7 @@
alias: '[Work] Daily notification' alias: '[Work] Daily notification'
trigger: trigger:
- platform: time - platform: time
at: '9:59' at: '8:55'
condition: condition:
- condition: time - condition: time
weekday: weekday:
@ -92,7 +89,7 @@
alias: '[Work] Daily notification off' alias: '[Work] Daily notification off'
trigger: trigger:
- platform: time - platform: time
at: '10:10' at: '9:10'
condition: condition:
- condition: time - condition: time
weekday: weekday:
@ -109,11 +106,8 @@
- id: work_finished - id: work_finished
alias: '[Work] Notify when finished work' alias: '[Work] Notify when finished work'
trigger: trigger:
- platform: state - platform: time
entity_id: device_tracker.amdn4684 at: '17:00'
for:
hours: 8
to: home
condition: condition:
- condition: time - condition: time
weekday: weekday:

View File

@ -14,7 +14,6 @@ http:
- 192.168.50.101 - 192.168.50.101
- 192.168.50.102 - 192.168.50.102
- 192.168.50.103 - 192.168.50.103
- 192.168.50.104
ip_ban_enabled: false ip_ban_enabled: false
login_attempts_threshold: 5 login_attempts_threshold: 5
image: image:
@ -183,11 +182,6 @@ notify:
recipient: !secret phone_number recipient: !secret phone_number
media_player: media_player:
- platform: androidtv
name: Bedroom ATV
device_class: androidtv
host: 192.168.60.17
adbkey: "/config/android/adbkey"
- platform: androidtv - platform: androidtv
name: nVidia Shield name: nVidia Shield
device_class: androidtv device_class: androidtv
@ -312,12 +306,6 @@ calendar:
- name: "Caffeine free time" - name: "Caffeine free time"
calendar: "Automations" calendar: "Automations"
search: "Caffeine free" search: "Caffeine free"
- platform: caldav
url: https://cloud.grondek.pl/remote.php/dav
username: pgrondek
password: !secret nextcloud_token
calendars:
- "2021 FIA Formula One World Championship Race Calendar"
ble_monitor: ble_monitor:
# Xiaomi BT Sensors # Xiaomi BT Sensors
@ -331,28 +319,28 @@ ble_monitor:
report_unknown: False report_unknown: False
discovery: True discovery: True
devices: devices:
- name: 'Bedroom sensor [BLE]' - name: 'Bedroom sensor'
mac: '58:2D:34:3B:67:B0' mac: '58:2D:34:3B:67:B0'
- name: 'Filament Sensor' - name: 'Filament Sensor'
mac: 'A4:C1:38:EC:AE:6B' mac: 'A4:C1:38:EC:AE:6B'
- name: 'Computer Cave sensor' - name: 'Computer Cave sensor'
mac: 'A4:C1:38:05:3D:AF' mac: 'A4:C1:38:05:3D:AF'
- name: 'Bathroom sensor [BLE]' - name: 'Bathroom sensor'
mac: 'A4:C1:38:49:30:DF' mac: 'A4:C1:38:49:30:DF'
- name: 'Rack sensor' - name: 'Rack sensor'
mac: 'A4:C1:38:5E:F8:84' mac: 'A4:C1:38:5E:F8:84'
- name: 'Kettle' - name: 'Kettle'
mac: '7C:49:EB:30:61:CE' mac: '7C:49:EB:30:61:CE'
- name: 'Thuja Plant' - name: 'Thuja Pot'
mac: 'C4:7C:8D:6C:5B:25' mac: 'C4:7C:8D:6C:5B:25'
- name: 'Thuja Plant 2' - name: 'Thuja Pot 2'
mac: 'C4:7C:8D:6C:9F:C6' mac: 'C4:7C:8D:6C:9F:C6'
- name: 'Thuja Plant 3' - name: 'Thuja Pot 3'
mac: 'C4:7C:8D:6C:9F:9B' mac: 'C4:7C:8D:6C:9F:9B'
- name: 'Bedroom Plant'
mac: 'C4:7C:8D:6C:59:D5'
- name: 'Living Room Plant' - name: 'Living Room Plant'
mac: 'C4:7C:8D:6C:59:D0' mac: 'C4:7C:8D:6C:59:D0'
- name: 'Living Room Plant 2'
mac: 'C4:7C:8D:6C:59:D5'
- name: 'Weight Scale' - name: 'Weight Scale'
mac: 'C8:47:8C:D9:6F:96' mac: 'C8:47:8C:D9:6F:96'

View File

@ -25,7 +25,7 @@
name: Couch Lights name: Couch Lights
- entityId: light.desk_lightbar - entityId: light.desk_lightbar
name: Desk Lightbar name: Desk Lightbar
- entityId: light.office - entityId: light.table_lamp
name: Table lamp name: Table lamp
- name: Copy rest of automations - name: Copy rest of automations
copy: copy:

View File

@ -17,8 +17,8 @@
name: Couch Lights name: Couch Lights
- entityId: light.desk_lightbar - entityId: light.desk_lightbar
name: Desk Lightbar name: Desk Lightbar
- entityId: light.office - entityId: light.table_lamp
name: Office lamp name: Table lamp
- name: Concat scripts - name: Concat scripts
ansible.builtin.assemble: ansible.builtin.assemble:
src: scripts src: scripts

View File

@ -13,7 +13,7 @@ good_night:
- light.desk_lightbar_ambilight - light.desk_lightbar_ambilight
- light.couch_lights - light.couch_lights
- light.tv_lights - light.tv_lights
- light.office - light.table_lamp
- light.kitchen_lights - light.kitchen_lights
- light.kitchen_sink_lighstrip - light.kitchen_sink_lighstrip
- light.bathroom_lights - light.bathroom_lights
@ -22,7 +22,7 @@ good_night:
- light.bathroom_minor_lights - light.bathroom_minor_lights
- light.bedroom_lights - light.bedroom_lights
- light.bed_lightstrip - light.bed_lightstrip
- light.bed_lamps - light.bed_lamp
- light.hallway_light - light.hallway_light
- light.hallway_lightstrip - light.hallway_lightstrip
- light.computer_computer_cave_background - light.computer_computer_cave_background
@ -31,7 +31,6 @@ good_night:
entity_id: entity_id:
- switch.desk_motor_on_off - switch.desk_motor_on_off
- switch.printer_switch - switch.printer_switch
- switch.xmas_lights_on_off
- service: cover.close_cover - service: cover.close_cover
entity_id: entity_id:
- cover.bedroom_blinds - cover.bedroom_blinds
@ -92,7 +91,7 @@ leave_home:
- light.desk_lightbar_ambilight - light.desk_lightbar_ambilight
- light.couch_lights - light.couch_lights
- light.tv_lights - light.tv_lights
- light.office - light.table_lamp
- light.kitchen_lights - light.kitchen_lights
- light.kitchen_sink_lighstrip - light.kitchen_sink_lighstrip
- light.bathroom_lights - light.bathroom_lights
@ -101,7 +100,7 @@ leave_home:
- light.bathroom_minor_lights - light.bathroom_minor_lights
- light.bedroom_lights - light.bedroom_lights
- light.bed_lightstrip - light.bed_lightstrip
- light.bed_lamps - light.bed_lamp
- light.hallway_light - light.hallway_light
- light.hallway_lightstrip - light.hallway_lightstrip
- light.computer_computer_cave_background - light.computer_computer_cave_background

View File

@ -54,27 +54,27 @@ bedroom_all_lights_off:
- service: light.turn_off - service: light.turn_off
entity_id: light.bed_lightstrip entity_id: light.bed_lightstrip
- service: light.turn_off - service: light.turn_off
entity_id: light.bed_lamps entity_id: light.bed_lamp
bedroom_bed_lamp_toggle: bedroom_bed_lamp_toggle:
alias: '[Bedroom] Bed lamps toggle' alias: '[Bedroom] Bed lamp toggle'
sequence: sequence:
- choose: - choose:
- conditions: - conditions:
- condition: state - condition: state
entity_id: light.bed_lamps entity_id: light.bed_lamp
state: 'on' state: 'on'
sequence: sequence:
- service: script.bedroom_bed_lamp_off - service: script.bedroom_bed_lamp_off
- conditions: - conditions:
- condition: state - condition: state
entity_id: light.bed_lamps entity_id: light.bed_lamp
state: 'off' state: 'off'
sequence: sequence:
- service: script.bedroom_bed_lamp_on - service: script.bedroom_bed_lamp_on
bedroom_bed_lamp_on: bedroom_bed_lamp_on:
alias: '[Bedroom] Bed lamps on' alias: '[Bedroom] Bed lamp on'
sequence: sequence:
- choose: - choose:
- conditions: - conditions:
@ -83,19 +83,20 @@ bedroom_bed_lamp_on:
state: Night state: Night
sequence: sequence:
- service: light.turn_on - service: light.turn_on
entity_id: light.bed_lamps entity_id: light.bed_lamp
data: data:
brightness_pct: 10 brightness_pct: 10
kelvin: 2000 kelvin: 2000
default: default:
- service: light.turn_on - service: light.turn_on
entity_id: light.bed_lamps entity_id: light.bed_lamp
data: data:
brightness_pct: 30 brightness_pct: 30
kelvin: 3200 kelvin: 3200
bedroom_bed_lamp_off: bedroom_bed_lamp_off:
alias: '[Bedroom] Bed lamps off' alias: '[Bedroom] Bed lamp off'
sequence: sequence:
- service: light.turn_off - condition: state
entity_id: light.bed_lamps entity_id: light.bed_lamp
state: 'off'