Command Result Notification is getting repeated

Aakansha3 years ago

Hii Anton,
I don't know if I had mentioned the Correct Subject for the problem which I'm about to mention.
I had set up devices on Traccar which are working fine, and notifications are also coming on time.
But Engine Stop and Engine Resume notifications
Restore fuel supply: Success!
Cut off the fuel supply: Success!
Already in the state of fuel supply cut off, the command is not running!
Already in the state of fuel supply to resume, the command is not running!
These notifications are coming a lot on devices even though the device engine is already stopped or being resumed.
These notifications should only arrive when Engine Stop, Engine Resume commands are triggered but when no one is sending these commands, then why I'm getting these notifications and they are coming in a very huge amount, in 5 minutes I get like 5-6 times notifications even the engine stop or engine resume commands was never sent ...
Why is this happening I'm not understanding this , especially with Command Results they are getting notified but are getting repeated in a very huge amount?

It would be great if you could help me understand What I'm not doing correctly .
Thanks

Anton Tananaev3 years ago

Sounds like device issue to me.

Aakansha3 years ago

It's resolved now
I made the result attribute permanent in the attribute section via XML file configuration
I had removed it, now unnecessary notifications are not showing.
Is there some way by which I can make Command results notifications save into Database

Anton Tananaev3 years ago

All events should be saved by default.

Aakansha3 years ago

I need to know Engine's status is on or off.
And Command Result attribute only gets shown whenever I trigger the command of engine stop/resume , I need it to stay there .

Anton Tananaev3 years ago

One idea - use computed attribute to convert it to some other attribute key and the use attributes copying on that new attribute.

Aakansha3 years ago

okay I'll give it a try
Thanks a lot

Aakansha3 years ago

Command Result to be converted into some other attribute key ???

Anton Tananaev3 years ago

Yes.

Aakansha3 years ago

Anton one thing need to ask
Restore fuel supply: Success!
Cut off the fuel supply: Success!
Already in the state of fuel supply cut off, the command is not running!
Already in the state of fuel supply to resume, the command is not running!
these notifications appear when the Engine Stop / Engine Resume command is sent, then
Should I create any new attribute to store this and use Engine Stop/Resume as an attribute in the ternary operator and store command result to this new attribute !!
Don't know If I'm making any sense...

Aakansha3 years ago

Hii Anton
Sorry for asking again...
But I'm not able to do so properly which was stated above, It would be great if you could help a bit, please!!
I'm trying to store the result of the Engine Stop/resume Command result in the new Attribute which I created named engine_status.
engine_status
Engine Stop: Cut off Fuel Supply Success? Already ...
I'm not able to do so correctly it's not a correct expression !!

Anton Tananaev3 years ago

Please provide a screenshot of what computed attribute you tried and what is the result.

Aakansha3 years ago

https://drive.google.com/file/d/1wjp7JYlfxjIn5QnwhSfDUskzWj2iH7UZ/view?usp=sharing
This attribute was created by me and set some string into it

Aakansha3 years ago
Anton Tananaev3 years ago

I'm confused by what you're trying to do here. Why are you not using result attribute, as discussed?