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.

a little motion sensor program help, please

Featured Replies

Posted

Hi, I would like opinions on this program, while it works most of the time it sometimes is problomatic. The problem is possible due to comminication issues I am having, but perhaps also the program.

 

The intent is to have the motion sensor control the Garage light unless the garage light has been turned on by other KPL controllers then they take precendence. I think the logic is correct as works most of the time, but may be an easier way and if any of you get time please give me your thoughts. It is broken up inot two prgrams , for on and off.

 

 

Motion on program:

 

If

Status '11.A0.A5-Sensor' is On

And Status 'Garage Back Lite' is Off

 

Then

Set 'Garage Back Lite' 70%

 

Else

- No Actions - (To add one, press 'Action')

 

 

Motion sensor off program:

 

If

Control '11.A0.A5-Sensor' is switched Off

And Status 'Garage KPL A' is Off

And Status 'Garage KPL B' is Off

And Status 'Garage KPL D' is Off

And Status 'KPL Kitchen A' is Off

And Status 'KPL Kitchen - B' is Off

And Status 'KPL Kitchen - D' is Off

 

Then

Set 'Garage Back Lite' Off

 

Else

- No Actions - (To add one, press 'Action')

Hi,

 

The problem is that you are using Status for your motion sensor. This means that your program off is going to cause the first program to run if the status of the motion sensor is still on. I suggest using Control for the Motion Sensor in the fist program in which case the program is evaluated if and only if motion is sensed "again".

 

With kind regards,

Michel

Create an account or sign in to comment

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.