You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WindowCovering was not working for me. I get the message "Could not add home" in the home app. commenting out following lines in WindowCoveringService solved the issue
/**
addCharacteristic(new HoldPositionCharacteristic(windowCovering));
I'm also observing this; when I include a MockWindowCovering in the sample app, things fail horribly. It breaks the pairing and I have to delete the pairing info and start over with the sample app. It's really a catastrophic failure, and really quite weird.
Seems like one of the characteristics is misconfigured; I've stripped it back to the required characteristics, and it works; timcharper@97de9aa
Hmm, can you post your code here. I think I have the minimal code, but the problem still exists.
in class WindowCoveringService i commented out following lines
/*
addCharacteristic(new HoldPositionCharacteristic(windowCovering));
addCharacteristic(new ObstructionDetectedCharacteristic(() -> windowCovering.getObstructionDetected(),
c -> windowCovering.subscribeObstructionDetected(c),
() -> windowCovering.unsubscribeObstructionDetected()));
Any news on window coverings? I have horizontal tilting window coverings. HorizontalTiltingWindowCovering extends WindowCovering. WindowCovering is deprecated.
I still have no idea why HoldPositionCharacteristic is causing this.
Problem is that the characteristic is write only.
Homekit complains:
"Non-readable characteristics must not contain 'value' key".
The problem is in BaseCharacteristic -> makeBuilder
Activity
yfre commentedon Jan 22, 2019
here the json part generated for accessories that make home app to stop to work
timcharper commentedon Jan 28, 2019
I'm also observing this; when I include a MockWindowCovering in the sample app, things fail horribly. It breaks the pairing and I have to delete the pairing info and start over with the sample app. It's really a catastrophic failure, and really quite weird.
timcharper commentedon Jan 28, 2019
Seems like one of the characteristics is misconfigured; I've stripped it back to the required characteristics, and it works;
timcharper@97de9aa
jrburk commentedon Feb 5, 2019
Hmm, can you post your code here. I think I have the minimal code, but the problem still exists.
yfre commentedon Feb 6, 2019
in class WindowCoveringService i commented out following lines
/*
addCharacteristic(new HoldPositionCharacteristic(windowCovering));
addCharacteristic(new ObstructionDetectedCharacteristic(() -> windowCovering.getObstructionDetected(),
c -> windowCovering.subscribeObstructionDetected(c),
() -> windowCovering.unsubscribeObstructionDetected()));
if (windowCovering instanceof HorizontalTiltingWindowCovering) {
addCharacteristic(new CurrentHorizontalTiltAngleCharacteristic((HorizontalTiltingWindowCovering) windowCovering));
addCharacteristic(new TargetHorizontalTiltAngleCharacteristic((HorizontalTiltingWindowCovering) windowCovering));
}
if (windowCovering instanceof VerticalTiltingWindowCovering) {
addCharacteristic(new CurrentVerticalTiltAngleCharacteristic((VerticalTiltingWindowCovering) windowCovering));
addCharacteristic(new TargetVerticalTiltAngleCharacteristic((VerticalTiltingWindowCovering) windowCovering));
}
*/
jrburk commentedon Feb 6, 2019
Thank you. Now it's working for me too...
Remove HoldPositionCharacteristic from window covering
Allow WindowCovering to be used without optional characteristics
Allow WindowCovering to be used without optional characteristics
Allow WindowCovering to be used without optional characteristics
timcharper commentedon Feb 18, 2019
I've narrowed it down to
HoldPositionCharacteristic, FYItimcharper commentedon Mar 9, 2019
@jrburk I still have no idea why HoldPositionCharacteristic is causing this. The latest release will use BasicWindowCovering, in the meantime.
sobeos commentedon Jul 25, 2019
Any news on window coverings? I have horizontal tilting window coverings. HorizontalTiltingWindowCovering extends WindowCovering. WindowCovering is deprecated.
sobeos commentedon Jan 2, 2020
Problem is that the characteristic is write only.
Homekit complains:
"Non-readable characteristics must not contain 'value' key".
The problem is in BaseCharacteristic -> makeBuilder
sobeos commentedon Jan 2, 2020
Looks like
if (isReadable) {
setJsonValue(builder, value);
}
is fixing the problem.
timcharper commentedon Jan 2, 2020
Great find! Would you mind opening up a pull request?
Fix for WindowCovering not working hap-java#56
yfre commentedon Jun 10, 2020
fixed in #101