Compare commits
2 Commits
4756d1669a
...
aa6fb42dd7
| Author | SHA1 | Date | |
|---|---|---|---|
| aa6fb42dd7 | |||
| af6abec832 |
@@ -76,3 +76,39 @@ desk_heatpump:
|
|||||||
#input_buttons:
|
#input_buttons:
|
||||||
# turn_on: input_button.clim_du_bureau_turn_on
|
# turn_on: input_button.clim_du_bureau_turn_on
|
||||||
# turn_off: input_button.clim_du_bureau_turn_off
|
# turn_off: input_button.clim_du_bureau_turn_off
|
||||||
|
|
||||||
|
bedroom_heatpump:
|
||||||
|
module: smartheatpump
|
||||||
|
class: SmartHeatpump
|
||||||
|
entity: climate.bedroom_heatpump
|
||||||
|
|
||||||
|
templates_library: smart_heating_templates_library
|
||||||
|
|
||||||
|
constants:
|
||||||
|
window_open: binary_sensor.bedroom_french_door
|
||||||
|
ext_temperature: sensor.ext_front_temperature
|
||||||
|
room_temperature: sensor.bedroom_temperature
|
||||||
|
room_occupancy: binary_sensor.bedroom_occupancy
|
||||||
|
target_temperature: sensor.target_temperature_heatpump
|
||||||
|
cant_open_window: false #binary_sensor.cant_open_window
|
||||||
|
sleeping_in_the_room: binary_sensor.is_bedroom_sleeping
|
||||||
|
quick_resume: binary_sensor.bedroom_heatpump_quick_resume
|
||||||
|
stay_on_while_sleeping: false
|
||||||
|
|
||||||
|
virtual_sensors:
|
||||||
|
sensors:
|
||||||
|
value_selector.bedroom_heatpump_fan_mode:
|
||||||
|
auto: binary_sensor.heatpump_winter_mode
|
||||||
|
quiet: True
|
||||||
|
|
||||||
|
target_temperature: sensor.target_temperature_heatpump
|
||||||
|
hvac_mode: "binary_sensor.heatpump_winter_mode ? 'heat' : 'cool'"
|
||||||
|
fan_mode: sensor.bedroom_heatpump_fan_mode
|
||||||
|
|
||||||
|
smart_conditions:
|
||||||
|
callback_delay: 10 # on the morning it can happen that we ask to start and stop the heat pump immediately afterwards which in result in the heat pump ignoring the second command
|
||||||
|
template_conditions: <clim_conditions>
|
||||||
|
|
||||||
|
quick_resume:
|
||||||
|
sensor: binary_sensor.bedroom_heatpump_quick_resume
|
||||||
|
reset_event: good_morning
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ occupancy_sensors:
|
|||||||
trigger_conditions: sensor.kitchen_last_motion <= 5
|
trigger_conditions: sensor.kitchen_last_motion <= 5
|
||||||
binary_sensor.restroom_occupancy:
|
binary_sensor.restroom_occupancy:
|
||||||
trigger_conditions: sensor.restroom_last_motion <= 3
|
trigger_conditions: sensor.restroom_last_motion <= 3
|
||||||
|
binary_sensor.bedroom_occupancy:
|
||||||
|
trigger_conditions: binary_sensor.is_bedroom_sleeping or binary_sensor.day_interval_night
|
||||||
|
blocking_conditions: not binary_sensor.someone_home
|
||||||
retain_condition.desk_occupancy:
|
retain_condition.desk_occupancy:
|
||||||
retain_time: 5 * 60
|
retain_time: 5 * 60
|
||||||
conditions:
|
conditions:
|
||||||
|
|||||||
@@ -9,5 +9,17 @@ virtual_sensors:
|
|||||||
conditions: media_player.apple_tv == 'paused' or media_player.apple_tv == 'idle' or media_player.apple_tv == 'standby'
|
conditions: media_player.apple_tv == 'paused' or media_player.apple_tv == 'idle' or media_player.apple_tv == 'standby'
|
||||||
|
|
||||||
binary_sensor.is_apple_tv_on: media_player.apple_tv != 'off'
|
binary_sensor.is_apple_tv_on: media_player.apple_tv != 'off'
|
||||||
binary_sensor.someone_home: person.maeva == 'home' or person.pierre == 'home'
|
binary_sensor.someone_home: person.maeva == 'home' or person.pierre == 'home'
|
||||||
|
|
||||||
|
# living room sensors
|
||||||
|
value_selector.living_room_ambiance_light:
|
||||||
|
values:
|
||||||
|
0:
|
||||||
|
- not binary_sensor.living_room_occupancy
|
||||||
|
- binary_sensor.is_apple_tv_on and not binary_sensor.is_apple_tv_idle
|
||||||
|
- light.living_room
|
||||||
|
- sensor.mezzanine_motion_light_level > 10
|
||||||
|
1: binary_sensor.is_everybody_sleeping
|
||||||
|
2: true
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,9 @@ light_mezzanine_01:
|
|||||||
|
|
||||||
smart_conditions:
|
smart_conditions:
|
||||||
trigger_conditions: sensor.mezzanine_last_motion < 3
|
trigger_conditions: sensor.mezzanine_last_motion < 3
|
||||||
blocking_conditions: sensor.mezzanine_motion_light_level > 10 and not self
|
blocking_conditions:
|
||||||
|
- sensor.mezzanine_motion_light_level > 10 and not self
|
||||||
|
- light.living_room
|
||||||
|
|
||||||
light_brightness_pct:
|
light_brightness_pct:
|
||||||
15: binary_sensor.is_everybody_sleeping
|
15: binary_sensor.is_everybody_sleeping
|
||||||
@@ -19,7 +21,9 @@ light_mezzanine_02:
|
|||||||
|
|
||||||
smart_conditions:
|
smart_conditions:
|
||||||
trigger_conditions: sensor.mezzanine_last_motion < 3
|
trigger_conditions: sensor.mezzanine_last_motion < 3
|
||||||
blocking_conditions: sensor.mezzanine_motion_light_level > 10 and not self
|
blocking_conditions:
|
||||||
|
- sensor.mezzanine_motion_light_level > 10 and not self
|
||||||
|
- light.living_room
|
||||||
|
|
||||||
light_brightness_pct:
|
light_brightness_pct:
|
||||||
5: binary_sensor.is_everybody_sleeping
|
5: binary_sensor.is_everybody_sleeping
|
||||||
@@ -31,16 +35,29 @@ light_bookshelves:
|
|||||||
class: SmartLight
|
class: SmartLight
|
||||||
entity: light.living_room_bookshelves
|
entity: light.living_room_bookshelves
|
||||||
|
|
||||||
smart_conditions:
|
smart_conditions: sensor.living_room_ambiance_light >= 1
|
||||||
trigger_conditions: binary_sensor.living_room_occupancy
|
|
||||||
blocking_conditions:
|
|
||||||
- sensor.mezzanine_motion_light_level > 10
|
|
||||||
- binary_sensor.is_apple_tv_on and not binary_sensor.is_apple_tv_idle
|
|
||||||
|
|
||||||
#light_brightness_pct:
|
light_brightness_pct:
|
||||||
# 5: binary_sensor.is_everybody_sleeping
|
25: sensor.living_room_ambiance_light == 1
|
||||||
# 25: binary_sensor.day_interval_night
|
100: True
|
||||||
# 100: True
|
|
||||||
|
light_tree:
|
||||||
|
module: smartlight
|
||||||
|
class: SmartLight
|
||||||
|
entity: light.living_room_tree
|
||||||
|
|
||||||
|
smart_conditions: sensor.living_room_ambiance_light >= 2
|
||||||
|
|
||||||
|
light_brightness_pct: 35
|
||||||
|
|
||||||
|
light_art_deco:
|
||||||
|
module: smartlight
|
||||||
|
class: SmartLight
|
||||||
|
entity: light.living_room_art_deco
|
||||||
|
|
||||||
|
smart_conditions: sensor.living_room_ambiance_light >= 2
|
||||||
|
|
||||||
|
light_brightness_pct: 35
|
||||||
|
|
||||||
light_living_room:
|
light_living_room:
|
||||||
module: smartlight
|
module: smartlight
|
||||||
|
|||||||
Reference in New Issue
Block a user