Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lights On/Off Change Thermostat Setting (Day vs Night)

Featured Replies

Posted

Hopefully, the pseudo code below explains what I am trying to do. The light switch in the room affects the thermostat settings, but differently if it is day or night.

 

My code does work, but with three programs. I wonder if anybody has a better way of achieving this? Thanks much in advance

 

Program 1 - Control

 

If From 6 AM to 10 PM (same day)

Then

Enable Program Day

Disable Program Night

Else

Disable Program Day

Enable Program Night

 

Program 2 - Day

 

If Status Light is ON

Then

Set Thermostat 70 (Heat Setpoint)

Set Thermostat 75 (Cool Setpoint)

Else

Set Thermostat 65 (Heat Setpoint)

Set Thermostat 80 (Cool Setpoint)

 

Program 3 - Night

 

If Status Light is ON

Then

Set Thermostat 70 (Heat Setpoint)

Set Thermostat 75 (Cool Setpoint)

Else

Set Thermostat 60 (Heat Setpoint)

Set Thermostat 85 (Cool Setpoint)

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.