softScheck / tplink-smartplug

TP-Link WiFi SmartPlug Client and Wireshark Dissector
Apache License 2.0
1.14k stars 296 forks source link

Broadcast state changes #59

Open berkinet opened 5 years ago

berkinet commented 5 years ago

Mostly thinking out loud here... Does anyone know if the tplink smart plug can automatically broadcast or send changes in relay_state or must it be queried? I don't see any snmp trap support and no place to enter an IP Address for a remote receiver. So, it appears this may not be possible. OTOH, perhaps there is a way to create a local "cloud server" and maybe that might work.

berkinet commented 5 years ago

No joy on this so far. It looks like the best I could do is to try and redirect the phone-home packets to a local listener and use packet reception as a trigger to do a status update. Thoughts?

grayerbeard commented 4 years ago

I would just put an R Pi Zero on the network set to poll periodically and resend wherever wanted.