Since it is getting nice out, I have been turning the Nest off and opening the windows. I have began to notice that when our home status changes, the Nest turns back on. Is there a way to not have the Nest turn back on when I have turned it off manually? Quite annoying to find a/c running with the windows open. That part that turns it on is setting the mode to Eco on the away automation.
Automation for coming home:
- alias: Nest to Home
trigger:
platform: state
entity_id: group.family_devices
from: 'not_home'
to: 'home'
action:
- service: climate.set_preset_mode
data:
preset_mode: none
target:
entity_id: climate.downstairs
I do it with an Input Boolean - called summer mode, when it’s on the automation takes a different route. I wrote this a few years ago so it may be overcomplicated
alias: All (at least 1) in - heat mode + alarm disarm
description: ""
trigger:
- platform: state
entity_id: group.home_presence
to: home
condition: []
action:
- choose:
- conditions:
- condition: and
conditions:
- condition: state
entity_id: input_boolean.summer_heating_mode
state: "on"
- condition: not
conditions:
- condition: state
entity_id: climate.living_room
attribute: preset_mode
state: eco
sequence:
- service: climate.set_preset_mode
data:
preset_mode: eco
target:
entity_id: climate.living_room
- conditions:
- condition: and
conditions:
- condition: state
entity_id: input_boolean.summer_heating_mode
state: "off"
- condition: state
entity_id: climate.living_room
attribute: preset_mode
state: eco
sequence:
- service: climate.set_preset_mode
data:
preset_mode: none
target:
entity_id: climate.living_room
default: []
- service: alarm_control_panel.alarm_disarm
data:
code: "xxxx"
target:
entity_id: alarm_control_panel.alarmo
mode: single
and the automation for when we all leave …
alias: All out - ECO mode + arm alarm
description: ""
trigger:
- platform: state
entity_id: group.home_presence
to: not_home
condition: []
action:
- choose:
- conditions:
- condition: not
conditions:
- condition: state
entity_id: climate.living_room
attribute: preset_mode
state: eco
sequence:
- service: climate.set_preset_mode
data:
preset_mode: eco
target:
entity_id: climate.living_room
default: []
- service: alarm_control_panel.alarm_arm_away
data:
code: "xxxx"
target:
entity_id: alarm_control_panel.alarmo
mode: single
Thanks for this! It has been a while since I have had to make any modifications to my setup.
So, if I am understanding correctly with the Input Boolean:
Input Boolean is off when Nest is off.
Input Boolean is on when Nest is in Heating/Cool/Eco.
Then base what happens depending on those statuses with a condition in the automation - If Input Boolean is off, do nothing. If on, proceed like normal.
Edit: I wonder if I could just base this on the state of the climate entity to do the same thing. Going to test this out:
Got it! I got it work without an input boolean by using the state. This seems to work. The thermostat will need to be in a certain mode before taking action. The Nest to Home automation stayed the same. Appreciate the help and ideas!
- alias: Nest to Away
trigger:
platform: state
entity_id: group.family_devices
from: 'home'
to: 'not_home'
condition:
- or:
- condition: state
entity_id: climate.downstairs
state: cool
- condition: state
entity_id: climate.downstairs
state: heat
action:
- service: climate.set_preset_mode
data:
preset_mode: eco
target:
entity_id: climate.downstairs