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
{{ message }}
Repository navigation
Valve duration characteristics advertise int instead of uint32 #202
SetDurationCharacteristic (D3) and RemainingDurationCharacteristic (D4) serialize their characteristic metadata with "format": "int". Both characteristics should advertise "format": "uint32".
Reproduced with HAP-Java 2.0.8 and OpenJDK 21.0.6. The same inheritance and format definition are present on the current master branch.
Expected behavior
Apple specifies UInt32 for both Set Duration and Remaining Duration, with values in seconds and a range of 0–3600:
A fix should let these two duration characteristics advertise uint32 and add serialization regression tests for their formats. Their Java values can remain Integer for the currently supported 0–3600 range. The formats of other integer-based characteristics should be preserved.
Context
Discovered while investigating openhab/openhab-addons#18245. The metadata mismatch is confirmed independently of Apple Home. Whether correcting it resolves the reported countdown display or responsiveness problems has not been established; this report concerns the verified protocol-format mismatch.
Activity