Maintenance Notifications

juanmales10 months ago

Hello, I'm having some problems receiving maintenance notifications.
The procedure I follow is:

  1. I register the maintenance. For example:
    {
    type: odometer,
    start: 100 km,
    period: 1km
    }
    to do the test.
    It is created correctly.
  2. I assigned it through /permissions to some device.
    This is assigned correctly.
  3. I created the notification with web and email notifiers and assigned it to a device. Everything correct and verified.
  4. I have a device with the odometer at more than 100 km (much more), and I should receive a notification every km, right? I don't get anything, and in the event log (/reports/events), I don't see the event either.

Would I be missing something?
Thank you

Anton Tananaev10 months ago

Does your device actually report odometer value?

juanmales10 months ago

No, I didn't see that in the documentation. Do I have to map totalDistance from position to an attribute that is odometer within device?

Anton Tananaev10 months ago

Why not use total distance directly?

juanmales10 months ago

Okay, I wasn't understanding how it worked. The maintenance type refers to the attribute it evaluates. Now they work for me. Thanks a lot.