To set up a low "Power" attribute notification in Traccar for your Teltonika device, you can follow these steps:
1. Create a Computed Attribute
A computed attribute allows you to dynamically monitor the "Power" value and trigger an alarm when it falls below a certain threshold.
- Go to the Computed Attributes section in Traccar.
- Create a new computed attribute with the following details:
This expression will set the attribute to "lowPower" when the voltage drops below the specified value, and null otherwise[1][2][8].
2. Test the Computed Attribute
- Use the Test feature in the Computed Attributes section to verify that the expression works correctly with your device's data.
- Ensure that the "Power" attribute is actively reported by your Teltonika device. If not, check the device configuration or protocol settings[4][8].
3. Configure Notifications
Once the computed attribute is set up, you can configure notifications to alert you when the "lowPower" condition is triggered.
- Go to the Notifications section in Traccar.
- Create a new notification:
- Type: Select "Alarm" or "Attribute".
- Event: Choose the computed attribute (e.g., "lowPower").
- Channels: Configure the notification channels (e.g., email, SMS, or push notifications).
- Link the notification to the relevant device(s) or group(s).
4. Optional: Hysteresis for Stability
If you want to avoid false alarms due to temporary voltage drops (e.g., during engine start), you can implement a hysteresis mechanism. Unfortunately, Traccar does not support hysteresis natively, but you can manage this by integrating with external tools like Zabbix or by using custom scripts[2][3].
5. Verify and Monitor
- Ensure that the notification system is working by simulating a low-power condition.
- Regularly monitor the device's "Power" attribute to ensure accurate reporting.
By following these steps, you can effectively set up a low-power notification system for your vehicle's lead-acid battery using Traccar and your Teltonika device.