dxdc / homebridge-blinds

:sunrise: Homebridge Plugin to control my blinds over HTTP
https://www.npmjs.com/package/homebridge-blinds
ISC License
54 stars 25 forks source link

Receive state of a given blind accessory via webhook #52

Closed genfersee closed 3 years ago

genfersee commented 3 years ago

Hello! I have set a webhook port for one of my blind accessories: "webhook_port": 51828 and I am able to make the blind to switch UP in Home app when calling the url http://192.168.33.43:51828/?pos=100

But I have 4 blinds and I want to be able to change their state 1 by 1 via the webhook. Can I address a given blind via some extra parameter in the url? Should I set the same webhook port to the 4 blind accessories?

Thanks in advance! Genfersee

genfersee commented 3 years ago

I have set 4 different webhook ports: 1 for each config of each blind. I am now able to have it work for each blind separately. Is that the correct way to do?

dxdc commented 3 years ago

@genfersee yes, that's correct. Each instance defines a new "accessory", which has no way to interact with other accessories, which is why it needs its own port.

genfersee commented 3 years ago

Many thanks!! It works perfect! Great plugin!