Hi Joe,
Thanks for your reply.
I have tried doing what you suggested, but the problem is that, apparently, the watch remembers its last status before it was deactivated. So, it works great the first time it runs, but then the status is frozen on "Violated" and the script is no longer executed, even after the Watch is deactivated and activated. Code below:
update action=0x480004 watch=0xffff0019 mh=$dev_mh
update action=activate watch=0xffff0019 mh=$dev_mh
I have looked for ways for forcefully change the Watch Status but couldn't find one. The other option would be to change the control attribute, wait (sleep) for the watch to poll and change to Active, then set the attribute back to the alarming value. But the problem is that if the poll is set to happen each 30 mins, the script will be hanging for all this time.
Are you aware of any action code that could reset the status and force the watch to poll?
Best regards,
Marcelo