Webcore event on switches not working

I just realized that one of my event is not firing and its a simple one! I remove everything exept a notification... When I flip the switch nothing happen, the event not trigger.
Any ideas on this?

What do you get if you turn on Full Logging?
Have you turned on Text Logs for these devices and made sure they are all generating logs?

image

I get only this, like the piston see the switch flip but not the event if I see the right thing...


image

The logs don't really match the trace numbers in your piston so get confused, c'est dommage.

I have over 100 pistons and I rarely use On Event.
Try creating a test piston with "If [devices list] changes (changes to) " and do the Push Notification with the logging on Full.
It will be clearer in the logs to see the basic structure work.
When I debug I create the simplest piston to find the problem.

Yes, normally its working pretty good! not sure on what s going on! I edited my test piston (because like you said I got one already to test stuffs...) and its working... I ll try deleting the event and add it again to see!
I sometimes got problem with piston when too big, sometimes it wont even save, some other time it wont act normally... I already splited some task in another one in this one because of that. Its 2 pistons exchanging data, I just transfer some event like this because it should not have any issue on anything...

So I test it and nothing is working... I ll make another piston to take care of those extra commands... pretty weird!

I have had pistons over the years that refused to work properly one day.
I try everything, even restoring from a backup, and failure.
I delete and recreate the piston and everything works again.

2 Likes

Have you tried just using an IF instead, to subscribe to changes, instead of using "on events from?"

That was my initial post. :wink:

First I would pause / resume the piston to see it re-subscribe to events

  • if you have logging on you should see what it is subscribing to.

I'm not sure with the greyed out portions vs. non greyed out, perhaps post a green snapshot?

  • ie in what you saved did you have statements disabled?
  • ie I agree with comment on what you showed for piston and logs do not seem to match

So it was! I admit a glanced through the posts a bit quickly :grin:

Unclear if OP has tried that though, or if they just tried using a new piston.

I tried a test piston and works good. All other events are working great... I tried to edit multiple time, remove some step...etc... still nothing! So I decided to create a brand new piston with this only event. Works great.
I dont know why but when a piston contain too much event or is too big, some issue comes out!
I could test with if statment but when I can I use event because its isolated from the rest of the piston. With if stament the piston run each time and evaluate all data... and sometimes it cause event cancellation and other problem.