subzero79 / node-red-contrib-tuya-local

NodeRED node to control tuya devices locally. Based on tuyapi module
29 stars 17 forks source link

Plugs and internet access #13

Open NameLessJedi opened 5 years ago

NameLessJedi commented 5 years ago

Hi, this is more of a question than issue, but could you all, please, try to cut off the plug off the net and see if you can still control the plug and get volt, amps, watt readouts? (all my plugs got new firmware) TIA

subzero79 commented 5 years ago

I tested that before I did the node. Iirc I blocked all WAN access to the sockets and i couldn’t connect any more to them locally. As I understand fw updates don’t initiate by themselves in the devices are triggered through the app, I tested blocking returning dns localhost to some of the tuya domains and sockets were still controllable. I think the devices send their status updates and receive remote commands through mqtt.

subzero79 commented 5 years ago

I can try later a more fine block instead of reject, use block. Maybe block the mqtt domain instead of tcp block.