-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[miio] Correct channel ambientBrightness to type Dimmer for Yeelight Screen Light Bar #13554
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @michiii1337
I recognize the issue with the dimmer vs number. I recall the problem is that I wanted to make it 2 ways, meaning that setting the dimming level in the app is also reflected in the dimming level in OH. As the device reports the level in whole number I believe it did not work well which is why I made it a number.
Can you test on your end and confirm that setting the dimming level via the app is properly reflected in OH.
If not, we prob need to add some calc to multiply/divided by 100... which is nowadays supported by the binding so I expect doable.
Also would be great to check some of the other yeelights if you have a chance for the same matter.
Lastly, once we have confirmed it all working right, please run the readme maker (in the test folder) to update the readme documentation accordingly.
I tested the dimming level via app and openhab. When the datatype is set to Dimmer, both in Xiaomi Home app and Openhab is the same/correct value. Unfortunately, I have no other Yeelights so I can only test this type. |
the readme is now up to date. Hope I did everything right as this is my first pullreqest. |
I think code wise it is fine. There is a commit signoff issue with 2 of the commits. You can try to 'squash' in eclipse and update the the commit comment to include the signoff-by (like you did in your last commit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! There seem to be some character set issues that would need to be resolved, and also the DCO check must pass.
bundles/org.openhab.binding.miio/src/main/resources/OH-INF/i18n/basic.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.miio/src/main/resources/OH-INF/i18n/basic.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.miio/src/main/resources/OH-INF/i18n/basic.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.miio/src/main/resources/OH-INF/i18n/basic.properties
Outdated
Show resolved
Hide resolved
I fixed the characters in the readme. How can i fix the DCO? I can not edit the 3 commits without my sign. |
You can try to 'squash' in eclipse and update the the commit comment to include the signoff-by (like you did in your last commit) |
i tried already to squash the commits but i received a error message: "Unable to squash. Squashing replays all commits up to the last one required for the squash. A merge commit cannot exist among those commits" |
You could try to click "Details" in the DCO check line and follow the steps described, or you could have a look at this: |
changed Datatype form "Number" to "Dimmer" at channel "ambientBrightness" same issue openhab#9936 (but already fixed) Signed-off-by: Michi <michael.schmidts@online.de>
i followed the instructions under "Details" and now the DCO failed again... is it easier to start from zero and make an new PR? |
Maybe what's working is to do first a rebase, than I think it will allow you to do the squash. |
i have done a rebase and i got the same error message when i try to squash |
ok, now i have done a rebase. before that i seem to have done only a merge. Sorry for the many questions and problem in the PR I am still learning. Hope now the commits can be merged. |
I'm sorry, but that did no go well, as there are now changes from other bindings included. Perhaps at this point it would be best to:
|
my branch is "main". if i delete this branch how should i create new branch from main? |
Ah, sorry, I didn't see that. Assuming your fork is new and you don't have other branches to keep, for this PR I would adapt the plan to:
I don't know if it will work, but it might be worth a shot. After that, I would then suggest to recreate the fork again, and make sure you don't commit anything to main, as it will most likely cause problems for you. Instead you should create a new branch, and use this when creating a PR. |
It looks like only 1 commit is wrong. You can also just remove that one commit. Use |
Signed-off-by: Michael Schmidts michael.schmidts@online.de Signed-off-by: Michi <michael.schmidts@online.de> Signed-off-by: Michael Schmidts <michael.schmidts@online.de>
Signed-off-by: Michael Schmidts michael.schmidts@online.de Signed-off-by: Michi <michael.schmidts@online.de> Signed-off-by: Michael Schmidts <michael.schmidts@online.de>
Signed-off-by: Michael Schmidts michael.schmidts@online.de Signed-off-by: Michael Schmidts <michael.schmidts@online.de>
Signed-off-by: Michael Schmidts michael.schmidts@online.de Signed-off-by: Michael Schmidts <michael.schmidts@online.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
* Update yeelink.light.light15.json changed Datatype form "Number" to "Dimmer" at channel "ambientBrightness" same issue openhab#9936 (but already fixed) Signed-off-by: Michi <michael.schmidts@online.de>
* Update yeelink.light.light15.json changed Datatype form "Number" to "Dimmer" at channel "ambientBrightness" same issue openhab#9936 (but already fixed) Signed-off-by: Michi <michael.schmidts@online.de>
* Update yeelink.light.light15.json changed Datatype form "Number" to "Dimmer" at channel "ambientBrightness" same issue openhab#9936 (but already fixed) Signed-off-by: Michi <michael.schmidts@online.de>
* Update yeelink.light.light15.json changed Datatype form "Number" to "Dimmer" at channel "ambientBrightness" same issue openhab#9936 (but already fixed) Signed-off-by: Michi <michael.schmidts@online.de>
changed Datatype from "Number" to "Dimmer" at channel "ambientBrightness" same issue #9936 (but already fixed)
Signed-off-by: Michael Schmidts michael.schmidts@online.de