Compare commits
16 Commits
a21f418f74
...
479fa18e40
Author | SHA1 | Date | |
---|---|---|---|
479fa18e40 | |||
9857a90de1 | |||
12608cea51 | |||
b209a49c5f | |||
1f9cf20d9d | |||
719ee9e6ac | |||
7b8a9e70cf | |||
2d8e5f1aeb | |||
656cbe702a | |||
feab178361 | |||
d280b30ff3 | |||
36943311ac | |||
a999a7ec6d | |||
e7581717ff | |||
b32ea71e3e | |||
e5d145aed9 |
@ -14,30 +14,48 @@
|
|||||||
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
|
||||||
- delay:
|
- service: light.turn_on
|
||||||
minutes: 30
|
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:
|
||||||
|
seconds: 180
|
||||||
- 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: '10'
|
- delay:
|
||||||
|
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:
|
||||||
|
@ -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: '21'
|
below: '16'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.home_mode
|
entity_id: input_select.home_mode
|
||||||
state: Day
|
state: Day
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: light.table_lamp
|
entity_id: light.office
|
||||||
state: 'on'
|
state: 'on'
|
||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.table_lamp
|
entity_id: light.office
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: light.table_lamp
|
entity_id: light.office
|
||||||
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.table_lamp
|
entity_id: light.office
|
||||||
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.table_lamp
|
entity_id: light.office
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
kelvin: 3200
|
kelvin: 3200
|
||||||
|
32
configuration/automations/f1.yaml
Normal file
32
configuration/automations/f1.yaml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
- 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
|
||||||
|
|
@ -2,16 +2,24 @@
|
|||||||
alias: '[Hallway] Super sensor reset'
|
alias: '[Hallway] Super sensor reset'
|
||||||
mode: restart
|
mode: restart
|
||||||
trigger:
|
trigger:
|
||||||
- entity_id: binary_sensor.hallway_motion_sensor
|
- platform: state
|
||||||
|
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:
|
||||||
- data_template:
|
# - service: python_script.set_state
|
||||||
entity_id: binary_sensor.hallway_motion_sensor
|
# data_template:
|
||||||
state: 'off'
|
# entity_id: binary_sensor.hallway_motion_sensor
|
||||||
service: python_script.set_state
|
# state: 'off'
|
||||||
|
- 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'
|
||||||
|
76
configuration/automations/home-music.yaml
Normal file
76
configuration/automations/home-music.yaml
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
- 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
|
||||||
|
|
@ -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: '21'
|
below: '16'
|
||||||
sequence:
|
sequence:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
|
@ -13,14 +13,14 @@
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: light.table_lamp
|
entity_id: light.office
|
||||||
state: 'on'
|
state: 'on'
|
||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.table_lamp
|
entity_id: light.office
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: light.table_lamp
|
entity_id: light.office
|
||||||
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.table_lamp
|
entity_id: light.office
|
||||||
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.table_lamp
|
entity_id: light.office
|
||||||
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.table_lamp
|
entity_id: light.office
|
||||||
data:
|
data:
|
||||||
brightness_pct: 5
|
brightness_pct: 5
|
||||||
kelvin: 2700
|
kelvin: 2700
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
alias: '[Work] Daily Warning'
|
alias: '[Work] Daily Warning'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '8:30'
|
at: '9:30'
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
weekday:
|
weekday:
|
||||||
@ -15,6 +15,9 @@
|
|||||||
- 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
|
||||||
@ -56,7 +59,7 @@
|
|||||||
alias: '[Work] Daily notification'
|
alias: '[Work] Daily notification'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '8:55'
|
at: '9:59'
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
weekday:
|
weekday:
|
||||||
@ -89,7 +92,7 @@
|
|||||||
alias: '[Work] Daily notification off'
|
alias: '[Work] Daily notification off'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '9:10'
|
at: '10:10'
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
weekday:
|
weekday:
|
||||||
@ -106,8 +109,11 @@
|
|||||||
- id: work_finished
|
- id: work_finished
|
||||||
alias: '[Work] Notify when finished work'
|
alias: '[Work] Notify when finished work'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: state
|
||||||
at: '17:00'
|
entity_id: device_tracker.amdn4684
|
||||||
|
for:
|
||||||
|
hours: 8
|
||||||
|
to: home
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
weekday:
|
weekday:
|
||||||
|
@ -14,6 +14,7 @@ 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:
|
||||||
@ -182,6 +183,11 @@ 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
|
||||||
@ -306,6 +312,12 @@ 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
|
||||||
@ -319,28 +331,28 @@ ble_monitor:
|
|||||||
report_unknown: False
|
report_unknown: False
|
||||||
discovery: True
|
discovery: True
|
||||||
devices:
|
devices:
|
||||||
- name: 'Bedroom sensor'
|
- name: 'Bedroom sensor [BLE]'
|
||||||
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'
|
- name: 'Bathroom sensor [BLE]'
|
||||||
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 Pot'
|
- name: 'Thuja Plant'
|
||||||
mac: 'C4:7C:8D:6C:5B:25'
|
mac: 'C4:7C:8D:6C:5B:25'
|
||||||
- name: 'Thuja Pot 2'
|
- name: 'Thuja Plant 2'
|
||||||
mac: 'C4:7C:8D:6C:9F:C6'
|
mac: 'C4:7C:8D:6C:9F:C6'
|
||||||
- name: 'Thuja Pot 3'
|
- name: 'Thuja Plant 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'
|
||||||
|
|
||||||
|
@ -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.table_lamp
|
- entityId: light.office
|
||||||
name: Table lamp
|
name: Table lamp
|
||||||
- name: Copy rest of automations
|
- name: Copy rest of automations
|
||||||
copy:
|
copy:
|
||||||
|
@ -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.table_lamp
|
- entityId: light.office
|
||||||
name: Table lamp
|
name: Office lamp
|
||||||
- name: Concat scripts
|
- name: Concat scripts
|
||||||
ansible.builtin.assemble:
|
ansible.builtin.assemble:
|
||||||
src: scripts
|
src: scripts
|
||||||
|
@ -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.table_lamp
|
- light.office
|
||||||
- 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_lamp
|
- light.bed_lamps
|
||||||
- light.hallway_light
|
- light.hallway_light
|
||||||
- light.hallway_lightstrip
|
- light.hallway_lightstrip
|
||||||
- light.computer_computer_cave_background
|
- light.computer_computer_cave_background
|
||||||
@ -31,6 +31,7 @@ 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
|
||||||
@ -91,7 +92,7 @@ leave_home:
|
|||||||
- light.desk_lightbar_ambilight
|
- light.desk_lightbar_ambilight
|
||||||
- light.couch_lights
|
- light.couch_lights
|
||||||
- light.tv_lights
|
- light.tv_lights
|
||||||
- light.table_lamp
|
- light.office
|
||||||
- light.kitchen_lights
|
- light.kitchen_lights
|
||||||
- light.kitchen_sink_lighstrip
|
- light.kitchen_sink_lighstrip
|
||||||
- light.bathroom_lights
|
- light.bathroom_lights
|
||||||
@ -100,7 +101,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_lamp
|
- light.bed_lamps
|
||||||
- light.hallway_light
|
- light.hallway_light
|
||||||
- light.hallway_lightstrip
|
- light.hallway_lightstrip
|
||||||
- light.computer_computer_cave_background
|
- light.computer_computer_cave_background
|
||||||
|
@ -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_lamp
|
entity_id: light.bed_lamps
|
||||||
|
|
||||||
bedroom_bed_lamp_toggle:
|
bedroom_bed_lamp_toggle:
|
||||||
alias: '[Bedroom] Bed lamp toggle'
|
alias: '[Bedroom] Bed lamps toggle'
|
||||||
sequence:
|
sequence:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: light.bed_lamp
|
entity_id: light.bed_lamps
|
||||||
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_lamp
|
entity_id: light.bed_lamps
|
||||||
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 lamp on'
|
alias: '[Bedroom] Bed lamps on'
|
||||||
sequence:
|
sequence:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
@ -83,20 +83,19 @@ bedroom_bed_lamp_on:
|
|||||||
state: Night
|
state: Night
|
||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.bed_lamp
|
entity_id: light.bed_lamps
|
||||||
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_lamp
|
entity_id: light.bed_lamps
|
||||||
data:
|
data:
|
||||||
brightness_pct: 30
|
brightness_pct: 30
|
||||||
kelvin: 3200
|
kelvin: 3200
|
||||||
|
|
||||||
bedroom_bed_lamp_off:
|
bedroom_bed_lamp_off:
|
||||||
alias: '[Bedroom] Bed lamp off'
|
alias: '[Bedroom] Bed lamps off'
|
||||||
sequence:
|
sequence:
|
||||||
- condition: state
|
- service: light.turn_off
|
||||||
entity_id: light.bed_lamp
|
entity_id: light.bed_lamps
|
||||||
state: 'off'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user