Turn off light 10 seconds after routine executes


#1

1) Give a description of the problem
I’m trying to turn off a light 10 seconds after a routine executes

2) What is the expected behaviour?
The kitchen light turns off 10 seconds after Goodbye routine is run

3) What is happening/not happening?
Webcore sees the routines firing and then fails with an error code

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

5) Attach logs after turning logging level to Full
12/05/2020, 09:25:41 +581ms
+0ms ╔Received event [My home].routineExecuted = 74a61ba7-778e-4cb1-bfd7-31b7b19a6660 with a delay of 32ms
+84ms ║RunTime Analysis CS > 13ms > PS > 42ms > PE > 28ms > CE
+86ms ║Runtime (37401 bytes) successfully initialized in 42ms (v0.3.110.20191009) (85ms)
+87ms ║╔Execution stage started
+96ms ║║Comparison (string) :da1070ab0c5a2a143a5787e238fd5972: executes (string) :da1070ab0c5a2a143a5787e238fd5972: = true (2ms)
+98ms ║║Condition #2 evaluated true (6ms)
+99ms ║║Condition group #1 evaluated true (state did not change) (7ms)
+102ms ║║Cancelling statement #5’s schedules…
+174ms ║║An error occurred while executing the event: java.lang.NullPointerException: Cannot invoke method hasCommand() on null object
+176ms ║╚Execution stage complete. (89ms)
+177ms ╚Event processed successfully (177ms)Preformatted text


#2

There are notorious issues around 10 second waits with WebCoRE, test your piston with a 7 or 12 second wait instead.


#3

Thankyou very much for the response but this didn’t have any effect in this instance.

I found the issue though, I had changed the light fibaro dimmer module but hadn’t removed/re-added the device in webcore, so I believe the null object it was referring to was the old device id.


#4

I wouldn’t give yourself any credit for this by awarding yourself a “solution”, this is actually rather embarrassing if the device wasn’t included in WebCoRE in the first place. And an RGB Bulb wouldn’t be a Fibaro Dimmer so I’m doubly confused.


#5

I’m curious…

I’m sure when I’ve replaced a failed device it shows up in webcore as a longish number rather than the correct name. I also seem to remember the piston would not even run if triggered from another device if it had an orphaned device included?


#6

AIwas
do you get paid to be rude? or is it a hobby?