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.

I'm new to this, please help

Featured Replies

Posted

I have a motion detector that i want it to turn on some lights when i walk into the room. But when I'm leaving the room it won't let me turn the lights off. The light turns off then right back on?

 

If

status 'main room' is off

and status 'Motion sensor-senor' is on

 

Then

Set 'main room' on

 

Else

 

- no action

There are whole threads addressing the programming for motion sensors. Check them out. Good reading.

 

Your program will turn the lights on any time the two conditions are true. When you manually turn the lights off, the conditions are again made true (so long as you are within the time-out window of the motion sensor), so the program will turn them back on.

 

Perhaps a better way would be to use control, rather than status, of the motion sensor as a condition, then use a wait action after turning the lights on. After the wait, send a command to turn them off. (This assumes that you want them to go off after some prescribed period.)

 

There may be a couple of additional considerations, so search on motion sensor and check out the other threads. I think there is also a wiki article on this subject.

As oberkc said, your program's IF condition is getting re-evaluated when you turn the lights off manually, switching the lights back on.

 

It's also worth mentioning that if you set the motion sensor into "on only" mode, your lights will turn on indefinitely as the motion sensor will never notify the ISY when it is no longer detecting motion.

 

I would use Control here as well. This will then respond only when the motion sensor first detects motion (and again when motion is detected in the future after the countdown is reached).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.