Sorry for this brief answer, but I am a little overloaded currently.
Short answer: yes.
def set_temperature(self, **kwargs):
"""Set a target temperature (setpoint) for a zone."""
temperature = kwargs.get(ATTR_TEMPERATURE)
if temperature is None:
"set_temperature(%s): Temperature must not be None (cancelling call).",
self._id + " [" + self._name + "]"
until = kwargs.get(ATTR_UNTIL)
if until is None:
# until either the next scheduled setpoint, or just 1 hour from now
until = self._next_switchpoint_time
until = datetime.now() + timedelta(hours=1)
If you call
set_temperature via the web UI, you only pass
temperature as a parameter. The
until is either an hour, or the next scheduled setpoint, depending whether you have
use_schedules: true in
If you call
set_temperature as a service call, you have the option of passing
until as a parameter.
When you get it working, could you post back the service call? For example, an automation would be something like:
- alias: Set temp each morning
- service: climate.set_temperature
Sorry, but this part of the component is not extensively tested, and it may be that HA simply wont let you pass that parameter (although my code would accept it), in which case you will need two automations - one to set the temp to what you want, and a second to set it back after a period of time.