Engine off when device send alarm power cut

Dsuarez2 months 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 Tananaev2 months ago

Why do you need a computed attribute for it?

Dsuarez2 months 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 Tananaev2 months ago

Do you already receive the alarm?

Dsuarez2 months ago

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

Anton Tananaev2 months ago

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

Dsuarez2 months ago

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

Anton Tananaev2 months ago
  1. What version of Traccar are you using?
  2. Have you changed anything in the configuration?
Dsuarez2 months 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>
Dsuarez2 months 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 Tananaev2 months ago

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