PowerOn notification

tzana91a year ago

Hi all,

I would like to have notification on power on / power off.
On the GUI I have the icon that say if "Alarm : power cut" or "Alarm : power on"
But, in event I only have when cut and this notification only too

At 00:42
Events:

No event on power on

My logs :

2023-09-06 22:42:41  INFO: [T1011cf99] connected
2023-09-06 22:42:41  INFO: [T1011cf99: h02 < 92.184.97.170] 2a48512c393137353130383231362c56312c3232343233382c562c343834322e313732382c4e2c30303232362e393136372c452c302e30302c3134332c3036303932332c66626666666266662c3230382c30312c31343333392c363333363823
2023-09-06 22:42:41  INFO: [T1011cf99] id: 9175108216, time: 2023-09-06 22:42:38, lat: 999 lon: 999, course: 143.0
2023-09-06 22:42:41  INFO: [T1011cf99: h02 > 92.184.97.170] 2a48512c393137353130383231362c56342c56312c323032333039303632323432343123
2023-09-06 22:42:44  INFO: [T1011cf99: h02 < 92.184.97.170] 2a48512c393137353130383231362c56312c3232343233392c562c343834322e313732382c4e2c30303232362e393136372c452c302e30302c3134332c3036303932332c66666666666266662c3230382c30312c31343333392c363333363823
2023-09-06 22:42:44  INFO: [T1011cf99] id: 9175108216, time: 2023-09-06 22:42:39, lat: 999, lon: 999, course: 143.0
2023-09-06 22:42:44  INFO: [T1011cf99: h02 > 92.184.97.170] 2a48512c393137353130383231362c56342c56312c323032333039303632323432343423
2023-09-06 22:42:44  INFO: [T1011cf99: h02 < 92.184.97.170] 2a48512c393137353130383231362c56312c3232343234312c412c343834322e313732382c4e2c30303232362e393136372c452c302e30302c3134332c3036303932332c66666666666266662c3230382c30312c31343333392c363333363823
2023-09-06 22:42:44  INFO: [T1011cf99] id: 9175108216, time: 2023-09-06 22:42:41, lat: 999, lon: 999, course: 143.0
2023-09-06 22:42:44  INFO: [T1011cf99: h02 > 92.184.97.170] 2a48512c393137353130383231362c56342c56312c323032333039303632323432343423

At 00h:45
Event:

2023-09-07 00:45:49	Alarme	Courant coupé

My logs :

2023-09-06 22:45:43  INFO: [T1011cf99: h02 < 92.184.97.170] 2a48512c393137353130383231362c56312c3232343533392c412c343834322e313732382c4e2c30303232362e393136372c452c302e30302c3134332c3036303932332c66666666666266662c3230382c30312c31343333392c363333363823
2023-09-06 22:45:43  INFO: [T1011cf99] id: 9175108216, time: 2023-09-06 22:45:39, lat: 999, lon: 999, course: 143.0
2023-09-06 22:45:43  INFO: [T1011cf99: h02 > 92.184.97.170] 2a48512c393137353130383231362c56342c56312c323032333039303632323435343323
2023-09-06 22:45:56  INFO: [T1011cf99: h02 < 92.184.97.170] 2a48512c393137353130383231362c56312c3232343534392c412c343834322e313732382c4e2c30303232362e393136372c452c302e30302c3134332c3036303932332c65666637666266662c3230382c30312c31343333392c363333363823
2023-09-06 22:45:57  INFO: [T1011cf99] id: 9175108216, time: 2023-09-06 22:45:49, lat: 999, lon: 999, course: 143.0

Thank you for you help

Anton Tananaeva year ago

If you see it in the app, it will stored in the events as well.

tzana91a year ago

Thank you for feedback

Yet in the events section, I only have this :
No power on between power cut

Power cut

Notification parameters are ok
I create a new one for power on today to try :

Notification parameters

And finally all is associate to my device

Device connexion

Have you any clue please

Anton Tananaeva year ago

And where do you see power on? And what's the timestamp for it?

tzana91a year ago

In the device list on the home page

Power off
Power Off

in same time in event :
Power Off event

And when I power on, after ~30s, no more icon:
Power ON

But no any event :

Power ON event

What timestamp you want and where please ?

Anton Tananaeva year ago

Earlier you said

On the GUI I have the icon that say ... "Alarm : power on"

I need to see the "Alarm : power on"

So far you only show that the icon disappears. It's not the same thing as power on alarm.

tzana91a year ago

Certainly, but if the icon disapears when I plug in, that mean something say to the server that power is on... so hide the icon.
Finally is it possible to have a notification about that ?
Because there is a notification type "electrical current restored" in alarm

Anton Tananaeva year ago

I think you misunderstand something. Alarms are always coming from devices directly. We don't have any logic on the server to generate those.

RastreameMXa year ago

@tzana91 Alarm events are generated from "alarm" attribute in data provided by device. If the device doesn't send "powerOn" alarm or any similar alarm, you will not get confirmation of power on.

You need to see if your device report energy status in a "io" attribute or something like that, then you could write a computed attribute to "convert" that io status to "powerOn" alarm. But if your device doesn't report somehow when energy is restored, and if your device is not capable of customize that report, then traccar never will know when device energy is restored.

Greetings

tzana91a year ago

Hi,

Thank you for your reply
I understand now

BR

Tracking Faso9 months ago

Hello
@tzana91 i have same issu. How can solve it ?

tzana919 months ago

Hello ,

Unfortunately no