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.

Need help with I/O Linc activating a program

Featured Replies

Posted

Hello!

 

I am using an I/O Linc connected to an outdoor motion sensor to activate a program in the ISY. This is so I can turn a scene of lights on, as well as get an email when motion is detected.

 

I have it working, but the problem is I get a large amount of emails (literally every second) when motion is being detected

 

Can anyone help me "clean up my code"? I would like to get an email when motion is detected, and only if the timeout expires (lights turn off after 2 min), then send an email?

 

The lights are working perfectly with my code, I am just getting too many emails.

 

I have posted the picture of the code below. Thank you very much for any advice you can provide.

 

thedishking

post-967-14047416188_thumb.png

Hello!

 

I am using an I/O Linc connected to an outdoor motion sensor to activate a program in the ISY. This is so I can turn a scene of lights on, as well as get an email when motion is detected.

 

I have it working, but the problem is I get a large amount of emails (literally every second) when motion is being detected

 

Can anyone help me "clean up my code"? I would like to get an email when motion is detected, and only if the timeout expires (lights turn off after 2 min), then send an email?

 

The lights are working perfectly with my code, I am just getting too many emails.

 

I have posted the picture of the code below. Thank you very much for any advice you can provide.

 

thedishking

 

Define an integer variable: i.notificationDelay and set it's value to 0

 

Create a second program as follows:

 

Program:NotificationDelay

If i.notificationDelay=0

Then
  Send notification to 'email notification'  Content 'Garage Outside Motion'
  i.notificationDelay=1
  Run Program NotificationDelay (Else Path)

Else
  wait 2 minutes
  i.notificationDelay = 0

 

Modify your original program by changing the line with the notification From:

 Send notification to 'email notification'  Content 'Garage Outside Motion'

to:

Run Program NotificationDelay (If Path)

 

This will notify you then prevent additional notifications until there has been no motion activity for 2 minutes.

 

-Xathros

  • Author

Thank you VERY MUCH for the advice!

 

I will give it a try tonight.

 

thedishking

  • Author

THANK YOU Xathros!

 

I REALLY appreciate your help!!!!!

 

Your code worked perfect!!!

 

Happy Holidays!

 

thedishking

Anytime. Happy to help.

 

Happy holidays to you too!

 

-Xathros

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.