bytespider / Meross

Investigating the Meross/Refoss MSS310 Smart Plug and getting these devices to communicate with our private MQTT brokers
113 stars 19 forks source link

NTP queries from Meross Plugs #79

Closed onewheeler70 closed 10 months ago

onewheeler70 commented 10 months ago

I have successfully set up several meross plugs using your tool and instructions. Thanks for your efforts on this. I have blocked my meross devices from accessing the internet. I have Pi-hole running on the network. The result is that the Plugs ping pihole every few seconds for a long list of DNS domain names. The Meross plug will never be able to get to those name servers, so they sit in a loop constantly querying the Pihole server. Is there any way to configure this in the meross plugs so that they ping a local network time server instead? Thanks.

onewheeler70 commented 10 months ago

I have managed to fix this particular issue and will document here in case it is useful for others. I installed the following in a docker container on a Linux box that I have running 24/7 on my network:

https://github.com/cturra/docker-ntp

And then put in a Local DNS entry in Pihole to point pool.ntp.org to the IP address of the device running that docker container. The Meross plugs could get the time from that address, and are now quiet, reducing 3/4 of the requests to my Pihole instance.