-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ubisys J1 to lights with states on and bri. #727
Conversation
…rue/false } triggers J1 to moveDown/Up. Sending PUT { "bri": "stop" } triggers a stop command. Sending PUT { "bri": <value> } triggers to move to lift percentage.
I think it would make more sense to send Just to double-check: lift percentage 0 should match off (which means closed?), so setting |
I have added Sending Together with homebridge-hue the J1 is shown in HomeKit always being switched off. Pressing the button would therefore close the shutter. The brightness level allows to move to tilt percentage. For now a usable workaround. |
I’ll see if I can expose the J1 as a HomeKit shutter or something in homebridge-hue. |
HomeKit distinguishes between current position and target position of the shade. I suppose with the right attribute reporting settings, the J1 reports back the actual position during movement? At least, that's what my D1 does while dimming slowly. @ma-ca can you check with |
@ebaauw, the J1 does, when configured accordingly, continuously report the lift percentage during movement. Cluster So the |
I think it's needed. The alternative would be to configure a timeout and assume the motion has ended when the timeout occurs. I have no clue how to determine the length for this timeout, as it will depend on the height of the shutters and the speed of the motor. Is |
Then I will create a new PR that updates the At the moment, no matter what the current position is, in HomeKit the commands "Hey Siri, on / off / 70%" does move the shutter to the positions fully closed/open/70% just like any dimmable light. A second later in HomeKit the J1 is shown off 0% still while the shutter is moving to the desired position. |
@ma-ca, @ebaauw - thanks for your work! If you have a chance, it would be very helpful if also tilt state could be implemented somehow in the temporary REST API (setting and attribute reporting), but as the other light attributes (hue, sat, xy, ct) seem to all interact with each other somehow, there might not be a simple solution for that. Unfortunately, my time is very limited at the moment (and my CPP knowledge also far from great), so I won't have a chance to contribute much here currently (apart maybe from testing). |
Add ubisys J1 to
/lights
with states on and bri. SendingPUT { "on": true/false }
triggers J1 to moveDown/Up. SendingPUT { "bri": "stop" }
triggers a stop. SendingPUT { "bri": <value> }
triggers move to lift percentage. The moving to lift percentage only works for calibrated J1. Moving up/down/stop always works.The J1 is a shuttering device (window covering). Adding the J1 device to lights is just a temporary workaroud and will be fixed later when generic endpoint devices becomes available.