Hey guys. I’ve been using pimatic for about a year now but never really joined this forum to share thoughts and get input. Well… the time has come today.
I’m a big fan of the Pushbullet plugin. I use it to get updates about the temperature in the different rooms and to remind myself to open the windows at night when the outside temperature falls below the inside temperature.
I’d now like to improve the plugin and add PredicateProvider & PredicateHandler so I can actually write rules to work with incoming Pushbullet messages. e.g. with a predicate of “push turn off all lights” that triggers an action to turn off all lights… or a “push heat up” to turn up the radiators before coming home. This would be slightly more convenient than using the browser interface, especially for actions that are needed more regularly.
My first thought would be to look at the push history with a limit of 1.
Does that make sense? Is this technically feasible or am I missing anything?
I started on a new branch of the plugin, but I’m getting stuck because setMessage() doesn’t work for some reason. Before spending too much time debugging this, I just wanted to make sure I’m on the right path with the overall idea because I haven’t done any pimatic development so far.
Any feedback welcome - what do you think? Is there a smarter way to achieve what I’m trying to do?
Thanks for your input!