Smoke detector/lights


#1

1) Give a description of the problem
I want the lights to turn on when the smoke detector says that smoke or carbon monoxide is detected. So far, the tests I have run have not changed the lights to on

2) What is the expected behaviour?
Lights should turn on

3) What is happening/not happening?
The lights are unaffected

**4) Post a Green Snapshot of the piston![image|45x37]
(

)

5) Attach logs after turning logging level to Full
6/29/2019, 5:25:20 PM +209ms
+2ms ╔Received event [Home - Downstairs].smoke = clear with a delay of 113ms
+132ms ║RunTime Analysis CS > 27ms > PS > 9ms > PE > 96ms > CE
+135ms ║Runtime (40686 bytes) successfully initialized in 9ms (v0.3.10a.20190223) (131ms)
+136ms ║╔Execution stage started
+152ms ║║Comparison (enum) clear changes_to (string) detected = false (0ms)
+154ms ║║Cancelling condition #2’s schedules…
+155ms ║║Condition #2 evaluated false (13ms)
+156ms ║║Cancelling condition #1’s schedules…
+157ms ║║Condition group #1 evaluated false (state changed) (16ms)
+160ms ║╚Execution stage complete. (25ms)
+161ms ╚Event processed successfully (161ms)
6/29/2019, 5:25:15 PM +54ms
+2ms ╔Received event [Home - Downstairs].smoke = detected with a delay of 84ms
+55ms ║RunTime Analysis CS > 23ms > PS > 11ms > PE > 22ms > CE
+58ms ║Runtime (39266 bytes) successfully initialized in 11ms (v0.3.10a.20190223) (54ms)
+59ms ║╔Execution stage started
+75ms ║║Comparison (enum) detected changes_to (string) detected = true (0ms)
+77ms ║║Cancelling condition #2’s schedules…
+78ms ║║Condition #2 evaluated true (13ms)
+79ms ║║Cancelling condition #1’s schedules…
+80ms ║║Condition group #1 evaluated true (state changed) (16ms)
+83ms ║║Cancelling statement #3’s schedules…
+888ms ║║Executed physical command [Chandelier].on() (36ms)
+889ms ║║Executed [Chandelier].on (39ms)
+917ms ║║Executed physical command [Downstairs bathroom].on() (25ms)
+918ms ║║Executed [Downstairs bathroom].on (27ms)
+937ms ║║Executed physical command [Erika Office 1].on() (15ms)
+938ms ║║Executed [Erika Office 1].on (17ms)
+955ms ║║Executed physical command [Erika office 2].on() (14ms)
+956ms ║║Executed [Erika office 2].on (16ms)
+974ms ║║Executed physical command [Erika office 3].on() (14ms)
+975ms ║║Executed [Erika office 3].on (16ms)
+993ms ║║Executed physical command [erika office 4].on() (14ms)
+994ms ║║Executed [erika office 4].on (16ms)
+1021ms ║║Executed physical command [Erika’s office light].on() (22ms)
+1022ms ║║Executed [Erika’s office light].on (24ms)
+1047ms ║║Executed physical command [Erikas office closet].on() (22ms)
+1048ms ║║Executed [Erikas office closet].on (24ms)
+1073ms ║║Executed physical command [Family Room Dimmer].on() (21ms)
+1075ms ║║Executed [Family Room Dimmer].on (23ms)
+1100ms ║║Executed physical command [Garage].on() (22ms)
+1101ms ║║Executed [Garage].on (24ms)
+1126ms ║║Executed physical command [Great room chandelier].on() (20ms)
+1127ms ║║Executed [Great room chandelier].on (23ms)
+1154ms ║║Executed physical command [Great Room Dimmer].on() (23ms)
+1156ms ║║Executed [Great Room Dimmer].on (25ms)
+1181ms ║║Executed physical command [Guest Room Closet].on() (21ms)
+1182ms ║║Executed [Guest Room Closet].on (23ms)
+1208ms ║║Executed physical command [Guest room lights].on() (23ms)
+1209ms ║║Executed [Guest room lights].on (25ms)
+1233ms ║║Executed physical command [Kids bathroom mirror].on() (21ms)
+1234ms ║║Executed [Kids bathroom mirror].on (23ms)
+1258ms ║║Executed physical command [Kids bathroom overhead].on() (20ms)
+1260ms ║║Executed [Kids bathroom overhead].on (22ms)
+1273ms ║║Skipped execution of physical command [Kitchen 1].on([]) because it would make no change to the device. (10ms)
+1274ms ║║Executed [Kitchen 1].on (12ms)
+1283ms ║║Skipped execution of physical command [Kitchen 2].on([]) because it would make no change to the device. (5ms)
+1284ms ║║Executed [Kitchen 2].on (7ms)
+1292ms ║║Skipped execution of physical command [Kitchen island].on([]) because it would make no change to the device. (3ms)
+1293ms ║║Executed [Kitchen island].on (5ms)
+1311ms ║║Executed physical command [Lamp].on() (15ms)
+1312ms ║║Executed [Lamp].on (17ms)
+1338ms ║║Executed physical command [Laundry Room Light].on() (22ms)
+1339ms ║║Executed [Laundry Room Light].on (24ms)
+1366ms ║║Executed physical command [Master Bath Mirror Lights].on() (23ms)
+1367ms ║║Executed [Master Bath Mirror Lights].on (25ms)
+1401ms ║║Executed physical command [Master Bathroom Closet].on() (23ms)
+1402ms ║║Executed [Master Bathroom Closet].on (25ms)
+1409ms ║║Skipped execution of physical command [Master Bathroom Overhead].on([]) because it would make no change to the device. (3ms)
+1410ms ║║Executed [Master Bathroom Overhead].on (5ms)
+1436ms ║║Executed physical command [Master bedroom lights].on() (22ms)
+1437ms ║║Executed [Master bedroom lights].on (24ms)
+1444ms ║║Skipped execution of physical command [Nook].on([]) because it would make no change to the device. (3ms)
+1445ms ║║Executed [Nook].on (5ms)
+1451ms ║║Skipped execution of physical command [Office lights].on([]) because it would make no change to the device. (2ms)
+1453ms ║║Executed [Office lights].on (4ms)
+1456ms ║╚Execution stage complete. (1397ms)
+1736ms ╚Event processed successfully (1736ms)
6/29/2019, 5:24:56 PM +642ms
+1ms ╔Starting piston… (v0.3.10a.20190223)
+351ms ║╔Subscribing to devices…
+383ms ║║Subscribing to Home - Downstairs.smoke…
+398ms ║║Subscribing to Home - Upstairs.smoke…
+472ms ║╚Finished subscribing (132ms)
+541ms ╚Piston successfully started (541ms)
6/29/2019, 5:23:33 PM +237ms
+1ms ╔Received event [Home - Downstairs].smoke = clear with a delay of 73ms
+43ms ║RunTime Analysis CS > 18ms > PS > 9ms > PE > 17ms > CE
+45ms ║Runtime (40679 bytes) successfully initialized in 9ms (v0.3.10a.20190223) (43ms)
+47ms ║╔Execution stage started
+62ms ║║Comparison (enum) clear is (string) detected = false (2ms)
+65ms ║║Comparison (enum) clear is (string) detected = false (2ms)
+67ms ║║Cancelling condition #2’s schedules…
+68ms ║║Condition #2 evaluated false (15ms)
+70ms ║║Cancelling condition #1’s schedules…
+71ms ║║Condition group #1 evaluated false (state changed) (19ms)
+73ms ║╚Execution stage complete. (27ms)
+75ms ╚Event processed successfully (75ms)
6/29/2019, 5:23:28 PM +546ms
+1ms ╔Received event [Home - Downstairs].smoke = detected with a delay of 65ms
+41ms ║RunTime Analysis CS > 17ms > PS > 8ms > PE > 16ms > CE
+44ms ║Runtime (40684 bytes) successfully initialized in 8ms (v0.3.10a.20190223) (41ms)
+45ms ║╔Execution stage started
+60ms ║║Comparison (enum) detected is (string) detected = true (2ms)
+62ms ║║Cancelling condition #2’s schedules…
+63ms ║║Condition #2 evaluated true (12ms)
+65ms ║║Cancelling condition #1’s schedules…
+66ms ║║Condition group #1 evaluated true (state changed) (16ms)
+69ms ║║Cancelling statement #3’s schedules…
+105ms ║╚Execution stage complete. (60ms)
+106ms ╚Event processed successfully (106ms)
6/29/2019, 5:23:05 PM +348ms
+1ms ╔Received event [Home].test = 1561846985347 with a delay of 0ms
+67ms ║Runtime (40595 bytes) successfully initialized in 12ms (v0.3.10a.20190223) (65ms)
+69ms ║╔Execution stage started
+99ms ║╚Execution stage complete. (30ms)
+100ms ╚Event processed successfully (100ms)
6/29/2019, 5:22:26 PM +252ms
+1ms ╔Received event [Home - Downstairs].smoke = clear with a delay of 75ms
+44ms ║Runtime (40599 bytes) successfully initialized in 9ms (v0.3.10a.20190223) (42ms)
+46ms ║╔Execution stage started
+313ms ║╚Execution stage complete. (268ms)
+315ms ╚Event processed successfully (315ms)
6/29/2019, 5:22:21 PM +348ms
+1ms ╔Received event [Home - Downstairs].smoke = detected with a delay of 68ms
+41ms ║Runtime (40604 bytes) successfully initialized in 8ms (v0.3.10a.20190223) (39ms)
+42ms ║╔Execution stage started
+100ms ║╚Execution stage complete. (57ms)
+101ms ╚Event processed successfully (101ms)
6/29/2019, 5:22:01 PM +895ms
+1ms ╔Received event [Home].test = 1561846921894 with a delay of 1ms
+64ms ║Runtime (40595 bytes) successfully initialized in 10ms (v0.3.10a.20190223) (61ms)
+66ms ║╔Execution stage started
+96ms ║╚Execution stage complete. (30ms)
+98ms ╚Event processed successfully (98ms)


#2

How are you testing?


#3

The Nest Protect has a “test protect automations by simulating alarm events” button


#4

I believe that only applies to NST Manager and would not apply to webcore.


#5

The log portion above seems to indicate that a whole slough of lights were turned on, but later log entries where smoke=detected don’t show any…


#6

I am concerned with trying to turn on 27 lights at the same moment (one line of code). Your logs show that webCoRE did send all the proper commands, but I suspect that inevitably, out of 27 devices, not all of them will succeed. I usually do a couple, then a small wait, then a couple more etc.

Imagine if you had 27 people in your house, and expected them all to leave at the same moment! Talk about a traffic jam!!


#7

I’ve changed it to

,