This commit is contained in:
2021-10-10 19:02:34 +03:00
parent 4245f8d2d9
commit 67a1fd9853
87 changed files with 1995 additions and 1226 deletions
@@ -272,7 +272,7 @@ automation:
entity_id: fan.philips_airpurifier
state: "off"
- condition: state
entity_id: input_boolean.georgi_home
entity_id: input_boolean.someone_home
state: "on"
action:
- service: fan.turn_on
@@ -299,7 +299,7 @@ automation:
condition: and
conditions:
- condition: state
entity_id: input_boolean.georgi_home
entity_id: input_boolean.someone_home
state: "on"
- condition: state
entity_id: fan.philips_airpurifier
@@ -11,7 +11,7 @@ automation:
- alias: "Hallway tablet · Set to home after 10 minutes"
trigger:
platform: state
entity_id: binary_sensor.georgi_home
entity_id: binary_sensor.someone_home
to: "on"
for:
minutes: 10
@@ -47,7 +47,7 @@ script:
- service: input_number.set_value
entity_id: input_number.brita_remaining_liters
data:
value: 150
value: 100
- service: input_datetime.set_datetime
entity_id: input_datetime.brita_next_change
data_template:
@@ -128,7 +128,7 @@ script:
entity_id: sensor.dark_sky_apparent_temperature
above: 23
- condition: state
entity_id: input_boolean.georgi_home
entity_id: input_boolean.someone_home
state: "on"
- condition: state
entity_id: binary_sensor.living_room_right_window
@@ -144,6 +144,7 @@ automation:
action:
- service: media_player.turn_on
entity_id: media_player.living_room_tv
- delay: "00:00:15"
- service: media_player.select_source
entity_id: media_player.living_room_tv
data:
@@ -7,7 +7,6 @@ input_number:
radiators_temperature:
name: Radiators target temperature
unit_of_measurement: "°C"
mode: box
min: 22
max: 27
step: 0.5
@@ -31,7 +30,7 @@ script:
entity_id: input_boolean.heating_enabled
state: "on"
- condition: state
entity_id: binary_sensor.georgi_home
entity_id: binary_sensor.someone_home
state: "on"
- service: climate.turn_on
data_template:
@@ -66,7 +65,7 @@ script:
entity_id: input_boolean.heating_enabled
state: "on"
- condition: state
entity_id: binary_sensor.georgi_home
entity_id: binary_sensor.someone_home
state: "on"
- service: script.maybe_turn_radiator_on
data:
@@ -38,6 +38,22 @@ script:
entity_id: scene.bedroom_ambient_pink
scene:
- name: Bedroom Neon
icon: "mdi:weather-night"
entities:
light.master_bedroom_main:
state: 'on'
xy_color: [0.66, 0.28]
brightness: 254
light.bedside:
state: "on"
rgb_color: [0, 255, 190]
brightness: 230
light.bed_led:
state: "on"
xy_color: [0.66, 0.28]
brightness: 254
- name: Bedroom Ambient Neon
icon: "mdi:weather-night"
entities:
@@ -50,6 +66,22 @@ scene:
xy_color: [0.66, 0.28]
brightness: 254
- name: Bedroom Pink
icon: "mdi:weather-night"
entities:
light.master_bedroom_main:
state: "on"
rgb_color: [255, 36, 145]
brightness: 114
light.bedside:
state: "on"
rgb_color: [255, 36, 145]
brightness: 230
light.bed_led:
state: "on"
xy_color: [0.66, 0.28]
brightness: 254
- name: Bedroom Ambient Pink
icon: "mdi:weather-night"
entities:
@@ -6,7 +6,7 @@ automation:
to: "on"
condition:
condition: state
entity_id: binary_sensor.georgi_home
entity_id: binary_sensor.someone_home
state: "on"
action:
- choose:
@@ -6,7 +6,7 @@ automation:
to: "on"
condition:
condition: state
entity_id: binary_sensor.georgi_home
entity_id: binary_sensor.someone_home
state: "on"
action:
- choose:
@@ -6,7 +6,7 @@ automation:
offset: "-00:30:00"
condition:
- condition: state
entity_id: binary_sensor.georgi_home
entity_id: binary_sensor.someone_home
state: "on"
action:
- service: light.turn_on
@@ -255,7 +255,7 @@ homeassistant:
icon: mdi:ceiling-light
light.living_room_main:
icon: bha:ceiling-lamp-plafond
icon: bha:ceiling-spot-lamp
light.pc:
friendly_name: PC
@@ -273,23 +273,23 @@ homeassistant:
light.master_bedroom_main:
friendly_name: Bedroom main
icon: bha:ceiling-lamp-plafond
icon: bha:ceiling-spot-lamp
light.bedside:
icon: mdi:desk-lamp
# Kitchen
light.kitchen_main:
icon: bha:ceiling-lamp-plafond
icon: bha:ceiling-spot-lamp
light.kitchen_secondary:
icon: bha:ceiling-lamp-plafond
icon: bha:ceiling-spot-lamp
# Hallway
light.hallway:
icon: mdi:lightbulb-group
light.hallway_entrance:
icon: bha:ceiling-lamp-plafond
icon: bha:ceiling-spot-lamp
light.hallway_main:
icon: bha:ceiling-lamp-plafond
icon: bha:ceiling-spot-lamp
+24 -11
View File
@@ -26,40 +26,52 @@ homekit:
filter:
include_entities:
# Living Room
- light.living_room
- light.living_room_main
- light.living_room_ambient
- light.pc
- binary_sensor.living_room_right_window
- sensor.multisensor_6_temperature
- sensor.multisensor_6_relative_humidity
- camera.mercury_amcrest_1
- climate.living_room_radiator_mode
- climate.toshiba_ac
- switch.desk_outlet
- switch.titanium
- sensor.living_room_radiator_temperature
- cover.living_room
- media_player.living_room
- media_player.living_room_tv
- media_player.nvidia_shield
- scene.living_room_ambient_neon
- sensor.living_room_radiator_temperature
- sensor.multisensor_6_relative_humidity
- sensor.multisensor_6_temperature
- switch.desk_outlet
# Bedroom
- light.master_bedroom
- light.master_bedroom_main
- light.bedside
- light.bed_led
- sensor.bedroom_weather_temperature
- sensor.bedroom_weather_humidity
- fan.philips_airpurifier
- sensor.purifier_air_quality
- sensor.purifier_allergens
- binary_sensor.bedroom_door
- binary_sensor.bedroom_left_window
- binary_sensor.bedroom_right_window
- camera.bedroom_hd
- climate.bedroom_radiator_mode
- fan.philips_airpurifier
- media_player.master_bedroom
- sensor.bedroom_weather_humidity
- sensor.bedroom_weather_temperature
- sensor.purifier_air_quality
- sensor.purifier_allergens
# Kitchen
- light.kitchen
- light.kitchen_main
- light.kitchen_secondary
- climate.kitchen_radiator_mode
- binary_sensor.kitchen_motion_occupancy
- binary_sensor.kitchen_window
- sensor.kitchen_weather_temperature
- input_number.brita_remaining_liters
- script.brita_pour_water
- sensor.kitchen_weather_humidity
- sensor.kitchen_weather_temperature
- vacuum.vacuum
# Bathroom
@@ -67,6 +79,7 @@ homekit:
- sensor.bathroom_weather_humidity
# Hallway
- light.hallway
- light.hallway_entrance
- light.hallway_main
- group.hallway_motion
-7
View File
@@ -84,13 +84,6 @@ binary_sensor:
device_class: motion
value_template: "{{ is_state('sensor.multisensor_6_burglar', '8') }}"
group:
hallway_motion:
name: Hallway Motion
entities:
- binary_sensor.hallway_motion_occupancy
- binary_sensor.trisensor_motion
sensor:
- platform: history_stats
name: Quarantined percent
+1 -1
View File
@@ -56,7 +56,7 @@ script:
{% if (is_state('media_player.master_bedroom', 'playing')
and is_state('binary_sensor.sonos_recoverable', 'off'))
or is_state('input_boolean.speech_notifications', 'off')
or is_state('input_boolean.georgi_home', 'off') %}
or is_state('input_boolean.someone_home', 'off') %}
notify.telegram
{% else %}
{% if is_state('media_player.master_bedroom', 'playing')
+16
View File
@@ -1,3 +1,10 @@
group:
all_doors:
name: All doors
entities:
- binary_sensor.front_door
- binary_sensor.bedroom_door
sensor:
- platform: mqtt
name: "Bedroom door battery"
@@ -31,6 +38,15 @@ sensor:
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
- platform: template
sensors:
open_door_count:
friendly_name: Open door count
value_template: >-
{% set entityStates = states | selectattr('entity_id', 'in', state_attr('group.all_doors', 'entity_id')) %}
{{ entityStates | selectattr('state', 'eq', 'on') | list | count | int }}
binary_sensor:
- platform: mqtt
name: "Bedroom door"
+23
View File
@@ -1,3 +1,18 @@
group:
all_motion_sensors:
name: All motion_sensors
entities:
- binary_sensor.hallway_motion_occupancy
- binary_sensor.kitchen_motion_occupancy
- binary_sensor.multisensor_motion
- binary_sensor.trisensor_motion
hallway_motion:
name: Hallway Motion
entities:
- binary_sensor.hallway_motion_occupancy
- binary_sensor.trisensor_motion
binary_sensor:
- platform: mqtt
name: "Hallway motion occupancy"
@@ -60,3 +75,11 @@ sensor:
icon: "mdi:signal"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
- platform: template
sensors:
active_motion_sensors:
friendly_name: Active motion sensor count
value_template: >-
{% set entityStates = states | selectattr('entity_id', 'in', state_attr('group.all_motion_sensors', 'entity_id')) %}
{{ entityStates | selectattr('state', 'eq', 'on') | list | count | int }}