1) Give a description of the problem
My bathroom light is supposed to fade up color temperature and level, but only color temperature fade is executing.
2) What is the expected behaviour?
If the bathroom light has been off at least one minute (bathroom was vacant) and bathroom motion detects motion, the baseline humidity variable sets as the baseline bathroom humidity. If humidity rises above 10% of baseline (someone takes a shower), the light will fade up color temperature and level in 3 minutes.
Notes:
-
The â@Shower_Brighten_Last_Runâ global variable functions to make sure that only the first shower of the day triggers the light adjustment.
-
The â@Bathroom_Shower_Brightenedâ variable is a global variable that another piston uses to determine how long lights should stay on with no motion. Donât want to be in a long shower and have lights turn off.
-
Motion-dependent lights on/off is handled by another piston and uses the above global variables. I can post an image of that piston if folks think it might be causing problems.
3) What is happening/not happening?
Everything works as expected, but only the color temperature fades up. Level remains the same. At one time, I had each action listed together, and neither executed. When I broke them out seperately as in this script, the color temp works but not the level.
**4) Post a Green Snapshot of the piston
5) Attach logs after turning logging level to Full
7/10/2020, 9:03:03 AM +784ms
+2ms âReceived event [Bathroom T/H].humidity = 85 with a delay of 181ms
+154ms âRunTime Analysis CS > 21ms > PS > 79ms > PE > 54ms > CE
+156ms âRuntime (44341 bytes) successfully initialized in 79ms (v0.3.10f.20190822) (154ms)
+157ms ââExecution stage started
+166ms ââComparison (enum) on is (string) on = true (1ms)
+167ms ââCondition #87 evaluated true (7ms)
+168ms ââCondition group #null evaluated true (state did not change) (8ms)
+176ms ââCondition #83 evaluated false (6ms)
+177ms ââCondition group #82 evaluated false (state did not change) (7ms)
+183ms ââComparison (dynamic) is_different_than (integer) 10 = true (2ms)
+184ms ââCondition #165 evaluated true (5ms)
+185ms ââCancelling condition #1âs schedulesâŚ
+186ms ââCondition group #1 evaluated true (state changed) (7ms)
+191ms ââCalculating (decimal) 73.0 * (decimal) 1.1 >> (decimal) 80.30000000000001
+194ms ââComparison (integer) 85 rises_above (decimal) 80.30000000000001 = true (1ms)
+195ms ââCancelling condition #32âs schedulesâŚ
+196ms ââCondition #32 evaluated true (9ms)
+203ms ââComparison (integer) 30 is_less_than (integer) 100 = true (1ms)
+205ms ââCondition #4 evaluated true (8ms)
+211ms ââComparison (enum) on is (string) on = true (1ms)
+213ms ââCondition #3 evaluated true (7ms)
+218ms ââComparison (integer) 2700 is_less_than (integer) 3300 = true (1ms)
+220ms ââCondition #5 evaluated true (6ms)
+224ms ââComparison (string) :675146c749c8e4db65e77ab157337138: is_not_any_of (string) :caad9e6b791381bd3e120b2cf3958464:,:2f3b451d2866c5b1b88d8ec02497e63f: = true (2ms)
+225ms ââCondition #155 evaluated true (5ms)
+226ms ââCondition group #1 evaluated true (state did not change) (39ms)
+228ms ââCancelling statement #6âs schedulesâŚ
+250ms ââExecuted physical command [Bathroom Light 1].setColorTemperature([2700]) (13ms)
+286ms ââExecuted virtual command [Bathroom Light 1].fadeColorTemperature (50ms)
+288ms ââRequesting a wake up for Fri, Jul 10 2020 @ 9:06:04 AM EDT (in 180.1s)
+299ms ââExecution stage complete. (142ms)
+308ms âSetting up scheduled job for Fri, Jul 10 2020 @ 9:03:09 AM EDT (in 4.961s), with 37 more jobs pending
+315ms âEvent processed successfully (315ms)