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

Help needed on climate preset modes in automations

$
0
0

@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" and preset_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

Read full topic


Viewing all articles
Browse latest Browse all 95513

Trending Articles



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