Power Changed Trigger Not Working

Apps triggered by a power change of a switch are not executing. The hub is up to date and I did a database rebuild. However when the power changes on the switch, the app does not trigger.

Hub Details:

Device Details:

Test App:

Device Events:

Hub Log:

Please let me know if any other information is needed. Thanks!

Your device reports 'power', but your rule triggers on 'energy'. Those are different, and looking at your device logs, you'll see no 'energy' events, but there are 'power' events.

3 Likes

Also depending on device you need to be careful triggering on power change. Some devices are very sensitive and can trigger very rapidly easily causing issues if you have a trigger on every change. As long as you configure your device to limit reports based on time or wattage change u should be ok. I normally write these type of triggers to say value > xxx or < instead of just change.

1 Like

I am officially an idiot! Thanks for pointing out the stupidest of mistakes! :exploding_head:

Sorry to waste your time but greatly appreciate it!

Totally agreed! This app was just a sample to see if I could catch any power event. My real app is checking for a value > to avoid the potential issues you mentioned. Thanks for the feedback!