Open jasonanovak opened 1 month ago
Yep, you might be right! I have a proximity sensor debounce algorithm which tries to prevent short retriggers for example caused by the gaps between fingers and I think you found a bug. I'll check it soon!
Hi,
I've checked my code and on 120p and what I mentioned is not relevant on 120p. What you see on the sensor tab it is just a visual glitch what I fixed. But back to the original problem I could not reproduce it on my devices (I have 3x 120p)
So could you turn on debug log or can you somehow reproduce?
Although the 120P's proximity sensor sees quite far, could it be that you're triggering it again?
i have same issue nspanel-pro-tools-2.2.4-release.apk
NSPanel Pro 120
APP: 3.5.5, OS 3.5.0 last update
I don’t understand how to unload debug from the program
https://github.com/user-attachments/assets/c637933c-be15-42c4-9b65-5b4fdbfe11a1
Hi,
This video shows exactly how tha app should work. When you approach it will triggers when you move away the trigger dissapears.
The light-above also triggers correctly because the thresold is 2001 and you actual value around 22000.
I cannot adjust the approach distance when the field is not active, even when the master switch is turned off. Well, I don’t see the current distance. everything is ok with the light sensor
I cannot adjust the approach distance when the field is not active, even when the master switch is turned off. Well, I don’t see the current distance. everything is ok with the light sensor
In fw 3.4+ you cant change proximity distance anymore that is the reason why the app prohibits this.
https://github.com/seaky/nspanel_pro_tools_apk/issues/144#issuecomment-2395029810
Hi all Why we can't change the proximity triger value on 120 with 3.5.0 firmware ? For the proximity sensor I saw 0 or 1
@seaky sorry for the delayed response.
I was just able to trigger this on the most recent version of the app. Below are the logs. The screen wake at 02:10:18.245 occurred while I was several feet away from the panel.
127|px30_evb:/data/user/0/com.seaky.nspanelpro.tools/logs # cat debug.log 20:03:13.894 [main] DEBUG c - Log level is DEBUG 20:03:21.154 [main] TRACE c - Log level is VERBOSE 20:03:24.128 [main] TRACE MainActivity - BackStack:0 20:03:29.018 [main] TRACE c - V1 sensor triggered 1726488209015 20:03:29.024 [main] TRACE u - Wake up device 20:03:29.029 [main] TRACE v - Event received 20:03:29.034 [main] TRACE l - get NSPanelTools:WakeupLock wakelock 20:03:29.041 [main] TRACE l - acquire NSPanelTools:WakeupLock wakelock 20:03:32.455 [main] TRACE c - V1 sensor triggered 1726488212454 20:03:32.461 [main] TRACE u - Wake up device 20:03:32.465 [main] TRACE v - Event received 20:03:32.469 [main] TRACE l - get NSPanelTools:WakeupLock wakelock 20:03:32.476 [main] TRACE l - acquire NSPanelTools:WakeupLock wakelock 20:03:33.141 [main] TRACE MainActivity - BackStack:0 20:03:33.181 [main] TRACE c - sensor registered (trigger threshold:0) 20:03:33.187 [main] TRACE a - light sensor registered (trigger below:1000,trigger above:2000) 20:03:33.189 [main] TRACE m - Proximity sensor live view started 20:03:33.691 [main] TRACE c - V1 sensor triggered 1726488213689 20:03:33.694 [main] TRACE c - V1 sensor triggered 1726488213693 20:03:33.711 [main] TRACE u - Wake up device 20:03:33.714 [main] TRACE v - Event received 20:03:33.718 [main] TRACE l - get NSPanelTools:WakeupLock wakelock 20:03:33.724 [main] TRACE l - acquire NSPanelTools:WakeupLock wakelock 20:03:34.801 [main] TRACE c - V1 sensor triggered 1726488214799 20:03:34.806 [main] TRACE c - V1 sensor triggered 1726488214804 20:03:34.822 [main] TRACE u - Wake up device 20:03:34.825 [main] TRACE v - Event received 20:03:34.829 [main] TRACE l - get NSPanelTools:WakeupLock wakelock 20:03:34.835 [main] TRACE l - acquire NSPanelTools:WakeupLock wakelock 20:03:35.772 [main] TRACE c - V1 sensor triggered 1726488215770 20:03:35.779 [main] TRACE c - V1 sensor triggered 1726488215777 20:03:35.800 [main] TRACE u - Wake up device 20:03:35.804 [main] TRACE v - Event received 20:03:35.807 [main] TRACE l - get NSPanelTools:WakeupLock wakelock 20:03:35.812 [main] TRACE l - acquire NSPanelTools:WakeupLock wakelock 20:03:36.923 [main] TRACE c - V1 sensor triggered 1726488216920 20:03:36.929 [main] TRACE c - V1 sensor triggered 1726488216927 20:03:36.947 [main] TRACE u - Wake up device 20:03:36.951 [main] TRACE v - Event received 20:03:36.954 [main] TRACE l - get NSPanelTools:WakeupLock wakelock 20:03:36.959 [main] TRACE l - acquire NSPanelTools:WakeupLock wakelock 01:48:19.311 [main] TRACE c - Log level is VERBOSE 01:48:19.316 [main] TRACE BootEventReceiver - Boot-up event received 01:48:19.319 [main] TRACE BootEventReceiver - Main switch is on 01:48:19.322 [main] TRACE BootEventReceiver - Start Service 01:48:19.332 [main] TRACE BootEventReceiver - Launch app 01:48:19.413 [main] TRACE AppService - Foreground service started 01:48:19.420 [main] TRACE f - register module v 01:48:19.423 [main] TRACE f - register module r 01:48:19.426 [main] TRACE f - register module k 01:48:19.430 [main] TRACE f - register module u 01:48:19.433 [main] TRACE f - register module s 01:48:19.437 [main] TRACE f - register module n 01:48:19.452 [main] TRACE f - register module e 01:48:19.467 [main] TRACE f - register module c 01:48:19.474 [main] TRACE f - register module q 01:48:19.525 [main] TRACE f - register module g 01:48:19.530 [main] TRACE f - register module t 01:48:19.535 [main] TRACE f - register module f 01:48:19.542 [main] TRACE f - register module d 01:48:19.546 [main] TRACE f - register module i 01:48:19.568 [main] TRACE f - register module j 01:48:19.573 [main] TRACE f - register module a 01:48:19.583 [main] TRACE f - register module m 01:48:19.590 [main] TRACE f - register module d 01:48:19.615 [main] TRACE t - register preference listener 01:48:19.621 [main] TRACE t - created 01:48:19.625 [main] TRACE r - created 01:48:19.647 [main] TRACE s - register preference listener 01:48:19.657 [main] TRACE s - created 01:48:19.662 [main] TRACE g - created 01:48:19.667 [main] TRACE u - register preference listener 01:48:19.675 [main] TRACE u - created 01:48:19.685 [main] TRACE d - created 01:48:19.688 [main] TRACE v - created 01:48:19.704 [main] TRACE e - register preference listener 01:48:19.721 [main] TRACE e - created 01:48:19.723 [main] TRACE m - register preference listener 01:48:19.729 [main] TRACE m - created 01:48:19.736 [main] TRACE q - register preference listener 01:48:19.739 [main] TRACE q - created 01:48:19.742 [main] TRACE c - register preference listener 01:48:19.750 [main] TRACE c - created 01:48:19.755 [main] TRACE d - register preference listener 01:48:19.780 [main] TRACE d - use deviceid as devicename 01:48:19.809 [main] TRACE d - created 01:48:19.823 [main] TRACE i - register preference listener 01:48:19.827 [main] TRACE i - created 01:48:19.836 [main] TRACE f - register preference listener 01:48:19.842 [main] TRACE f - created 01:48:19.847 [main] TRACE n - created 01:48:19.854 [main] TRACE k - created 01:48:19.857 [main] TRACE j - register preference listener 01:48:19.860 [main] TRACE j - created 01:48:19.866 [main] TRACE a - register preference listener 01:48:19.889 [main] TRACE a - created 01:48:19.931 [main] TRACE r - Smatek gesture receiver registered 01:48:19.953 [main] TRACE r - started 01:48:19.962 [main] TRACE u - started 01:48:19.976 [main] TRACE q - alarms are turned off 01:48:20.074 [main] TRACE q - started 01:48:20.076 [main] TRACE c - started 01:48:20.105 [main] TRACE n - Screen receiver registered 01:48:20.107 [main] TRACE n - started 01:48:20.109 [main] TRACE k - c start register 01:48:20.158 [main] TRACE c - sensor registered (trigger threshold:0) 01:48:20.160 [main] TRACE k - c started 01:48:20.162 [main] TRACE k - started 01:48:20.181 [main] TRACE a - AppWatchdog scheduled 01:48:20.189 [main] TRACE a - AppWatchdog started 01:48:20.192 [main] TRACE a - started 01:48:20.195 [main] TRACE AppService - started 01:48:20.197 [main] TRACE AppService - Event handlers registered 01:48:20.210 [main] TRACE AppService - Service created 01:48:20.226 [main] TRACE l - get NSPanelTools:DeepSleepLock wakelock 01:48:20.237 [main] TRACE l - acquire NSPanelTools:DeepSleepLock wakelock 01:48:20.241 [main] TRACE AppService - Service started 01:48:20.358 [main] TRACE c - Log level is VERBOSE 01:48:20.363 [main] TRACE LaunchApp - Init App 01:48:20.550 [main] TRACE LaunchApp - OnStart 01:48:20.557 [main] TRACE LaunchApp - OnResume 01:48:20.560 [main] TRACE LaunchApp - Wait for WIFI 01:48:20.563 [main] TRACE l - get NSPanelTools:LaunchAppLock wakelock 01:48:20.569 [main] TRACE l - acquire NSPanelTools:LaunchAppLock wakelock 01:48:20.577 [main] TRACE LaunchApp - Connectivity listener started 01:48:20.636 [main] TRACE LaunchApp$b - WIFI Connected 01:48:20.642 [main] TRACE l - release NSPanelTools:LaunchAppLock wakeLock 01:48:20.645 [main] TRACE LaunchApp - Connectivity listener stopped 01:48:20.648 [main] TRACE LaunchApp - Start main 01:48:20.673 [main] TRACE LaunchApp - Start App: io.homeassistant.companion.android.minimal 01:48:20.850 [main] TRACE LaunchApp - OnPause 01:48:21.436 [main] TRACE c - V1 sensor triggered 1726422501434 01:48:21.498 [main] TRACE u - Wake up device 01:48:21.501 [main] TRACE v - Event received 01:48:21.503 [main] TRACE l - get NSPanelTools:WakeupLock wakelock 01:48:21.510 [main] TRACE l - acquire NSPanelTools:WakeupLock wakelock 01:49:17.745 [main] TRACE n$c - SCREEN_ON received 01:49:17.749 [main] TRACE s - already stopped, nothing to do 01:49:17.753 [main] TRACE n - ScreenOn is triggered 01:49:17.877 [main] TRACE n$c - SCREEN_OFF received 01:49:17.880 [main] TRACE s - TouchGestureSensor start register 01:49:18.154 [Thread-2] TRACE e - event-reader started 01:49:18.154 [main] TRACE s - TouchGestureSensor started 01:49:18.156 [main] TRACE s - started 01:49:18.156 [Thread-2] TRACE e - device handle: 45 01:49:18.158 [main] TRACE n - ScreenOff is triggered 01:49:25.181 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:49:25.414 [main] TRACE a$a - Watchdog: app is running 01:49:25.417 [main] TRACE a - AppWatchdog scheduled 01:50:30.426 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:50:30.640 [main] TRACE a$a - Watchdog: app is running 01:50:30.643 [main] TRACE a - AppWatchdog scheduled 01:51:35.655 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:51:35.879 [main] TRACE a$a - Watchdog: app is running 01:51:35.883 [main] TRACE a - AppWatchdog scheduled px30_evb:/data/user/0/com.seaky.nspanelpro.tools/logs # tail -f debug.log
01:49:18.158 [main] TRACE n - ScreenOff is triggered 01:49:25.181 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:49:25.414 [main] TRACE a$a - Watchdog: app is running 01:49:25.417 [main] TRACE a - AppWatchdog scheduled 01:50:30.426 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:50:30.640 [main] TRACE a$a - Watchdog: app is running 01:50:30.643 [main] TRACE a - AppWatchdog scheduled 01:51:35.655 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:51:35.879 [main] TRACE a$a - Watchdog: app is running 01:51:35.883 [main] TRACE a - AppWatchdog scheduled 01:52:26.987 [main] TRACE c - V1 sensor triggered 1726422746985 01:52:26.992 [main] TRACE u - Wake up device 01:52:26.995 [main] TRACE v - Event received 01:52:26.999 [main] TRACE l - get NSPanelTools:WakeupLock wakelock 01:52:27.015 [main] TRACE l - acquire NSPanelTools:WakeupLock wakelock 01:52:27.146 [main] TRACE n$c - SCREEN_ON received 01:52:27.153 [main] TRACE s - TouchGestureSensor start unregister 01:52:27.182 [Thread-2] TRACE e - device closed 01:52:27.184 [Thread-2] TRACE e - event-reader stopped 01:52:27.190 [main] TRACE TouchGestureSensor - stopped 01:52:27.191 [main] TRACE s - TouchGestureSensor stopped 01:52:27.193 [main] TRACE s - stopped 01:52:27.195 [main] TRACE n - ScreenOn is triggered 01:52:40.887 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:52:41.090 [main] TRACE a$a - Watchdog: app is running 01:52:41.094 [main] TRACE a - AppWatchdog scheduled 01:53:27.993 [main] TRACE n$c - SCREEN_OFF received 01:53:27.999 [main] TRACE s - TouchGestureSensor start register 01:53:28.018 [main] TRACE s - TouchGestureSensor started 01:53:28.019 [Thread-3] TRACE e - event-reader started 01:53:28.020 [main] TRACE s - started 01:53:28.020 [Thread-3] TRACE e - device handle: 45 01:53:28.024 [main] TRACE n - ScreenOff is triggered 01:53:46.098 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:53:46.317 [main] TRACE a$a - Watchdog: app is running 01:53:46.320 [main] TRACE a - AppWatchdog scheduled 01:54:51.336 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:54:51.578 [main] TRACE a$a - Watchdog: app is running 01:54:51.583 [main] TRACE a - AppWatchdog scheduled 01:55:56.589 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:55:56.815 [main] TRACE a$a - Watchdog: app is running 01:55:56.819 [main] TRACE a - AppWatchdog scheduled 01:57:01.830 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:57:02.045 [main] TRACE a$a - Watchdog: app is running 01:57:02.050 [main] TRACE a - AppWatchdog scheduled 01:58:07.057 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:58:07.275 [main] TRACE a$a - Watchdog: app is running 01:58:07.279 [main] TRACE a - AppWatchdog scheduled 01:59:12.291 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 01:59:12.513 [main] TRACE a$a - Watchdog: app is running 01:59:12.516 [main] TRACE a - AppWatchdog scheduled 02:00:17.522 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 02:00:17.734 [main] TRACE a$a - Watchdog: app is running 02:00:17.739 [main] TRACE a - AppWatchdog scheduled 02:01:22.745 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 02:01:22.963 [main] TRACE a$a - Watchdog: app is running 02:01:22.967 [main] TRACE a - AppWatchdog scheduled 02:02:27.974 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 02:02:28.178 [main] TRACE a$a - Watchdog: app is running 02:02:28.182 [main] TRACE a - AppWatchdog scheduled 02:03:33.199 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 02:03:33.405 [main] TRACE a$a - Watchdog: app is running 02:03:33.408 [main] TRACE a - AppWatchdog scheduled 02:04:38.422 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 02:04:38.646 [main] TRACE a$a - Watchdog: app is running 02:04:38.651 [main] TRACE a - AppWatchdog scheduled 02:05:43.659 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 02:05:43.866 [main] TRACE a$a - Watchdog: app is running 02:05:43.870 [main] TRACE a - AppWatchdog scheduled 02:06:48.875 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 02:06:49.088 [main] TRACE a$a - Watchdog: app is running 02:06:49.092 [main] TRACE a - AppWatchdog scheduled 02:07:54.099 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 02:07:54.306 [main] TRACE a$a - Watchdog: app is running 02:07:54.310 [main] TRACE a - AppWatchdog scheduled 02:08:59.319 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 02:08:59.532 [main] TRACE a$a - Watchdog: app is running 02:08:59.536 [main] TRACE a - AppWatchdog scheduled 02:10:04.547 [main] TRACE a$a - Watchdog check app state: io.homeassistant.companion.android.minimal 02:10:04.753 [main] TRACE a$a - Watchdog: app is running 02:10:04.756 [main] TRACE a - AppWatchdog scheduled 02:10:18.245 [main] TRACE c - V1 sensor triggered 1726423818243 02:10:18.251 [main] TRACE u - Wake up device 02:10:18.256 [main] TRACE v - Event received 02:10:18.259 [main] TRACE l - get NSPanelTools:WakeupLock wakelock 02:10:18.270 [main] TRACE l - acquire NSPanelTools:WakeupLock wakelock 02:10:18.417 [main] TRACE n$c - SCREEN_ON received 02:10:18.420 [main] TRACE s - TouchGestureSensor start unregister 02:10:18.502 [Thread-3] TRACE e - device closed 02:10:18.503 [Thread-3] TRACE e - event-reader stopped 02:10:18.506 [main] TRACE TouchGestureSensor - stopped 02:10:18.508 [main] TRACE s - TouchGestureSensor stopped 02:10:18.512 [main] TRACE s - stopped 02:10:18.515 [main] TRACE n - ScreenOn is triggered
Hi!
I have an NSPanel Pro 120 running nspanel_pro_tools_apk 2.2.3. I have it configured to wake on wave and sleep the display after 1 minute on and launch into Home Assistant Companion.
The panel does light up when I wave my hand in front of it and then will turn off after 1 minute .... but then will turn back on suddenly. Then go off after a minute, then turn back on after a few minutes.
When I look at the sensor tab of nspanel_pro_tools_apk if I wave my hand quickly in front of the panel, I'll see the sensor reading go 0 -> 1 -> 0 but the "triggered" label stay on the "Proximity Sensor" cell when the value goes back to 0. If I wave my hand slowly in front of the panel, the sensor reading goes 0 -> 1 -> 0 with the "triggered" label on the "Proximity Sensor" cell only when the sensor reading is 1 and then removed when the reading goes back to 0.
I'm assuming that the "triggered" sensor state staying active when pass the sensor quickly is what's causing the panel to turn back on, sleep after a minute, and come back online.
Happy to provide additional debug logs if it would help resolve this.
Thanks!