Scheduler Widget

I need to know how work Scheduler Widget on Dashboard ?
Because I see is not connect to variables.
Where I can get all info about this ?

1 Like

I have a free account and and ESP32 and I can't make it work also.

We would like to help you but No clue as to what you need. The Scheduler widget is a software package not intended for Arduino. Since it is a Google device contact them. You have a free account and ESP32 what is that all about? Post your code that is not working along with information what you are using to program.

@RobiReshet did you already add a variable of type 'Schedule' to your thing? Did you take a look at this tutorial?

Okay, here's the thing. I have generated my Sketch using an ESP32 as Device. I already have my getData variable with type Cloudschedule as shown below with the other essential variables:

CloudSchedule getData;
bool lED_RED;
CloudTime local_time;

Here is my simple sketch:

Sketch generated by the Arduino IoT Cloud Thing "Humidit-Temp-Scheduled"

Arduino IoT Cloud Variables description

The following variables are automatically generated and updated when changes are made to the Thing

CloudSchedule getData;
bool lED_RED;
CloudTime local_time;

Variables which are marked as READ/WRITE in the Cloud Thing will also have functions
which are called when their values are changed from the Dashboard.
These functions are generated with the Thing and added at the end of this sketch.


#define R_LED 15
byte latch = 0;

#include "thingProperties.h"

void setup() {
  // Initialize serial and wait for port to open:
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found

  // Defined in thingProperties.h

  // Connect to Arduino IoT Cloud
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
  pinMode(R_LED, OUTPUT);

void loop() {
  // Your code here 
    // 2 secs has passed
    digitalWrite(R_LED, HIGH);
    lED_RED = true;
    latch = 1;
  } else {
    // not yet
    if(latch == 1)
      digitalWrite(R_LED, LOW);
      lED_RED = false;
      latch = 0;
    } else {
      // do nothing.
     local_time = ArduinoCloud.getLocalTime();

  Since LEDRED is READ_WRITE variable, onLEDREDChange() is
  executed every time a new value is received from IoT Cloud.
void onLEDREDChange()  {
  // Add your code here to act upon LEDRED change

and here is my dashboard:

my variables getData and localtime are already linked to their respective widgets:

(same with localtime - I have 2 picture link max as a new user)

My question is, when I watch YouTube Videos about the Cloud scheduler, they schedule the time by just clicking on the widget. There is no response when I click the widget whether I'm in View mode or Edit mode.

Is this a normal response or am I missing something?


The two links are here: (they won't allow it as I'm a new user)

Please double check that CloudSchedule getData is in READ/WRITE mode

Yes! it's working now!! Thanks a lot!! @eclipse1985

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.