lastupdate  [Solved]

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

Moderator: leecollings

Post Reply
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

lastupdate

Post by poudenes »

Hi There All,

Is it possible to do:

more then 2 but less then 10 minutes. I don't know how to code if it is possible....

Code: Select all

if (domoticz.devices(iPhone).lastUpdate.minutesAgo > 2 and < 10)
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
jvdz
Posts: 2445
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: lastupdate  [Solved]

Post by jvdz »

Guess that needs to be:

Code: Select all

 if (domoticz.devices(iPhone).lastUpdate.minutesAgo > 2 and domoticz.devices(iPhone).lastUpdate.minutesAgo < 10)
Jos
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: lastupdate

Post by poudenes »

Thanks I gonna try this one :)


Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest