@bedfellow wrote:
I need some help with some automation yaml code to set my thermostat to preset ‘away’ when entity_id ‘group.parents’ is ‘not_home’ and to ‘none’ when they are ‘home’.
So far I have this, but don’t know what to put at the end to set the preset. Do I set it to
preset_mode: "away"
andpreset_mode: "none"
?- id: '1575231618454' alias: Thermostat - We're Not Home description: '' trigger: - entity_id: group.parents platform: state to: away condition: [] action: - alias: '' data: {} service: climate.set_preset_mode entity_id: climate.thermostat
- id: '1575231618455' alias: Thermostat - We're Home description: '' trigger: - entity_id: group.parents platform: state to: not_away condition: [] action: - alias: '' data: {} service: climate.set_preset_mode entity_id: climate.thermostat
Posts: 3
Participants: 2