nitaybz / homebridge-http-multiswitch

MIT License
13 stars 13 forks source link

open/close switch #5

Open remko2000 opened 4 years ago

remko2000 commented 4 years ago

I try to use this plugin with a windowopener: The HTTP-commands I want to send: ' http://10.0.1.29/open' and ' http://10.0.1.29/close'

I set my json with: { "accessory": "HttpMultiswitch", "switch_type": "Switch", "name": "Axa remote", "http_method": "GET", "base_url": "http://10.0.1.29", "on_url": "/open", "off_url": "/close" }

But when I use my homebridgeswitch 'Axa remote' I get an error: 'setPowerState failed: connect ECONNREFUSED 10.0.1.29:80'

It seems like this plugin can't process an open/close command. Is this right an is it maybe possible to adjust this plugin with it? Or is there another homebridge plugin which supports this?

nitaybz commented 4 years ago

Seems like it can't reach that address... open and close should it be an issue

remko2000 commented 4 years ago

Indeed wrong IP; stupid, but.....stillI get errors: [2020-3-25 17:48:41] [Axa remote] setPowerState failed: socket hang up [2020-3-25 17:48:41] [Axa remote] response: undefined

Also give my switch ' no reaction' after clic on it. body: undefined

What can be the problem?