yangqian / hass-cozylife

third party cozylife integration
MIT License
66 stars 14 forks source link

python3 getConfig.py 192.168.1.2 192.168.254.254 not returning anything. #29

Open KristopherPeterson opened 7 months ago

KristopherPeterson commented 7 months ago

Hello,

I'm very new to Raspi and I'm trying to setup some Cozylife smart plugs that I got recently to add to HA.

I've installed getConfig using "pip install getconfig' and then I navigate to the directory that it installs to: pi@raspberrypi:~/.local/lib/python3.9/site-packages/getConfig

I run the command "python3 getConfig.py 192.168.1.2 192.168.254.254" but nothing is returned, and no warnings or errors.

What am I doing wrong? I have the plugs detected and working in the Cozylife app.

vokomarov commented 5 days ago

Try modifying getconfig.py file by increasing connection timeout. Line 30, change to

    a = tcp_client(ip, timeout=1)

It helped me.