Engine off when device send alarm power cut

Dsuarez a year 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 Tananaev a year ago

Why do you need a computed attribute for it?

Dsuarez a year 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 Tananaev a year ago

Do you already receive the alarm?

Dsuarez a year ago

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

Anton Tananaev a year ago

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

Dsuarez a year ago

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

Anton Tananaev a year ago
  1. What version of Traccar are you using?
  2. Have you changed anything in the configuration?
Dsuarez a year 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>
Dsuarez a year 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 Tananaev a year ago

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