Scratching my head on this one, and the hamster inside is getting annoyed by the scratching noise.
Each bedroom has a minimote. When the occupant goes to bed, they push the minimote, which turns off the lights and occupancy sensing for that room. It also decrements a counter. Once the counter reaches zero (meaning everyone has gone to bed), several housekeeping chores kick off, i.e. lock all the doors, make sure the garage doors are closed, set the hallway lights so they are dimmed down to 15%, etc. The event logic was:
If Awake Count value becomes this :0
Then blah, blah, blah.
If I decremented the Awake Count using the timers/counters/ screen, it runs fine. If I decrement it as part of another event, nada.
While trying to figure out why it wasn't triggering, I realized I did have a logic error, namely that if it had been triggering, it would trigger continuously. Changed the logic so the event above turns on a virtual device, while a second event uses the "device changes and becomes" logic to kick off the housekeeping event a single time.
I'm still stuck with the original problem, namely why is the counter = 0 not being recognized when it's changed as part of an event?
Each bedroom has a minimote. When the occupant goes to bed, they push the minimote, which turns off the lights and occupancy sensing for that room. It also decrements a counter. Once the counter reaches zero (meaning everyone has gone to bed), several housekeeping chores kick off, i.e. lock all the doors, make sure the garage doors are closed, set the hallway lights so they are dimmed down to 15%, etc. The event logic was:
If Awake Count value becomes this :0
Then blah, blah, blah.
If I decremented the Awake Count using the timers/counters/ screen, it runs fine. If I decrement it as part of another event, nada.
While trying to figure out why it wasn't triggering, I realized I did have a logic error, namely that if it had been triggering, it would trigger continuously. Changed the logic so the event above turns on a virtual device, while a second event uses the "device changes and becomes" logic to kick off the housekeeping event a single time.
I'm still stuck with the original problem, namely why is the counter = 0 not being recognized when it's changed as part of an event?
Comment