snowdd1 / homebridge-knx

KNX platform shim for homebridge
https://github.com/nfarina/homebridge
GNU General Public License v2.0
97 stars 55 forks source link

WindowCovering #120

Closed furiaceka87 closed 6 years ago

furiaceka87 commented 6 years ago

Hi, I've just set up Homebridge-knx and everything is working good talking about lightbulb, when I tried to configure the WindowCovering I found some issue. here below my configuration:

{ "ServiceType": "WindowCovering", "Handler": "GiraJalousieActuator", "ServiceName": "Office blinds", "Characteristics": [ { "Type": "TargetPosition", "Set": [ "1/1/5R" ], "DPT": "DPT1" }, { "Type": "CurrentPosition", "Listen": [ "1/4/5R" ] }, { "Type": "PositionState" } ] }

I think that the problem is that in my KNX configuration the commands sent to windowcovering are BOOLEAN "On" or "Off" as you can see on the attached image:

schermata 2018-06-14 alle 20 48 54

When I sent command by homekit I have percentage command to open and close instead that boolean commands:

schermata 2018-06-14 alle 20 47 46

and nothing happened...

Do you have any suggestion?

furiaceka87 commented 6 years ago

I solved the previous issue. Now I am able to write the percentage value and move correctly the Window Covering, the new issue is that inside Apple homekit when I opened the WindowCovering, they remain always and indefinitely in "opening...." status.

My config is:

{ "ServiceType": "WindowCovering", "Handler": "GiraJalousieActuator", "ServiceName": "Porta Sala", "Characteristics": [ { "Type": "TargetPosition", "Set": "1/3/5" }, { "Type": "CurrentPosition", "Listen": "1/4/5" }, { "Type": "PositionState" } ], "KNXObjects": [ { "Type": "ShutterMove", "Listen": "1/1/5", "DPT": "DPT1" } ], "KNX-ReadRequests": [ "1/4/5", "1/3/5" ] },

and the log is:

[homebridge-knx.KNX] GiraJalousieActuator->customServiceAPI.getValue(CurrentPosition) Jun 18 17:33:23 raspberrypi homebridge[9222]: [6/18/2018, 5:33:23 PM] [homebridge-knx.KNX] Returning HomeKitValue Jun 18 17:33:23 raspberrypi homebridge[9222]: [6/18/2018, 5:33:23 PM] [homebridge-knx.KNX] Returning HomeKitValue of 0 Jun 18 17:33:23 raspberrypi homebridge[9222]: [6/18/2018, 5:33:23 PM] [homebridge-knx.KNX] GiraJalousieActuator->customServiceAPI.setValue(PositionState,1) Jun 18 17:33:23 raspberrypi homebridge[9222]: [6/18/2018, 5:33:23 PM] [homebridge-knx.KNX] GiraJalousieActuator->customServiceAPI.knxWrite(TargetPosition,0,DPT5)

furiaceka87 commented 6 years ago

Solved