mihailescu2m / homebridge-airtouch4-platform

Homebridge plugin for Airtouch4 AC Controller
6 stars 8 forks source link

Homebridge Crashing on Restart #6

Open geniejeanes opened 4 years ago

geniejeanes commented 4 years ago

Hi guys,

Looking forward to get this working, after I added in the below script into my config file, I get a SIGTERM fault which shuts down Homebridge. Can anyone see what I am doing wrong? I haven't added in the accessories / zones as I wasn't sure where to insert them.I am running home bridge V1.0.4. One other thing to note is I am trying to get this to work with Airtouch3.

Error: connect ECONNREFUSED 192.168.69.21:9004 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14) [5/2/2020, 6:48:20 PM] [Airtouch] API | Disconnected from Airtouch [5/2/2020, 6:48:20 PM] Got SIGTERM, shutting down Homebridge...

{ "platform": "Airtouch", "name": "Airtouch", "ip_address": "192.168.69.21", "ac_include_temps": false, "units": [ { "manufacturer": "Samsung", "model": "?", "fan": [ "Auto", "Low", "Med", "High" ] } ] }

Thanks. Gareth

mihailescu2m commented 4 years ago

Looks like it cannot connect to the Airtouch. Assuming the IP address is correct, maybe Airtouch3 is using a separate port? Also I am not sure the protocol is the same...

On 2 May 2020, at 6:24 pm, geniejeanes notifications@github.com wrote:

 Hi guys,

Looking forward to get this working, after I added in the below script into my config file, I get a SIGTERM fault which shuts down Homebridge. Can anyone see what I am doing wrong? I haven't added in the accessories / zones as I wasn't sure where to insert them.I am running home bridge V1.0.4. One other thing to note is I am trying to get this to work with Airtouch3.

Error: connect ECONNREFUSED 192.168.69.21:9004 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14) [5/2/2020, 6:48:20 PM] [Airtouch] API | Disconnected from Airtouch [5/2/2020, 6:48:20 PM] Got SIGTERM, shutting down Homebridge...

{ "platform": "Airtouch", "name": "Airtouch", "ip_address": "192.168.69.21", "ac_include_temps": false, "units": [ { "manufacturer": "Samsung", "model": "?", "fan": [ "Auto", "Low", "Med", "High" ] } ] }

Thanks. Gareth

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

geniejeanes commented 4 years ago

Hi @mihailescu2m, Thats what I was thinking, possibly using a different port? Any thoughts on where I could get the port number from? For the protocol, what else could it be from Ethernet/IP? Cheers Gareth

geniejeanes commented 4 years ago

Hi @mihailescu2m, I tried seeing if I can set the port myself within the IP address variable. Doesn't seem to work as it tries to connect to my IP address:9000:9004. Seems there is some traffic on port 9000 and 9003. Is there an option to maybe have the port as a variable rather than in your program pre-specifying the port? Any thoughts welcome. Thanks G.