rudders / homebridge-http

HTTP Plugin for Homebridge
Apache License 2.0
178 stars 110 forks source link

Zeptrion Air #89

Open christianmeier opened 6 years ago

christianmeier commented 6 years ago

Hi I'm trying to control my Zeptrion Air switches by http. I can successfully control them by Restful client

Could some please give me an example how to set up the json file correctly? Any help on this is appreciated Chris

POST Example: Resource URL http:///zrap/chctrl/ch1 Body Data cmd=on

My current config file wich does not work. { "accessory": "Http", "name": "Kitchen", "on_url": "http://11.11.11.11/zrap/chctrl/ch1", "on_body": "{cmd=on}", "on_url": "http://11.11.11.11/zrap/chctrl/ch1", "off_body": "{cmd=off}", "sendimmediately": "", "username": "", "password": "", "http_method": "POST " }

Post Body

cmd stop stop dimming lights or moving blinds cmd on switch light on (100%) cmd off switch light off (0%) cmd toggle toggle light command on to off or off to on cmd dim_up dim light up (use stop to hold) cmd dim_down dim light down(use stop to hold) cmd close close shutters cmd open open shutters cmd move_close move shutters to close (use stop to hold) cmd move_open move shutters to open (use stop to hold) cmd recall_s(n) recall scene (n 1-4) cmd store_s(n) store scene (n 1-4) cmd delete_s(n) delete scene (n 1-4) cmd dimup(t) dim light up and stop after time (t) (t = 100–32000 milliseconds) cmd dimdown(t) dim light down and stop after time (t) (t = 100–32000 milliseconds) cmd moveopen(t) move blind and stop after time (t) (t = 100–32000 milliseconds) cmd moveclose(t) move blind and stop after time (t) (t = 100–32000 milliseconds) cmd dim_(t) dim light and stop after time (t) (t = 100–32000 milliseconds)

RogerB1964 commented 3 years ago

Found a solution? I'd be interested as well