caseyjhol / node-red-contrib-tplink

A collection of Node-RED nodes for TP-Link Smart Home devices
https://www.npmjs.com/package/node-red-contrib-tplink-iot
MIT License
16 stars 15 forks source link

disable output message for control input #61

Open y8s opened 2 years ago

y8s commented 2 years ago

Is your feature request related to a problem? Please describe. When using the node with other services I tend to get infinite looping because when the TP-Link node receives a message to change the state, it outputs the result (when startPowerEvents is active).

Describe the solution you'd like Ideally I could see power state change output only when the device is directly controlled (button on it or via the Kasa app). That would update my flows when it changes but not cause loops when the input changes the state.

Many other nodes have this functionality or some other method to prevent passing input to output.

Describe alternatives you've considered I haven't figured out a robust solution yet, but it probably involves a trigger node.

normanr commented 1 year ago

If you change the output payload type to none, then then output event payload will not be set, and you can filter them out.