-
-
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
[homekit] add support for min/max values for temperature #7782
Conversation
Signed-off-by: Eugen Freiter <freiter@gmx.de>
Travis tests were successfulHey @yfre, |
.../src/main/java/org/openhab/io/homekit/internal/accessories/AbstractHomekitAccessoryImpl.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Eugen Freiter <freiter@gmx.de>
Hey @yfre, TravisCI finished with status TravisBuddy Request Identifier: c20296f0-9f6e-11ea-a34f-dd9ab62511aa |
Just closing and reopening to see if I can get the DCO error to go away. |
Hey @yfre, TravisCI finished with status TravisBuddy Request Identifier: 6260a8a0-a049-11ea-aa49-9d3926c79f60 |
* 2.5.x: (174 commits) [hpprinter] Add additional data points and refactoring (openhab#7805) [neohub] new/legacy API; null annotations; enhancements; bugs; logging (openhab#7767) [meteoalerte] Initial contribution (openhab#7200) [lgwebos] Console command to show the access key (openhab#7801) [hue] Refactored state handling and fix polling after command (openhab#7518) [telegram] add attachment URL (openhab#7816) [siemensrds] readme adjusted to match openhab#7814 (openhab#7819) [lametrictime] correctly parse response (openhab#7818) [Seneye] Bug fix for using Pond or Home sensors. (openhab#7797) [siemensrds] apply UoM quantityType percent for relative humidity (openhab#7814) [alarmdecoder] Add vzone thing for virtual zone control (openhab#7800) [hue] Channel alert added for groups (openhab#7810) [hue] Keep compatibility with hue emulation for groups (openhab#7809) [dscalarm] Bridge/things management refactored (openhab#7748) [avmfritz] Add link to Fensterkontakt (magnetisch) to docs (openhab#7806) [deconz] add light/blind support and additional sensors (openhab#7608) [homekit] add support for min/max values for temperature (openhab#7782) [tesla] Use CXF JAX-RS client builder, if available (openhab#7804) [mqtt.homie] Improve Homie discovery time (openhab#7760) [siemensrds] null annotations; JUnit; UoM; enhancements; bug; refactoring; logging (openhab#7769) ...
I think there is an issue with the [minValue=10.5, maxValue=27] function in that it does not accept a negative value. Number Coolroom_Temp "Coolroom [%.1f°C ]" (gSQLpersist_everyChange) |
@Hobohome thank you for reporting. but the fix will be first available with openhab 3.0. we cannot do much until then. |
Hay @yfre and thanks for the reply. Do you know if it is possible still to over-ride the global default min/max in the Homekit config? I read that adding two custom parameters in PaperUI (maximumTemperature and minimumTemperature) this could be done. |
@Hobohome you have done all correctly. it is documentation that is not up-to-date. the global defaults are not supported anymore. they were dropped in favour of local, item level, settings. but if "-" is not supported at item level, maybe we should add global level back.. or support both, check local, if not there, take global. let me see if this can be easily done as of now, there is no way to define "-" for temperatures. sorry for that. |
Thanks @yfre . I think having both global and item level would be great. Allow the item level value (when specified) to override the global values. |
* add support for min/max values for temperature * run spotless Signed-off-by: Eugen Freiter <freiter@gmx.de>
* add support for min/max values for temperature * run spotless Signed-off-by: Eugen Freiter <freiter@gmx.de> Signed-off-by: CSchlipp <christian@schlipp.de>
* add support for min/max values for temperature * run spotless Signed-off-by: Eugen Freiter <freiter@gmx.de>
* add support for min/max values for temperature * run spotless Signed-off-by: Eugen Freiter <freiter@gmx.de>
* add support for min/max values for temperature * run spotless Signed-off-by: Eugen Freiter <freiter@gmx.de>
* add support for min/max values for temperature * run spotless Signed-off-by: Eugen Freiter <freiter@gmx.de>
* add support for min/max values for temperature * run spotless Signed-off-by: Eugen Freiter <freiter@gmx.de> Signed-off-by: Daan Meijer <daan@studioseptember.nl>
* add support for min/max values for temperature * run spotless Signed-off-by: Eugen Freiter <freiter@gmx.de>
Hi, minValue and maxValue for Thermostat and Temperature Sensor don’t work in OH 3.0. item:
|
it seems issue stil is existing in most recent version unstable 3.0.0~S2072-1 |
@pug304
|
Metadata [key=homekit:TemperaturGarage_1_ACTUAL_TEMPERATURE, value=TemperatureSensor.CurrentTemperature, configuration=[]] due to out of limits oh reports 10° to homekit, i've tested with min=0 and different steps edit: same behavior on two different sensors, have deleted and readded one of them |
can you try to close home app and keep it closed for 10-20 seconds and open again? home app request the complete list of accessories only at very beginning or at new start after longer time. once it has it, it only asks for actual values and not for meta data. |
i will give this a try tomorrow :) |
Hi, |
have doen this steps:
error: 18:17:29.892 [WARN ] [ristics.impl.base.FloatCharacteristic] - Detected value out of range 41.0. Returning max value instead. Characteristic io.github.hapjava.characteristics.impl.thermostat.TargetTemperatureCharacteristic@2853999d may be the error is because of setting a step value |
After U set metadata with minValue/maxValue/step stop and start OH with:
|
without success |
thank you for trying all this. |
@pug304 |
IMHO this changed in OH3, you have to set the values in the item definition |
for sure, no secret ;) thing code UID: homematic:HmIP-STHO-A:3014F711A0001F98A9AA0C5E:0010DA499476AE Item/Link Model medadata TemperatureSensor tag is set in regarding model other then in OH2 (all definitions inside .thing ans .item files) i've created all in the UI |
..... but Step not working |
great! indeed this is working this way! Thanks for your explanation! |
HomeKit specification supports custom min/max values as well as the min step for some characteristics, including temperature. For instance, an outside temperature sensor can have a different temperature range than an inside temperature sensor.
Java-HAP library added support for custom min/max values recently.
This PR add supports for min/max/step to HomeKit binding.
changes:
Closes #3400
Signed-off-by: Eugen Freiter freiter@gmx.de