Dashboard controls for time scheduler - best approach?

Hi all!

I have a Virtual Thermostat app that runs heating/cooling on a time schedule. Currently users set start/end times in app preferences (like "08:30" to "15:00"), but I want to add dashboard controls for easier changes.

Goal: Dashboard tiles where users can modify start time, end time, and enable/disable the schedule without going into app settings.

What's the best approach for this? Any examples of apps that handle time scheduling with dashboard controls?

Thanks!

Dashboards are based around devices, not apps, so the tile templates represent the device capabilities. In that way, apps do not have much of a way to integrate with a dashboard, except by updating device attributes in the dashboard device, and by responding to device attributes changing from dashboard controls being used.

The only true inputs available with the dashboard templates are variable tiles. You can make a hub variable connector that will act as an input device on a dashboard for times. The app would subscribe to the variable connector, and when it changes you would need to use those changed values in the app to set your schedules.

So you would need variable tiles for each start and end time, that update the app when they are changed. For enable/disable, just use virtual switches. Have the app also subscribe to the switches for enable disable when the switches change.

1 Like