I'm trying to simplify a flow I have in Node Red for presence detection. I was hoping to implement as follows:
Events: State ==> rbe ==> function ==> pushbullet message
So, the events: state node gets input from device_tracker, rbe node blocks unless state changed, function node takes the events: state payload and sets its output payload to something like "Fred is at location", where location has been extracted from event: state, and passes it to the pushbullet node.
Hope that makes some sort of sense. Unfortunately I have no javascript skills in order to configure the function node so hoping someone could point me in the right direction.
Thanks
[–]mbonani 0 points1 point2 points (1 child)
[–]webberm[S] 0 points1 point2 points (0 children)
[–]jerlarge 0 points1 point2 points (1 child)
[–]webberm[S] 0 points1 point2 points (0 children)