Hello,
Are you reading the temperature data from an external modbus sensor, or directly from the TRB device itself?
While the modbus alarms functionality can send an SMS alert when a configured temperature threshold is exceeded, it unfortunately cannot include the live temperature value in the alert by default.
To achieve this, custom scripting would be needed. As this is beyond my scope, I can only provide you with suggestions/insights on how the setup could look. The script should:
- Read the temperature register from the Modbus server using a command like
ubus call
. Discussed relevant threads:
- TRB140 modbus communication
- Ubus call modbus_client not working anymore
- TRB 140 and PLC data exchange - #2 by Sigismundus
- Save the output in a variable.
- Compare the value against your threshold.
- If the condition is met, send an SMS message with
gsmctl
, embedding the actual temperature value.
You can find more information and guidance for creating custom scripts in our wiki article here:
Best regards,