# PACKAGE: Bedroom 3 Climate Controls # # Purpose: Configurable automatic heat-pump schedule for Mollie's bedroom. # Notes: The schedule runs only on enabled weekday and/or weekend day types. # Version: 2.0.0 # #:########################################################################################:# input_boolean: bedroom_3_morning_climate_enabled: name: "Bedroom 3 Heat Pump Auto Control" icon: mdi:hvac bedroom_3_morning_climate_weekdays: name: "Bedroom 3 Heat Pump Weekdays" icon: mdi:calendar-week bedroom_3_morning_climate_weekends: name: "Bedroom 3 Heat Pump Weekends" icon: mdi:calendar-weekend input_datetime: bedroom_3_morning_climate_start_time: name: "Bedroom 3 Heat Pump On Time" icon: mdi:clock-start has_date: false has_time: true bedroom_3_morning_climate_stop_time: name: "Bedroom 3 Heat Pump Off Time" icon: mdi:clock-end has_date: false has_time: true #:########################################################################################:# # Automations #:########################################################################################:# automation: - id: bedroom_3_morning_climate_start alias: "Bedroom 3 Heat Pump Auto Start" description: "Starts the heat pump at the selected time on enabled day types." triggers: - trigger: time_pattern minutes: "/1" conditions: - condition: state entity_id: input_boolean.bedroom_3_morning_climate_enabled state: "on" - condition: template value_template: >- {{ now().strftime('%H:%M') == states('input_datetime.bedroom_3_morning_climate_start_time')[:5] }} - condition: template value_template: >- {{ (now().weekday() < 5 and is_state('input_boolean.bedroom_3_morning_climate_weekdays', 'on')) or (now().weekday() >= 5 and is_state('input_boolean.bedroom_3_morning_climate_weekends', 'on')) }} actions: - action: climate.turn_on target: entity_id: climate.mollie_s_room - id: bedroom_3_morning_climate_stop alias: "Bedroom 3 Heat Pump Auto Stop" description: "Stops the heat pump at the selected time on enabled day types." triggers: - trigger: time_pattern minutes: "/1" conditions: - condition: template value_template: >- {{ now().strftime('%H:%M') == states('input_datetime.bedroom_3_morning_climate_stop_time')[:5] }} - condition: template value_template: >- {{ (now().weekday() < 5 and is_state('input_boolean.bedroom_3_morning_climate_weekdays', 'on')) or (now().weekday() >= 5 and is_state('input_boolean.bedroom_3_morning_climate_weekends', 'on')) }} actions: - action: climate.turn_off target: entity_id: climate.mollie_s_room