I’m developing a plugin wich can detect the presence of an device and missed calls via an Easybox 904x router.
https://github.com/Xento/pimatic-easybox
Device detections works for now, and notifying of new calls works, too.
But I want the possibility to send who as called for example via pushover.
When I save this information into some attributes, than only the last call will win and you will get multiple notifications with the same information.
What can I do or isn’t it possible?
-
Predicate with arguments
-
Not a very elegant solution. But you could do the following:
- Use a attribute like
missedCallsList
where you keep all missed calls, so if a new missed call is detected, its added the string value of the attribute. - Add a action
clearMissedCalls
to you device that sets themissedCallsList
to an empty string.
You can now use the missedCallsList attribute in a rule and call
clearMissedCalls
with a ActionProvider after you send the push notification. - Use a attribute like