@keiran.harris wrote:
Hey All,
been beating my head against a wall for a few days now getting this rather simple heating automation to fire.
what i want is simple:
1/ temp falls below 18 (measured on aeon labs multisensor 6)
2/ time is between 5am and 9am
3/ switch on heateractive ive confirmed working. The trigger never fires.
- alias: 'CLIMATE: smart winter heating' trigger: #logical OR (any item in list can invoke entry) # - platform: homeassistant #i THINK i need this to correctly set state at startup? # event: start # - platform: time #dont think i need this.... # at: '05:00:01' - platform: numeric_state #the main trigger entity_id: sensor.aeon_labs_zw100_multisensor_6_temperature # entity_id: climate.current_temperature below: 18 # for: '00:30:00' #BEAWRE! doesnt run 'action' for 30 mins.... it means this trigger wont eval to true unless it has been below 18 for 30 mins! condition: #logical AND at this level (default # - condition: or #logical OR at the indent sub-conditions # conditions: # - condition: time # after: '05:00:00' # before: '09:00:00' # - condition: time # after: '17:00:00' # before: '21:30:00' - condition: numeric_state entity_id: sensor.aeon_labs_zw100_multisensor_6_temperature below: 18 action: - service: notify.k_slack_push data: message: "LG air ->HEAT (<18->20) turn on (called)" - service: climate.turn_on entity_id: climate.air - delay: 00:00:20 - service: climate.set_hvac_mode data: entity_id: climate.air hvac_mode: heat - delay: 00:00:20 - service: climate.set_temperature data: entity_id: climate.air hvac_mode: heat temperature: 20 #new target temp or 'setpoint' (when LG hits this +1c, it switches off, no fan either). target_temp_high: 22 #highest temperature that the climate device will allow. Required if hvac_mode is heat_cool. target_temp_low: 18 #lowest temperature that the climate device will allow. Required if hvac_mode is heat_cool. - delay: 00:00:20 - service: climate.set_fan_mode data: entity_id: climate.air fan_mode: 'high' #values = high, medium, low
ive read all the forums i can find to try and solve this (remnants of things ive tried in the commented out bits), but still no joy. So, as you can see ive stripped it right back. Ive isolated the problem to be in the initial trigger, i.e. i can easily make the automation fire when i do a simple time of day trigger, i.e.:
- alias: 'CLIMATE: simple test (heat)' trigger: #logical OR (any item in list can invoke entry) - platform: time at: '18:54:00' action: .... (identical to above)
any ideas/focused education GREATLY appreciated
i think what has frustrated me is im not sure how i can debug the trigger state, other than just watching the temp fall below the value… but nothing fires. I saw some good posts about flipping this into template logic or input_boolean (that way i can see the state at least)… will dabble with that at the weekend unless people can steer me otherwise.
what am i doing wrong?
thanks!
Keiran.
Posts: 1
Participants: 1