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.

Notification on Status Change

Featured Replies

Posted

I have looked through the code for notifications and I dont see an option for sending a notification when the status changes.

 

Is there one?

An ISY Program is necessary to accomplish that.

 

If Status xxxx is On

Or Status xxxx is Off

 

will trigger an ISY Program when the Status changes. The Program issues the Notify.

  • Author

Thanks that makes since. I should have tested that. I imaged it would send me notifications of the status every time a query was made.

The "If Status" requires a change in the status value to trigger the Program. The Then or Else clause will run depending on whether the If evaluates to True or False.

  • Author

How does the on schedule duration work? Does it check the status every few seconds?

Not sure of the function you are referring to. The ISY is event driven. It does not check status of anything every few seconds.

  • Author

In your program you can have a schedule. Your schedule can have a duration.

I was trying to set my living room lamp for

if its during the day:

Schedule From 8am

For 10 hours

And Motion Sensor is off (no movement I think)

then Set Light Of

Else Set Light On

 

I was curious as to how the schedule worked. Is it a schedule for when the program is enabled?

Thanks for the additional information. The Program is triggered once at 8 AM, once 10 hours later at 6 PM, and between 8 AM and 6 PM once for each change in motion sensor status (using If Status) or once for each Insteon command received that matches the command code using If Control. Always event driven either from a time event or a device event in this example. There are other events such as a change in value of a State variable for example that can trigger Programs.

 

When the Program is triggered either the Then clause or the Else clause will run depending on how the If evaluates at the time the Program is triggered. When the If is True the Then clause runs, when the If is False the Else clause runs.

  • Author

Ok that makes since thanks for the info now back to coding fun!!!

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.