Hello there. I have created a JSON attribute containing an http agent link which returns a token from my Flask server, only when the parameter pollingMillis is used. However, I don’t want to continuously poll for a token. I have removed the pollingMillis and tried to use a When Then Rule to trigger instead, but I can’t get it to work. Is this even possible? Here is a screenshot of my rule:
Hi!
I remember doing these configurations myself with HTTP agents as well ![]()
At the time I was also wondering whether a “manual trigger” was supported.
I couldn’t find it back then, but there might be a way to make it work, I’m not sure…
@Rich or @Pierre any idea?
As a fallback I used “polling millis”, and use a long timespan of a month.
When I preferred a manual action, I just disabled and enabled the agent again.
Or, the most common solution, use Rules to automate it that way.
Hope this helps!
Hi Martin,
Thanks for the suggestion about disabling and enabling the agent. Would be nicer if there was a better way to do this - like adding a new parameter to the agent link that would support a boolean trigger. Or if someone knows how the agent link executes from pollingMillis, then could use groovy rules to make it work.
Thanks!
