This object is in archive! 
Best way to store datetime of "last movement"
Need Answer
Hi guys,
I'm trying to find a way to store Date, Time and SensorIdentifier for last movement, for later use (testing, retrieval)
Programmatically, it would make sense to set a variable to (NOW), inside a WHEN block, but the rule builder does not allow this.
(SensorIdentifier can of course be set, the issue is NOW).
Does anyone have any suggestion as to how I can achieve this?
Best regards
Robert
No connection
Real-time notifications may not work
Dear Robert,
Please have a look at the attached picture. Did you mean on something like this?
Best regards,
Pero Zovkic
Dear Robert,
Please have a look at the attached picture. Did you mean on something like this?
Best regards,
Pero Zovkic
Hi Pero,
Thanks. I do mean something like what you describe, only in a single variable instead.
I guess the best is to submit a request to add UnixTime as a separate property to the NOW object :-)
Best regards, Robert
Hi Pero,
Thanks. I do mean something like what you describe, only in a single variable instead.
I guess the best is to submit a request to add UnixTime as a separate property to the NOW object :-)
Best regards, Robert
Pero,
I've been trying and testing and testing and trying, but not found any way to store a time or a date value, nor have I found any way to measure elapsed time.
The rule in your initial reply shows how to assemble the values of date and time in a message by having separate variables for each element value, but unfortunately I have yet to find a way to for example store a date or a time in a variable, not as numeric values and also not as strings.
Any tips or tricks would be highly welcomed!
Pero,
I've been trying and testing and testing and trying, but not found any way to store a time or a date value, nor have I found any way to measure elapsed time.
The rule in your initial reply shows how to assemble the values of date and time in a message by having separate variables for each element value, but unfortunately I have yet to find a way to for example store a date or a time in a variable, not as numeric values and also not as strings.
Any tips or tricks would be highly welcomed!
Replies have been locked on this page!