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

Offline Event/Payload #40

Closed GeerGuy closed 3 years ago

GeerGuy commented 3 years ago

It would be nice if when a device goes offline there was an event or payload to indicate it.

hufftheweevil commented 3 years ago

Just subscribe to OnlineEvents using the startOnlineEvents payload on input. That will emit for both online (in which case the output payload will be true) and offline (where the output payload will be false).

GeerGuy commented 3 years ago

Can't believe I missed that one. Thanks

hufftheweevil commented 3 years ago

No worries!