Engine off when device send alarm power cut

Dsuareza month ago

Hi, can you help me to find the way to configure a computed attribute to send GPRS command (9400000) when i get alarm power cut ?

Anton Tananaeva month ago

Why do you need a computed attribute for it?

Dsuareza month ago

Hi Anton thank you for your quick reply, I thought the way was using a computed attributed could you please advise? the idea is when i get alarm power cut send a GPRS command to disable the engine command (9400000).

Anton Tananaeva month ago

Do you already receive the alarm?

Dsuareza month ago

Yes, please see the below evidence:
Power cut alarm.png

Anton Tananaeva month ago

Then you don't need computed attributes. You can just enable command channel in the notifications.

Dsuareza month ago

How can i create the alarm and trigger the command? I don't see the option on alarm panel.

Anton Tananaeva month ago
  1. What version of Traccar are you using?
  2. Have you changed anything in the configuration?
Dsuareza month ago
  1. 6.6
  2. I am sending notifications to telegram below is my configuration:
     <!-- Notification config-->

     <entry key='notificator.types'>web,sms,email</entry>
     <entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
     <entry key='sms.http.url'>https://api.telegram.org/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsendMessage?</entry>
     <entry key='sms.http.user'>7550473191</entry>
     <entry key='sms.http.password'>xxxxxxxxxxxxxxx</entry>
     <entry key='sms.http.template'>
     chat_id={phone}&amp;text={message}
     </entry>
Dsuareza month ago

Hi Anton, I added command to notificator.types and i am available to send the command now, thank you so much for your help and support.

send Command when trigger alert.png

Anton Tananaeva month ago

The problem is with notificator.types. You're missing command type there.