mdopp / simple-sonoff-server

Emulates the original sonoff-cloud-servers within your local network.
BSD 2-Clause "Simplified" License
144 stars 47 forks source link

Sonoff POW halfway #35

Open betyar opened 6 years ago

betyar commented 6 years ago

I have tried to register a Sonoff POW but have only succeeded halfway, that is, the device registers with my WiFi network but not with the server. I have tried setting up the device using both the manual method and the sonoff.setupdevice.js script, both appeared to work as they should, yet in the end the device fails to connect to the simple-sonoff-server. I can see the POW device on my network and the server appears to work because I can query it using curl (it returns nothing because nothing is registered) and I can even telnet to it. For some reason the POW is unable to connect to the server but apparently it's trying because the LED constantly blinks twice and repeats which, according to ewelink, means that the device failed to connect to the server because of a network interruption or the DNS can't resolve the address. Other problems mentioned are the following: unable to connect to the Internet, bandwidth occupied, more than one router with the same SSID, more than one DHCP server on the network, ARP attacked, firewall settings, DNS server inaccessible, IP address conflict. Some of these are inapplicable since I am connecting to the simple-sonoff-server on my LAN. I have checked other possibilities (such as the firewall, DHCP, and IP conflict) but everything is set up properly. Finally, because the server is running and I can connect to it via telnet or curl, I don't think any of the other remaining issues can be the problem unless for some reason the registration process doesn't work for the POW and that the device is still trying to connect to the ewelink server instead of the simple-sonoff-server.

Any ideas?

scycer commented 5 years ago

Same here, server works, device setup script also works but now does the double flash.

FYI - Sonoff POW R2

neomvll commented 5 years ago

Hi, I have a question. After config the sonoffs and server, I'll keep getting on/off and check status from eWeLink if I need? I dont have fixed Ip or even my ISP dont let me have a free dynamic IP, so I'll need ewelink when I'm way from my house or if my local server is down for any reason. Another question is the server works with lastest firmware(2.6)? Thanks

mdopp commented 5 years ago

@neomvll No that wont work. The whole purpose is to decople it from the cloud

neomvll commented 5 years ago

@neomvll No that wont work. The whole purpose is to decople it from the cloud

Ok, china servers is a shit anyway :) . So I'll command only from my house, I can deal with that. More 2 questions: 1 - Works with last firmware? 2 - All sonoff compatible or do you have any list?

thanks :)

mdopp commented 5 years ago

Nope, they have closed the door in the later versions.

neomvll commented 5 years ago

Nope, they have closed the door in the later versions.

fuck! my 2 sonoff rf come with 2.6