Text line spoken at 8:45 AM when no light is turned off


#1

1) Give a description of the problem
At 8:45 AM the text line is spoken even when the lights aren’t turned off.

2) What is the expected behavior?
Nothing should happen until the lights are turned off
3) What is happening/not happening?
The random line of text in the piston is playing at 8:45 when it shouldn’t

4) Post a Green Snapshot of the pistonimage

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

I’m on mobile so i can’t really get into much detail. Your trigger should be if dimmer or dimmer2 changes to on AND time is between XX and YY


#3

. OK I think I see what you mean. I will test it.


#4

If you only want this to trigger once a day then it might be better to use a variable to limit the execution of the piston. Search for ‘once a day’ and you might turn up some examples.


#5

No it is every time it goes off. But why it triggers when the light isn’t turned off, and at that 8:45AM is what I don’t understand.


#6

The only event you are checking is the time so this will only trigger at 8:45 Am as the conditions on the switches won’t trigger the piston to run. You would need to look at ‘changes to off’ instead of ‘is off’ to get events for each switch. What you could do is trigger if either switch changes to off and then check the overall condition. What an if statement around this entire thing:

if
   any of Dimmer 2, Dimmer 1 changes to off
then
if
    Dimmer 2's switch if off
etc.

#7

I think this is far above my WebCoRe skill level, I am confused.


#8

Try this. You will have to put your dimmers and speaker back in place of mine.


#9

Thanks, I will try it as soon as possible.