Open olalonde opened 2 years ago
Getting the same error. return tidyMac(device.mac) == tidyMac(mac); }).ip]; ^
TypeError: Cannot read properties of undefined (reading 'ip') at app\node_modules\tp-link-tapo-connect\dist\network-tools.js:52:56 at step (app\node_modules\tp-link-tapo-connect\dist\network-tools.js:33:23) at Object.next (app\node_modules\tp-link-tapo-connect\dist\network-tools.js:14:53) at fulfilled (app\node_modules\tp-link-tapo-connect\dist\network-tools.js:5:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Had the same issue and my problem was with ARP. I am using a WiFi to LAN Bridge in my case which is not transparent, so it was not able to find the correct MAC address. As no non-null assertion is made, you get this error.
Feedback could be better, but the actual problem probably has to do with your ARP setup. Are you running inside Docker?
Any workaround for this issue? I am also trying to run the script from an external network. If I run it from the same network as the smart plug is conected, it works fine.
Thanks!
I'm getting this error when running the example:
The device is on a remote network.