Newbie having problems with Under Cab lights


#1

I would like to start with I am not a computer expert and I have had to work pretty hard to get to even this basic level so thank you in advance for your understanding.

1) Give a description of the problem
I would like my LED under cabinet lights to turn on at 30% when the ambient light in the room is low. When there is motion detected I would like them to turn up to 100% and stay that way for 10 minutes. I have re done my piston like ten times with different styles of programming that i have found on here to do avail. I have also tried changing the TCP and that didn’t seem to help but maybe i did it wrong.

2) What is the expected behavior?
described above

3) What is happening/not happening?
the lights come on as expected. turn up to 100% with motion but almost right away go back to 30%, then a second later probably when it detects motion again goes up to 100% and repeats as longs as someone is in the room.

**4) Post a Green Snapshot of the piston

5) Attach any logs (From ST IDE and by turning logging level to Full)
Date Source Type Name Value User Displayed Text Changed
2019-03-05 7:15:50.088 AM CST
8 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-05 7:15:47.333 AM CST
8 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-05 7:15:47.328 AM CST
8 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-05 7:12:49.150 AM CST
8 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-05 7:12:46.018 AM CST
8 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-05 7:12:46.010 AM CST
8 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-05 7:09:36.946 AM CST
8 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-05 7:09:33.969 AM CST
8 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-05 7:09:33.962 AM CST
8 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-05 7:06:35.411 AM CST
8 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-05 7:06:32.296 AM CST
8 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-05 7:06:32.291 AM CST
8 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-05 6:21:06.089 AM CST
9 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-05 6:21:03.194 AM CST
9 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-05 6:21:03.189 AM CST
9 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-05 6:20:49.532 AM CST
9 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-05 6:20:49.524 AM CST
9 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-05 6:20:49.486 AM CST
9 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-05 6:20:40.246 AM CST
9 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-05 6:20:40.242 AM CST
9 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-05 6:20:34.837 AM CST
9 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-05 6:20:31.940 AM CST
9 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-05 6:20:31.931 AM CST
9 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-05 6:20:20.548 AM CST
9 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-05 6:20:17.639 AM CST
9 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-05 6:20:17.630 AM CST
9 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-05 6:20:10.955 AM CST
9 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-05 6:20:08.054 AM CST
9 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-05 6:20:08.050 AM CST
9 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-05 6:20:03.400 AM CST
9 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-05 6:20:00.493 AM CST
9 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-05 6:20:00.486 AM CST
9 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-05 6:19:53.554 AM CST
9 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-05 6:19:50.657 AM CST
9 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-05 6:19:50.652 AM CST
9 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 11:13:09.067 PM CST
16 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 11:13:05.926 PM CST
16 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 11:13:05.922 PM CST
16 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 11:10:18.277 PM CST
16 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 11:10:14.758 PM CST
16 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 11:10:14.751 PM CST
16 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 11:06:11.754 PM CST
16 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-04 11:06:11.709 PM CST
16 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 11:06:08.731 PM CST
16 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 11:06:08.726 PM CST
16 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 11:06:08.447 PM CST
16 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 11:06:08.438 PM CST
16 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 10:51:29.941 PM CST
17 hours ago COMMAND poll poll command was sent to kitchen under cab lites true
2019-03-04 10:48:45.937 PM CST
17 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-04 10:48:42.291 PM CST
17 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 10:48:42.285 PM CST
17 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 10:46:49.809 PM CST
17 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 10:46:46.658 PM CST
17 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 10:46:46.653 PM CST
17 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 10:40:44.940 PM CST
17 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 10:40:41.272 PM CST
17 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 10:40:41.265 PM CST
17 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 10:40:23.238 PM CST
17 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 10:40:19.556 PM CST
17 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 10:40:19.541 PM CST
17 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 10:14:19.924 PM CST
17 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 10:14:16.685 PM CST
17 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 10:14:16.680 PM CST
17 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 10:12:23.965 PM CST
17 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 10:12:20.831 PM CST
17 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 10:12:20.821 PM CST
17 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:33:19.859 PM CST
19 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 8:33:17.013 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:33:17.007 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:33:16.846 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:33:16.836 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:22:50.385 PM CST
19 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 8:22:47.005 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:22:46.997 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:20:58.097 PM CST
19 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 8:20:55.210 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:20:55.205 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:20:46.468 PM CST
19 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 8:20:43.573 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:20:43.565 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:20:24.116 PM CST
19 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 8:20:21.216 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:20:21.209 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:20:06.322 PM CST
19 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 8:20:03.318 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:20:03.314 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:17:42.012 PM CST
19 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 8:17:38.919 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:17:38.914 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:17:28.973 PM CST
19 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 8:17:25.879 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:17:25.870 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:14:48.556 PM CST
19 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-04 8:14:48.511 PM CST
19 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 8:14:42.957 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:14:42.954 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 8:14:42.900 PM CST
19 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 8:14:42.896 PM CST
19 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:58:42.413 PM CST
20 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-04 7:58:39.195 PM CST
20 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 7:58:39.188 PM CST
20 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 7:58:32.381 PM CST
20 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-04 7:58:29.108 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:58:29.100 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:58:20.384 PM CST
20 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-04 7:58:17.176 PM CST
20 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 7:58:17.169 PM CST
20 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 7:57:56.861 PM CST
20 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-04 7:57:53.574 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:57:53.570 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:57:27.035 PM CST
20 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-04 7:57:23.809 PM CST
20 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 7:57:23.805 PM CST
20 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 7:57:15.226 PM CST
20 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-04 7:57:11.959 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:57:11.954 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:56:52.937 PM CST
20 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-04 7:56:49.709 PM CST
20 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 7:56:49.700 PM CST
20 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 7:56:35.639 PM CST
20 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-04 7:56:32.371 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:56:32.363 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:55:25.178 PM CST
20 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-04 7:55:21.530 PM CST
20 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 7:55:21.526 PM CST
20 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 7:53:42.556 PM CST
20 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-04 7:53:39.580 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:53:39.575 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:46:55.043 PM CST
20 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-04 7:46:52.149 PM CST
20 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 7:46:52.140 PM CST
20 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 7:45:57.308 PM CST
20 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-04 7:45:57.263 PM CST
20 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 7:45:54.357 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:45:54.352 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:45:47.498 PM CST
20 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-04 7:45:44.640 PM CST
20 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 7:45:44.637 PM CST
20 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 7:45:44.600 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:45:44.596 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:44:59.727 PM CST
20 hours ago DEVICE level 97 kitchen under cab lites level is 97 true
2019-03-04 7:44:51.815 PM CST
20 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 7:44:51.810 PM CST
20 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 7:43:15.754 PM CST
20 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-04 7:43:15.708 PM CST
20 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 7:43:12.151 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:43:12.141 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:12:54.013 PM CST
20 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-04 7:12:38.946 PM CST
20 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 7:12:38.938 PM CST
20 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 7:12:38.264 PM CST
20 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 7:12:24.342 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:12:24.338 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:12:08.501 PM CST
20 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 7:12:08.098 PM CST
20 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 7:11:52.867 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:11:52.862 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:11:52.032 PM CST
20 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 7:11:51.719 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:11:51.715 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:11:31.704 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:11:31.699 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:11:08.642 PM CST
20 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 7:11:05.036 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:11:05.030 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:09:13.791 PM CST
20 hours ago DEVICE switch on kitchen under cab lites switch is on true
2019-03-04 7:09:00.389 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:09:00.382 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:05:28.226 PM CST
20 hours ago DEVICE switch off kitchen under cab lites switch is off true
2019-03-04 7:05:24.499 PM CST
20 hours ago COMMAND off off command was sent to kitchen under cab lites true
2019-03-04 7:05:24.492 PM CST
20 hours ago APP_COMMAND off kitchen under cabinet lights sent off command to kitchen under cab lites true
2019-03-04 7:05:02.457 PM CST
20 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 7:04:58.723 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:04:58.715 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:04:52.078 PM CST
20 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 7:04:48.299 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:04:48.295 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:04:40.609 PM CST
20 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 7:04:37.688 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:04:37.684 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:04:27.609 PM CST
20 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 7:04:24.693 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:04:24.688 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:04:16.077 PM CST
20 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 7:04:13.260 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:04:13.255 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:04:02.242 PM CST
20 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 7:03:59.591 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:03:59.585 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:03:58.660 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:03:58.656 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:03:51.345 PM CST
20 hours ago DEVICE level 30 kitchen under cab lites level is 30 true
2019-03-04 7:03:48.929 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:03:48.925 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:03:48.495 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:03:48.488 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:03:40.490 PM CST
20 hours ago DEVICE level 100 kitchen under cab lites level is 100 true
2019-03-04 7:03:37.585 PM CST
20 hours ago COMMAND setLevel setLevel command was sent to kitchen under cab lites true
2019-03-04 7:03:37.581 PM CST
20 hours ago APP_COMMAND setLevel kitchen under cabinet lights sent setLevel command to kitchen under cab lites true
2019-03-04 7:03:28.010 PM CST
20 hours ago DEVICE level 30 kitchen under cab lites level is 30 true


#2

You have zero triggers here, so all of your conditions become triggers. (lightning bolts in the left margin) What this means in laymans terms is the piston runs thru the code top to bottom whenever the motion changes at all, and whenever illumination changes.

Personally, I will NEVER use illumination as a trigger… It changes every few moments throughout the day.

Also, if Dimmer 1 is near Motion Sensor 3, then each time the light changes, then the illumination will also change… Potentially creating an endless loop.


I might structure it something like this:

IF Motion changes to active          <-- Trigger
Then
    IF illumination < 40lux          <-- Condition
    Then
        Set Dimmer to 100%
    END IF
END IF

IF Motion stays inactive for 10 min  <-- Trigger
Then
    IF illumination < 30lux          <-- Condition
    Then
        Set Dimmer to 30%
    Else
        Turn off Dimmer
    END IF
END IF

This method only checks the lux value when you first walk in the room, and 10 minutes after you leave.

The only scenario this does not cover is automatic lights when the house is empty.


#3

thanks for the input. Im having a hard time wrapping my head around conditions and triggers and how the piston runs through the code. Hope this gets easier with some practice. :slight_smile:


#4

The easiest way to remember the difference is:

  • Triggers are precise moments in time (only true for a moment)
  • Conditions are vague windows of time (true for an extended time)

I try to think logically when coding. IE: At what precise moment do I want something to happen? Then I make a trigger for that. Underneath that trigger, I may have many conditional IFs that branch off depending on other circumstances.


Full write up showcasing the differences can be found here.