Ecobee_Resume_Program errors

Has anyone been able to successfully use ecobee_resume_program? It shows up as an option on my services tab (and I’ve successfully used it there), and would be helpful in my automations. I tried setting up something like this:

- alias: Turn off away mode
  trigger:
    platform: state
    entity_id: group.residents
    to: 'home'
  condition:
    condition: and
    conditions:
      - condition: time
        after: '00:06:30'
      - condition: time
        before: '22:00:00'
  action:
    service: ecobee_resume_program
    entity_id: climate.main_floor
    resume_all: true

But I keep getting this error:

17-02-28 23:57:01 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [automation]: Service ecobee_resume_program does not match format <domain>.<name> for dictionary value @ data['action'][0]['service']. Got None
extra keys not allowed @ data['action'][0]['resume_all']. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 59). Please check the docs at https://home-assistant.io/components/automation/

It may just be the way you’re trying to call the action ecobee_resume_program
Try formatting it this way:
action[quote=“Kevin_Patrick, post:2, topic:12903, full:true”]
It may just be the way you’re trying to call the action ecobee_resume_program
Try formatting it this way:
action:

  • service: climate.ecobee_resume_program
    data:
    resume_all: ‘true’
    I’m new to this forum (and to HA in general) so my apologies for not knowing how to reply with formatted text. There should be indentation before ‘- service’ and ‘data’ and double indentation before ‘resume_all’

I actually ended up finding a better solution

    - service: climate.set_hold_mode
      data:
        entity_id: climate.main_floor
        hold_mode: None

Does the same thing!

2 Likes

If you have only one ecobee:

- service: climate.ecobee_resume_program

If you have more than one you can specify which entity:

  - service: climate.ecobee_resume_program
    data:
      entity_id: climate.thermostat

I have this scheduled to trigger at key times of the day to break out of any holds set on the thermostat manually.

This is an old thread but… this is still an issue and Ecobee somtimes bounces and resumes and then goes to a custome state again. Calling it again usually works, though sometimes it would take a few tries. Since the repeat function in 0.113 I was able to use an input boolean and a repeat function to keep calling the comand every second until it had settled for 30 seconds on the correct value. Here is my code for the script to set resume all programs. You could alter it to fix the same problem in climate.set_preset_mode

ecobee_resume:
  sequence:
    - repeat:
        sequence:
            - service: input_boolean.turn_on
              entity_id: input_boolean.ecobee_resume
            - service: ecobee.resume_program
              data:
                entity_id: climate.thermostat
                resume_all: 'true'
            - delay:
                seconds: 1
        until:
          - condition: template
            value_template: >
              {{ not is_state_attr('climate.thermostat', 'preset_mode', 'temp')
                and not is_state_attr('climate.thermostat', 'preset_mode', 'Away')
                and (now().timestamp()|int - as_timestamp(states.input_boolean.ecobee_resume.last_changed)|int) >= 30 }}
    - service: climate.set_hvac_mode
      data:
        entity_id: climate.thermostat
        hvac_mode: heat_cool
    - service: input_boolean.turn_off
      entity_id: input_boolean.ecobee_resume