I try to achieve the following radio-controlled based presence scenario:
- when radio signal is received, I trigger an automation to:
– set an input_text to the time-stamp until this presence signal should expire (e.g. now() + 4 mins)
– set an input_boolean to on
– wait 5 mins
– check if the input_text value is less than now()
– if so, set the input_boolean to off.
In an ideal case, if item is present it should send a radio signal every 3min or so.
My problem is that in case of presence, I can see in the logs that the second automation was triggered, but the actions part is not invoked (thus the input_text value is not updated).
Seems like it waits until the first invocation of the automation finishes. The documentation also says something like that.
I changed the automation to invoke a script instead (starting from the wait actions) in the hope that the script part is run somehow in the “background”, thus the automation is considered finished. But unfortunately it still waits.
If I define another automation to trigger on the same condition to stop the script there will be a race condition between the automations, which is not relaible, thus not a good solution.
Any idea on how should such a scenario be implemented?
Thanks in advance!