im far from being a coder myself lol now with putting times in where pantheon said i hope it works ill have a go with yours tho thanks
^^^^^ Update of first one ^^^^^^
im far from being a coder myself lol now with putting times in where pantheon said i hope it works ill have a go with yours tho thanks
^^^^^ Update of first one ^^^^^^
@Gazza, no offense, but if you are not a coder, then that large piston may be a handful for you. You will find excellent help here. So if you are willing, we will all jump in with you to get what you desire. I’ll take a closer look at that piston when I get to my computer.
@Gazza
Before I dig into this, I want to be absolutely clear. My experience with presence sensors has been much less than comforting. My own tests demonstrated variability by several minutes with each test. Your results may vary. I DO NOT rely on presence sensors for time-critical events like this large piston. My first suggestion would be to test your presence sensors with a very simple piston (many available in this forum). Check your results before we get into this.
ok i would like to have a go at this piston if you could help me ) but if you think its to big and out of my league i fully understand
i run it last night and had a bit of a result this time around the presence sensors worked for some strange reason
When i did the first run i use my door sensor when entering and i thought that was the problem so i thought i might use my ring door bell motion part instead so i think that part is sorted (as long as the presence sensors are ok lol)
now throughout the day the lights didnt come on (which is fine) alexa still spoke which is all good.(made my little girl laugh) now i work into the night and when i came home the lights came on (well they were on when i arrived) walked in so the motion picked me up then got in the house not long when i was in alexa spoke which wasn
t ideal at 3am lol
so all in all i think i need to get alexa to stop talking at night between 22.00 and 06.00 i did add that IF time in like you suggested but i might have put it in wrong its on line 86
thank you
I am more than happy to help. But this piston relies on 4 different presence sensors.
they all run on life360 and since i made the radius slightly bigger it has worked well once either one of us arrive about 20 - 30 sec alexa does speak (just now as i right this my son has just left and he left the circle and alexa has just said goodbye) all i need is Alexa not to speak after a certain time
ive replied to the original programmer but as of yet no reply
this is the link Arrival of people including multiple people at once where i found the original piston and the programmer that made it
Do you still want Alexa to be silent between 22:00 and 06:00?
Also, what are you time requirements for the lights? I would change this a little…
yes would need the time between 22.00 to 06.00 lights not important as long as they turn off
ive also read the post about the piston on the link and i have found an updated version that gives times line 112 for speaker i think ill send a snap shot i just dont understand the GET part
I have not tested this piston or the changes that I am making so we may need to make more modifications as we go. But let’s start here…
Using the NOT condition is favored when spanning the midnight hour. (Thanks @WCmore). You could use Time is between 6:00 and 22:00.
im going to test this updated piston as i have to pop out for 1hr ive adjusted the times for the speaker just to test it should i just leave the GET request as i no idea what this is does
It looks like the original user was making a GET statement to her Sonos to speak the text. If your “Speaker” is an Alexa, then you will not need the GET.
ok ill remove this before i go out ill let you know what happens
3/5/2020, 2:36:32 PM +231ms
+0ms ╔Received event [My home].test = 1583418992230 with a delay of 1ms
+88ms ║RunTime Analysis CS > 21ms > PS > 6ms > PE > 60ms > CE
+92ms ║Runtime (58702 bytes) successfully initialized in 6ms (v0.3.110.20191009) (90ms)
+93ms ║╔Execution stage started
+104ms ║║Calculating (datetime) 1583418992331 - (datetime) 1583418992316 >> (datetime) 15
+109ms ║║Comparison (datetime) 15 is_greater_than (integer) 300000 = false (1ms)
+111ms ║║Condition #27 evaluated false (12ms)
+112ms ║║Condition group #24 evaluated false (state did not change) (14ms)
+126ms ║║Condition #20 evaluated false (8ms)
+134ms ║║Condition #56 evaluated false (7ms)
+136ms ║║Condition group #55 evaluated false (state did not change) (17ms)
+137ms ║║Condition group #11 evaluated false (state did not change) (20ms)
+144ms ║║Comparison (time) 52592371 happens_daily_at (datetime) 1583418992316 = false (0ms)
+145ms ║║Condition #49 evaluated false (5ms)
+147ms ║║Cancelling statement #49’s schedules…
+151ms ║║Requesting time schedule wake up at Thu, Mar 5 2020 @ 2:37:02 PM GMT
+154ms ║║Condition group #38 evaluated false (state did not change) (13ms)
+161ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (1ms)
+162ms ║║Condition #65 evaluated false (5ms)
+164ms ║║Condition group #61 evaluated false (state did not change) (6ms)
+189ms ║╚Execution stage complete. (95ms)
+190ms ║Setting up scheduled job for Thu, Mar 5 2020 @ 2:37:02 PM GMT (in 29.895s)
+202ms ╚Event processed successfully (202ms)
no sound from alexa which is good
+1ms | ╔Received event [Ring - Front Door].motion = inactive with a delay of 62ms |
---|---|
+77ms | ║RunTime Analysis CS > 16ms > PS > 4ms > PE > 57ms > CE |
+80ms | ║Runtime (58757 bytes) successfully initialized in 4ms (v0.3.110.20191009) (78ms) |
+81ms | ║╔Execution stage started |
+91ms | ║║Calculating (datetime) 1583421852238 - (datetime) 1583421651453 >> (datetime) 200785 |
+95ms | ║║Comparison (datetime) 200785 is_greater_than (integer) 300000 = false (1ms) |
+97ms | ║║Condition #27 evaluated false (11ms) |
+98ms | ║║Condition group #24 evaluated false (state did not change) (12ms) |
+108ms | ║║Comparison (enum) inactive changes_to (string) active = false (0ms) |
+109ms | ║║Cancelling condition #20’s schedules… |
+110ms | ║║Condition #20 evaluated false (7ms) |
+116ms | ║║Comparison (enum) inactive changes_to (string) inactive = true (1ms) |
+117ms | ║║Cancelling condition #56’s schedules… |
+118ms | ║║Condition #56 evaluated true (7ms) |
+120ms | ║║Condition group #55 evaluated true (state did not change) (17ms) |
+126ms | ║║Comparison (boolean) true is (boolean) false = false (2ms) |
+127ms | ║║Cancelling condition #29’s schedules… |
+128ms | ║║Condition #29 evaluated false (8ms) |
+130ms | ║║Cancelling condition #11’s schedules… |
+130ms | ║║Condition group #11 evaluated false (state changed) (28ms) |
+136ms | ║║Comparison (time) 55452284 happens_daily_at (datetime) 1583421651453 = false (0ms) |
+138ms | ║║Condition #49 evaluated false (5ms) |
+139ms | ║║Cancelling statement #49’s schedules… |
+142ms | ║║Requesting time schedule wake up at Fri, Mar 6 2020 @ 3:21:21 PM GMT |
+145ms | ║║Condition group #38 evaluated false (state did not change) (12ms) |
+151ms | ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (1ms) |
+153ms | ║║Cancelling condition #65’s schedules… |
+154ms | ║║Condition #65 evaluated false (6ms) |
+155ms | ║║Cancelling condition #61’s schedules… |
+156ms | ║║Condition group #61 evaluated false (state changed) (9ms) |
+159ms | ║╚Execution stage complete. (78ms) |
+160ms | ║Setting up scheduled job for Fri, Mar 6 2020 @ 3:21:21 PM GMT (in 86229.142s) |
+171ms | ╚Event processed successfully (171ms) |
my wife comes in soon ill change the time settings now so alexa should talk
i do belive this has worked just need to find the volume for the alexa
+0ms | ╔Received event [My home].time = 1583424980577 with a delay of -485ms |
---|---|
+101ms | ║RunTime Analysis CS > 36ms > PS > 5ms > PE > 59ms > CE |
+105ms | ║Runtime (58715 bytes) successfully initialized in 5ms (v0.3.110.20191009) (104ms) |
+107ms | ║╔Execution stage started |
+126ms | ║║Executed physical command [IKEA TRÅDFRI LED Bulb porch].setLevel([40]) (14ms) |
+128ms | ║║Fast executing schedules, waiting for 457ms to sync up |
+599ms | ║║Executed physical command [IKEA TRÅDFRI LED Bulb porch].setLevel([40]) (11ms) |
+659ms | ║║Executed physical command [IKEA TRÅDFRI LED Bulb porch].off() (16ms) |
+660ms | ║║Executed [IKEA TRÅDFRI LED Bulb porch].off (18ms) |
+665ms | ║║Cancelling statement #52’s schedules… |
+681ms | ║║Executed virtual command [Echo - Living room Echo].setVariable (3ms) |
+702ms | ║║Calculating (integer) 4 - (integer) -1 >> (integer) 5 |
+706ms | ║║Calculating (integer) 5 - (integer) 2 >> (integer) 3 |
+714ms | ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 + (string) and >> (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and |
+719ms | ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and + (string) isa >> (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and isa |
+723ms | ║║Calculating (integer) -1 > (integer) 0 >> (boolean) false |
+729ms | ║║Executed virtual command [Echo - Living room Echo].setVariable (3ms) |
+750ms | ║║Calculating (integer) 4 - (integer) -1 >> (integer) 5 |
+753ms | ║║Calculating (integer) 5 - (integer) 2 >> (integer) 3 |
+762ms | ║║Calculating (integer) 1 == (integer) 1 >> (boolean) true |
+773ms | ║║Calculating (integer) 1 == (integer) 1 >> (boolean) true |
+780ms | ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 + (string) and >> (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and |
+785ms | ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and + (string) isa >> (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and isa |
+790ms | ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and isa + (string) are >> (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and isa are |
+795ms | ║║Calculating (string) Lisa + (string) is >> (string) Lisa is |
+799ms | ║║Calculating (integer) -1 > (integer) 0 >> (boolean) false |
+805ms | ║║Executed virtual command [Echo - Living room Echo].setVariable (3ms) |
+816ms | ║║Calculating (integer) 1 == (integer) 1 >> (boolean) true |
+821ms | ║║Calculating (string) Lisa is + (string) now at home. >> (string) Lisa is now at home. |
+827ms | ║║Executed virtual command [Echo - Living room Echo].setVariable (4ms) |
+842ms | ║║Calculating (integer) 1 == (integer) 1 >> (boolean) true |
+856ms | ║║Calculating (integer) 1 == (integer) 2 >> (boolean) false |
+863ms | ║║Calculating (string) Nice you see you + (string) Lisa >> (string) Nice you see you Lisa |
+867ms | ║║Calculating (string) Nice you see you Lisa + (string) , >> (string) Nice you see you Lisa, |
+872ms | ║║Calculating (string) Nice you see you Lisa, + (string) Lisa is >> (string) Nice you see you Lisa, Lisa is |
+875ms | ║║Calculating (string) Nice you see you Lisa, Lisa is + (string) here. >> (string) Nice you see you Lisa, Lisa is here. |
+881ms | ║║Executed virtual command [Echo - Living room Echo].setVariable (3ms) |
+920ms | ║║Executed virtual command [Echo - Living room Echo].sendPushNotification (35ms) |
+933ms | ║║Comparison (time) 58581015 is_between (time) 50400000 … (time) 55800000 = false (8ms) |
+936ms | ║║Cancelling condition #75’s schedules… |
+937ms | ║║Condition #75 evaluated false (14ms) |
+938ms | ║║Cancelling condition #74’s schedules… |
+939ms | ║║Condition group #74 evaluated false (state changed) (17ms) |
+942ms | ║║Cancelling statement #76’s schedules… |
+947ms | ║║Executed virtual command setVariable (3ms) |
+953ms | ║║Executed virtual command setVariable (3ms) |
+958ms | ║╚Execution stage complete. (852ms) |
+960ms | ║Setting up scheduled job for Fri, Mar 6 2020 @ 4:12:56 PM GMT (in 86195.369s) |
+979ms | ╚Event processed successfully (979ms) |
i`ve added your modified piston and ill run it tonight before im at work and let you know the outcome later
thank you so much for helping me so far i really appreciate it