-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
OH3: number:temperature items not working with setpoint elements #765
Comments
Also reported here openhab/openhab-addons#9659 How to reproduce:
Sitemap:
The Setpoint for TestSetPointNumber will work but the setpoint for TestSetPointTemp will not. |
This sounds like the same issue that I reported (in the probably wrong) openHAB core repository -> openhab/openhab-core#2091 Do you also use the openHAB app on your mobile and can you check if changing there works and if you then can afterwards also change via Web BasicUI? If this is the case both is the same issue and I would close my ticket as it is then in the wrong repository. |
Verified that you can control Number:Temperature items with the Android apk. It is the basicUI that has the issue. I actually have had it work in basicUI, but very very sporadically. This is very easy to repro just create: Without the Unit it works it will update in the basicUI, but with the unit it will not. One other thing I noticed is that if you write a rule to catch the change, it doesn't work. Not sure if that is a clue (or maybe it's not supposed to work). e.g I never see the output for this: rule "TestSetpoint" |
Same problem here. I can exclude as reasons:
Just a deeper Analysis: So the Basic UI working with post before App is used, after usage of App it uses get and all fine. Because all other Items in Web UI Using GET (just checked), this seems to be the reason, there is a bug in Basic UI causes setpoint after open the sitemap to cause PUT instead of get! |
I think @JensHoRi is wrong about the GET/POST and the App -- see my post on the community.. https://community.openhab.org/t/crazy-bevavior-in-basic-ui-oh3/114927/16?u=andrewfg |
I did a wildcard search in the BasicUI code for the string |
PS the work around is to explicitly include a
|
By the way, I now understand why the App may solve the issue for @JensHoRi -- the |
I believe I had the same issue. I used Selection as a workaround. |
I tried to search the way back from function to function. I'm no developer, and really not sure, but looks like at the end there is a reference to some system.units. So maybe °C not defined in metric system for temperature or something like that. :-( I'm out, This need the know how of some of our great developers doing so amazing work |
The issue seems to be in the openhab/openhab-core repository: String unit = getUnitFromLabel(w.getLabel());
if (!UnitUtils.UNIT_PLACEHOLDER.equals(unit)) {
return unit;
}
return ((NumberItem) item).getUnitSymbol(); (see here) If there is no label defined for the Setpoint widget I will try to make a PR that fixes this issue. |
@chris922 many thanks for this, much appreciated. |
It should reply the standard placeholder for unit instead, right? |
I just raised the PR openhab/openhab-core#2165 Imho the I added a fallback to the unit-symbol of the item in case no label for a widget was defined. As outlined in my PR I don't know how to verify this with my local openHAB instance.. if someone gives me more information how I can use this version in my openHAB instance I would try the fix there as well. |
This is still an issue in MainUI?? e.g. with controlling yeelights via the miio binding: it generates temperature and time setpoints and the UI is useless: (workaround: metadata can be attached via UI too) |
It appears that "number:temperature" items can't be contolled using setpoints in basicUI or MainUI. When the setpoint is clicked, no change is observed in the item. If the item is changed to "number", it can be controlled with setpoint in BasicUI.
https://community.openhab.org/t/solved-knx-binding-issues-with-thermostat-oh3/112724
https://community.openhab.org/t/openhab-3-setpoint/112801
https://community.openhab.org/t/oh3-set-temperature-on-homematic/112902/2
In the second thread, it's noted that number-with-setpoint doesn't work in MainUI. However, that may be a separate issue.
Please let me know if there's anything more I can do to help solve this problem.
Thanks!
original here: openhab/openhab-core#2067
The text was updated successfully, but these errors were encountered: