Automatically Turn off Nest Thermostat at 3 am

Is it possible to set an automation to turn off the thermostat at a certain time?

if the thermostat can be turned off with a command, then yes

trigger:
  platform: time
  at: '03:00:00'

I’m not sure if it could. Does anyone know?

Did you look at the service options?

Currently there is a single nest.set_mode service available to switch between “away” and “home” modes.

So currently there’s not way to setup automation?

1 Like
# Example script to set Nest to away.
set_nest_away:
  sequence:
    - service: nest.set_mode
      data:
        home_mode: away


automation:
#Runs Script at 3am
  - alias: Set Nest to Away
    trigger:
      - platform: time
        at: '3:00'
    action: 
      service: script.turn_on
      entity_id: script.set_nest_away

Of course there is, there is just no way to turn to “OFF”. See @Coolie1101 code below.