Ecobee hold_temp setting

The documentation (https://www.home-assistant.io/components/ecobee/) for the Ecobee component 1 suggests that setting hold_temp to “True” should hold any changes, ignoring the schedule.

I have hold_temp set to true and my Ecobee set to hold changes indefinitely but my automations using set_hold_mode still only set the hold until next schedule change… am I missing something or is hold_temp not working as described?

Has anyone else gotten their holds to stick?

Posted May 12, 2019, 9:40 PM UTC

21
bjvanstOP•

I've looked in to this a little more. The hold_temp setting is recognized by Home Assistant but doesn't seem to actually get used anywhere. When grepping the home-assistant log, I see:

    2019-05-13 21:18:50 INFO (Thread-14) [homeassistant.components.ecobee.climate] Loading ecobee thermostat component with hold_temp set to True

Taking a look at homeassistant/components/ecobee/climate.py, set_hold_temp calls hold_preference which says:

    def hold_preference(self):
        """Return user preference setting for hold time."""
        # Values returned from thermostat are 'useEndTime4hour',
        # 'useEndTime2hour', 'nextTransition', 'indefinite', 'askMe'
        default = self.thermostat['settings']['holdAction']
        if default == 'nextTransition':
            return default
        # add further conditions if other hold durations should be
        # supported; note that this should not include 'indefinite'
        # as an indefinite away hold is interpreted as away_mode
        return 'nextTransition'

So the other conditions have not yet been implemented... I added two lines to log what set_hold_temp is doing and what hold_preference is obtaining from the thermostat and get:

    2019-05-13 21:21:37 INFO (Thread-21) [homeassistant.components.ecobee.climate] Ecobee returned indefinite as the desired holdAction
    2019-05-13 21:21:37 INFO (Thread-21) [homeassistant.components.ecobee.climate] Setting Ecobee Hold Mode: 0, away, nextTransition
1