Morning wake up Fade and mode setting

conditions
timer

#21

I use a virtual switch as well. I was messing around trying to make a piston to do this, but there seems to be a glitch writing something to happen every year on a specific date if that date has already passed. So you might have to do something with like a Switch Case statement where at 12:01 AM every day you check to see what day it is and then react accordingly.

Try for yourself, but mine was failing when I tried to test against Every January 1. it actually was giving me a Java error. So i stopped there… But I think a Switch Case statement would work just fine as you would test it every day instead of once a year.


#22

Just released a issue with my main piston, i need it to subscribe to the presence changes but without running the piston, is this possible @bangali?

This is triggered by another piston


#23

I wouldn’t do it that way. I would put all of your checks in the other piston so that by the time you got to this piston you KNOW you want to run it completely.


#24

what and put the speech in a global variable?


#25

You could send them over as Args from the calling piston. (Not the actual presence but a variable which would equal what you want). Then react accordingly. I don’t know how else you would have this piston “know” about changes without otherwise running it…which would be more complicated anyway. So just put it in your calling piston and send over the info.


#26

Don’t know how to do that yet for now as a quick measure i have just done this.

which calls this that then calls the fade


#27

the piston snapshot you posted seems to already subscribe to the presence events.


#28

Which one, 3yiq? I added a subscribe too it but it caused the piston to run which I didn’t want, I just wanted it to update, so it played the corect message. But I have edited it since @Mike1616 suggestion and will test it today.