trigger if sensor switches more than x time last hour?

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
renerene
Posts: 356
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

trigger if sensor switches more than x time last hour?

Post by renerene »

Is it possible to trigger an action based on the x amount of switch actions for the last y minutes?
Sometimes my PIR's have a problem that they switch contanstly
I was writing a script that count the on-actions every hour and is reseted on full hours. But it would be nicer to have an overview of the actions of the last hour (i.e. at 9:17 I want to know how many times the device has turned on since 8:17)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest