If those are expressions, they are completely invalid.
You are so quick in replying Anton and this really helps us a lot.
I rectified the expression and I was getting Now function error when I used only "Now" function so, just wanted to check whcih of the below will work fine:-
(now() - position.fixTime) > 300000 ? false : position.attributes.ignition
(now() - position.fixTime) > 300000 ? false : position.attributes.motion
(now() - position.fixTime) > 300000 ? 0 : position.speed
or
(position.serverTime.time - position.fixTime.time) > 300000 ? false : position.attributes.motion
(position.serverTime.time - position.fixTime.time) > 300000 ? 0 : position.speed
(position.serverTime.time - position.fixTime.time) > 300000 ? false : position.attributes.ignition
Just Fyi: I am trying reset the speed, motion and ignition if vehicle went to basement and data is not received in last 5 min.
Thank you as always.
None of this is valid.
Could you please point me to a forum thread or documentation link where I can read more and understand what might be going wrong here? I realize it may not be ideal to keep asking you directly, and I truly appreciate the help you’ve already provided.
Thank you!
I’ve created three computed attributes to reset Speed, Motion, and Ignition for any vehicle that goes into a basement and loses network connectivity. This is to prevent the system from continuously showing the last received data.
The computed attributes I defined are:
if ((now - position.fixTime) > 300000) { false } else { position.attributes.motion }
if ((now - position.fixTime) > 300000) { 0 } else { position.speed }
if ((now - position.fixTime) > 300000) { false } else { position.attributes.ignition }
I added these under the admin account’s computed attributes, but I’m not seeing them available in groups or users. I’m unsure how to assign them to all users (or ideally all devices) at once.
Could you please help me with this?