Danimal4326 / homebridge-ecoplug

Homebridge plugin for the Eco Plug
MIT License
30 stars 15 forks source link

Thinking of adding a DENWELIS Eco Plug Transformer - any known issues? #22

Open scorpionmit01 opened 2 years ago

scorpionmit01 commented 2 years ago

I have a DENWENWILS Eco Plug controller for my pool - it works fantastic.

I am thinking of adding a DENWENWILS landscape light transformer https://www.amazon.com/DEWENWILS-Transformer-Compatible-Weatherproof-Landscaping/dp/B08HRJ16HF/ref=sr_1_2

I realize that it's not a tested device, just wondering if there is a known concern? Should I just be able to add it to my home network and it auto-magically shows up in Homekit/Homebridge?

cambalzer commented 2 years ago

Just bought a Dewenwils Transformer after reading that this plugin would "probably" work. Unfortunately it doesn't. Found this reddit post where the issue seems to be that newer devices don't respond in discovery mode:

"I added a second Eco Plug based device to my network. The older one, running v1.7.1 works fine. The newer one, running v2.5.2 works in the Eco Plugs app, but not on the Homebridge device.

I have attempted to recreate the broadcast discovery/response cycle in a dev environment. The newer device simply does not respond." https://www.reddit.com/r/homebridge/comments/tr6qrt/eco_plug_newer_devices_not_working/

Were you able to get it working @scorpionmit01?

lbouriez commented 2 years ago

Just bought a Dewenwils Transformer after reading that this plugin would "probably" work. Unfortunately it doesn't. Found this reddit post where the issue seems to be that newer devices don't respond in discovery mode:

"I added a second Eco Plug based device to my network. The older one, running v1.7.1 works fine. The newer one, running v2.5.2 works in the Eco Plugs app, but not on the Homebridge device.

I have attempted to recreate the broadcast discovery/response cycle in a dev environment. The newer device simply does not respond." https://www.reddit.com/r/homebridge/comments/tr6qrt/eco_plug_newer_devices_not_working/

Were you able to get it working @scorpionmit01?

I am in the same case, older version works, the newer doesn't. I was actually using the python version of the script and was hoping the node version could be the solution... Before to see your answer :(

Danimal4326 commented 2 years ago

Sorry everyone. I don't have any of the newer devices, so I can't debug or decode the new protocol.

Danimal4326 commented 2 years ago

If anyone can capture a wireshark dump between the app and the device , it might be useful

lbouriez commented 2 years ago

I tried with tPacketCapture (https://play.google.com/store/apps/details?id=jp.co.taosoftware.android.packetcapture)... but as soon as I start it, i dont see my switches in the eco plug app. I am not rooted, do you know how can i easily capture a dump of the traffic ?

Danimal4326 commented 2 years ago

When I was doing the initial discovery I used a wifi dongle on my computer set up in station mode. Connect the eco plugs to that network. Then I ran wireshark on the computer to grab all the packets.

Are your devices connected to the cloud? Make sure they are “local” only when you try

lbouriez commented 2 years ago

I will try all of that asap, need to buy a wifi dongle first. I will let you know

Danimal4326 commented 2 years ago

Some routers/ Wi-Fi base stations also let you do a tcp dump too via ssh access.

lbouriez commented 2 years ago

For the old switch, I get this

image

For the new one, I dont. From the app when I turn it off/on I get this:

image

When I open the app, only the first switch is answering to the boradcast:

image

But the second switch appears only in this trace:

image

Is it possible that the switch is now registering itself on the eco plug server and that the app is asking the server to get the device ?

Edit: I did it directly on the router instead of the ap and I got one more line:

image

And only these with the new switch:

image

Old switch is 192.168.10.115 New switch is 192.168.10.224 Phone is 192.168.10.146

Let me know if it helps

Danimal4326 commented 2 years ago

Looks like the new switch is only communicating with the cloud service.
cab you turn that off in the app??

lbouriez commented 2 years ago

I did, the last 2 screenshot were with the cloud disabled. I will retry tonight to reset it entirely and dump again.

Danimal4326 commented 2 years ago

Strange. What do you get when you issue a on/off command?

lbouriez commented 2 years ago

Will try tonight

Let me know if you have other things you wanna see

lbouriez commented 2 years ago

Hello, Sorry for the delay. I reseted the switch, cloud mode is disabled and now I get this:

image image

Do you need something else ?

For info: Phone is .123 Old switch is .115 New (not working) switch is .224

lbouriez commented 2 years ago

I also noticed something, in the app, when I open it, the new switch appears immediately while the old one needs like 1/2sec to appears.

Danimal4326 commented 2 years ago

I'll take a look later this week. been on vacation and catching up.

Danimal4326 commented 1 year ago

It looks like its communicating on new ports. Also I'm not seeing the discovery packets going out on your traces. They should be going out on port 9000

lbouriez commented 1 year ago

It's all I got :/

Danimal4326 commented 1 year ago

The old devices receive commands on port 80, Looks like new devices work on port 1022 and the protocol is different.

Can you try to capture a On and Off command being sent to the new switch?

lbouriez commented 1 year ago

I will check if I saved the trace, I unplugged everything since winter is already coming here in Canada...

scorpionmit01 commented 1 year ago

I'm in Florida. We don't have winter.

I've been following this very nominally. Tell me what you need and I'll do it.

Alex

On Thu, Sep 29, 2022 at 12:31 PM Laurent Bouriez @.***> wrote:

I will check if I saved the trace, I unplugged everything since winter is already coming here in Canada...

— Reply to this email directly, view it on GitHub https://github.com/Danimal4326/homebridge-ecoplug/issues/22#issuecomment-1262523427, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYN4VKOGHOQK72IEJYWO73WAW76ZANCNFSM5HGSEHGQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Book a meeting with me @.***>

Danimal4326 commented 1 year ago

I would need a Wireshark/TCP pcap of communication between your phone (or whatever device your run your app on) to the device. Ideally from a state where you have deleted the device, so that I can see the searching/pairing process. Then sending on and off commands, etc.