Call Utility Option for Invert Custom Script needed

Hi Guys

Im doing some research and have specific requirements I need to achieve, I have bought a TRB141, I have set up SMS utility so I can Text Lighton or Lightoff for the device to trigger the relay to turn the light on and off. I also need to be able to call the device and trigger the relay and be able to call the device again form the same number and trigger the relay to turn off. In the call utility options the only options are to open and close the relay no invert, the reason I say this is because in Event juggler there is an action to invert the relay which seemed weird, I have tried to link a incoming call action to trigger a event juggler action but nothing links to the event juggler from the call utility,

The reason I need help is to possible make a script the can be inserted that will achieve my goals. I any one able to help me do this as I’m a novice at scripting. From Speaking to Teltonika support they think It might be possible for the script to look at the logs then when it see a log for a incoming call then it would us If statement to look at the current state of the relay and switch it from open to closed or closed to open.

If the script isnt instant that isnt a problem but would need to trigger with 15 seconds or so.

I appreciate this is a big ask and help is very appreciated.

If anyone from Teltonika is reading this could you add the option for invert in to the relay in call utility, that would be great!

Hi there,

I’ll analyze your query and will get back to you as soon as possible.

Regards,
M.

Hello,

Apologies for the wait.

Regarding your inquiry, the current design - allowing the Digital Input to be set only to ON or OFF - is intentional and is expected to remain unchanged. That said, I can forward this as a feature request to our R&D team for consideration, particularly if we receive similar feedback from other clients.

With respect to the scripting aspect, please note that we, Teltonika Support, do not provide custom script development, as it falls outside our scope. However, you are welcome to make use of external resources such as ChatGPT, StackOverflow, and similar tools or communities for guidance.

You may also find the following documentation helpful, as it includes commands that can be used within your custom script:

These commands allow you to read relay states and modify them based on specific conditions or events.

Regards,
M.

This topic was automatically closed after 60 days. New replies are no longer allowed.