Specific sensor timeout

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
Post Reply
krizzz
Posts: 171
Joined: Wednesday 20 November 2013 21:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Specific sensor timeout

Post by krizzz » Saturday 25 March 2017 11:45

Because i have some scripts running a virtual sensor once every 12 hours (bluetooth & Battery related) and the general (settings/others) setting for sensor timeout is 60 minutes. I have quite some sensors standard (after 60 minutes of course) displaying a red color. Is there any way, I can manipulate the timeout per individual sensor?

krizzz
Posts: 171
Joined: Wednesday 20 November 2013 21:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: Specific sensor timeout

Post by krizzz » Tuesday 28 March 2017 22:05

No one has the same need for this? Interesting!

Nautilus
Posts: 774
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Specific sensor timeout

Post by Nautilus » Tuesday 28 March 2017 22:15

krizzz wrote:No one has the same need for this? Interesting!
The need is surely there, but I guess the topic got dismissed as you asked for specific advice on overcoming the issue and I don't think there currently is any (using the built-in timeout at least). What I've done is that I've set the timeout to 10 days and if I need to get notified of some sensor sooner than that, I'll just setup a script that will send a notification after the specified idle time. If this kind of approach is something you'd be interested in, search the forum for "lua timedifference function" or check the wiki :)

krizzz
Posts: 171
Joined: Wednesday 20 November 2013 21:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: Specific sensor timeout

Post by krizzz » Tuesday 28 March 2017 22:17

Nautilus wrote:
krizzz wrote:No one has the same need for this? Interesting!
The need is surely there, but I guess the topic got dismissed as you asked for specific advice on overcoming the issue and I don't think there currently is any (using the built-in timeout at least). What I've done is that I've set the timeout to 10 days and if I need to get notified of some sensor sooner than that, I'll just setup a script that will send a notification after the specified idle time. If this kind of approach is something you'd be interested in, search the forum for "lua timedifference function" or check the wiki :)
Yeah, good advice. Thanks, problem is when you have a lot of sensor again it is a lot of scripting. But thanks for confirming that there are more people with this need!

Nautilus
Posts: 774
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Specific sensor timeout

Post by Nautilus » Tuesday 28 March 2017 22:42

krizzz wrote:Thanks, problem is when you have a lot of sensor again it is a lot of scripting.
True. One possibility would be to adapt e.g. this script https://www.domoticz.com/wiki/Battery_l ... LUA_script (I'm using a bit modified version of that one to get a notification once a day if any battery operated device is below given threshold and then a weekly summary of all used battery devices) so that it would loop through all sensors (just need to be able to define them based on some of the available parameters) and then report as needed based on "LastUpdate". But definitely it would be nice to see custom timeouts (with a notification option ;)) directly as a Domoticz feature! :)

GSV3Miac
Posts: 19
Joined: Sunday 05 February 2017 13:00
Target OS: Windows
Domoticz version:
Contact:

Re: Specific sensor timeout

Post by GSV3Miac » Tuesday 09 October 2018 14:41

Late to the party but I'd like to be able to specify different timeout for some sensors too (as the OP says, virtual one in particular .. I can't even see a way to use a script fake out the lastupdate value for them,. unless I read and rewrite their actual values in LUA script).

Post Reply

Who is online

Users browsing this forum: astrapowerrr and 9 guests