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.

KPL Status doing weird things

Featured Replies

Posted

Ok, I have read the many other threads on KPL and programming to 'correct' KPL status LEDs.

 

My problem is that I believe I am following the correct programming, but I am getting strange results.

 

I have Button B set to control 2 SWL (switchlinc controlled) lights (Bar Pendants and Bar Cans). Switching on/off at the SWL Switch doesn't change the status of the KPL Button B LED.

 

My desired result:

If both Bar Pendants and Bar Cans are off/turned off, turn off button B on KPL. If one of the bar lights is ON, then Turn ON/Leave ON Button B on the KPL.

 

Code I am Using:

If
       Status  'KPL B' is not On
   And (
            Status  'Bar Pendants' is not Off
         Or Status  'Bar Cans' is not Off
       )

Then
       Set Scene 'KPL.Bar.Status' On

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

And

If
       Status  'KPL B' is not Off
   And (
            Status  'Bar Pendants' is Off
        And Status  'Bar Cans' is Off
       )

Then
       Set Scene 'KPL.Bar.Status' Off

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

My programs seem to work, but when the programs are enabled, and controlling the bar lights from the KPL, the KPL doesn't register the correct status anymore. For example:

Click Button B on KPL -> lights turn on correctly - light on KPL Button B turns on then off - then back on. Final result is strange - but correct (Lights on, Button B on)

NOW Click Button B to turn off Bar lights. Bar lights turn off, and the KPL 'B' LED turns off then turns back on. So now the status is Lights OFF, LED states they are on. CLick the 'lighted' B button, lights stay off, button LED finally turns off.

 

I have tried many ways of programming the same thing, but controlling from the KPL always ends up getting messed up. Simply disabling the program returns the KPL to working as it usually does (showing the correct status and without the 'blinking led' and wrong status).

 

What am I doing wrong? Or more specifically, why does the led blink - then go to the wrong status?

 

TIA

 

Addict

I believe that adding a Wait 1 second before the Action will prevent the programs from 'fighting' each other. Might need a Wait 2 seconds.

 

Rand

  • Author

Rand - That worked perfectly! I was pulling my hair out. Thank you. Now I can finally move on to my other 18 buttons :cry:

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.