Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95528

Climate and automation

$
0
0

@jorgen_DK wrote:

In my vacation house, I try to automaticly put a heat pump in preset_mode “away” when the sun is down and to “none” preset_mode when sun is up and warming.
But I cannot get the automation to work correct.
It switches to “away” mode in afternoon but it does not go to “none” in the beginning of the day.
What am I doing wrong?

Home Assistant 0.102.0.dev20191110

climate:
  - platform: generic_thermostat
    name: Study
    heater: switch.compressor
    target_sensor: "sensor.room_temperature"
    min_temp: 8
    max_temp: 23
    ac_mode: False
    target_temp: 12
    cold_tolerance: 0.5
    hot_tolerance: 0
    min_cycle_duration:
      minutes: 30
    keep_alive:
      minutes: 5
    away_temp: 12
    
automation:
  - id: 'less_cold_hours'
    alias: none mode
    trigger:
    - event: sunrise
      offset: "03:00:00"
      platform: sun
    action:
    - data:
        entity_id: "climate.study"
        preset_mode: "none"
      service: climate.set_preset_mode

  - id: 'cold_hours'
    alias: Away mode
    trigger:
    - event: sunset
      offset: "-01:00:00"
      platform: sun
    action:
    - data:
        entity_id: "climate.study"
        preset_mode: "away"
      service: climate.set_preset_mode


States:
hvac_modes: heat,off
current_temperature: 15.5
min_temp: 8
max_temp: 23
temperature: 12
hvac_action: idle
preset_mode: away
preset_modes: none,away
friendly_name: Study
supported_features: 17

/Jorgen

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95528

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>