This may be a known issue or could be meant to work this way by design. It seems to me that Cayenne has a fatal flaw and that is my triggers only work when the PI is online. When it goes offline, nothing triggers. I am not talking about seeing the triggers on the Web UI. I don’t expect those to work since it is offline. However, I do expect that all the triggers fire appropriately on the Pi itself. It should have everything it needs to do that locally.
For example, my test circuit contains:
1- Blue LED
2- PIR sensor
3- Red LED
4- Temp Sensor
When the temperature exceeds a threshold, the red LED goes on, and the fan turn on.
When the temperature goes below that threshold, the red LED turns off and the fan turns off.
When the PIR goes high, the blue LED turns on.
When the PIR goes low, the blue LED turns off.
This is a simple proof-of-concept project that I setup to test Cayenne out. I’ve verified that all this works when it is online.
When the pi is offline however, none of the triggers fire. This is really bad. If I had triggered the fan when I was online, but then went offline, I will no longer detect the temperature going below the threshold event and so the fan and light will be on forever (or until the Pi goes online again). Other bad things could happen if events don’t trigger just because it’s not online.
Is there any reason why the onboard Cayenne agent can’t execute the triggers as it knows them from the last time it was online?