You could probably use computed attributes.
Ok. Thanks for the tips. I will try to figure out how to do it.
If I remember correctly all the devices that respond with S20,OK,***** the number changes every time, that makes it impossible to use an attribute to differentiate them
You are right ... there is no way to indicate fuel pump cut or resume. Thanks for confirmation.
The response is not guaranty for start or stop engine.
To stop the engine, probably you use some relay to cut off the fuel, this relay receive (-) from the device to can make contact. The device sending this (-) as attribute to Traccar server like IOut. With computed attributes you can catch and hold it.
Tested and working:
Thanks for your info sharing Kaloyan Kanev. Highly appreciated.
Today I issue the fuel pump cut via the relay and here are the results ....
Settings/Device/6/Command/Required/Type/Engine Stop
More Details ...
result Command result S20,OK,065417
status Status 4160748543
io1 502
io2 12
io3 10902
io4 53865986
Settings/Device/6/Command/Required/Type/Engine Resume
More Details ...
result Command result S20,OK,065700
status Status 4294966271
io1 502
io2 12
io3 10902
io4 53865986
Yes! The command result for SinoTrack device output seems to changes every time randomly and there is no way to use Computer Attributes solutions. Thanks anyway @nton for the suggestions.
You have ACC cable for ignition monitoring. Connect ACC cable to the (+) after the relay (between fuel pump and relay) that is the way.
And after that, you can use computed attributes to hold the status.
Brilliant idea of a work about technique! Thanks alot! Cheers!
How to update fix at TracCar Server default Command message results config files?
This are the output send to Telegram Notification which is too cryptic for newbie to understand.
Command result received:
S20,0K,062021 = Engine Stop
Command result received:
S20,OK,062117 = Engine Resume
Telegram messages ...
SinoTrack-h02 command result received: S20,0K,062021 at 2024-12-02 06:20:20 Settings / Command / Engine Stop
Telegram messages ...
SinoTrack-h02 command result received: S20,OK,062117 at 2024-12-02 06:21:16 Settings / Command / Engine Resume
Please advise? Thanks.