Number:Time doesn't accept 'y' as unit


Like said…
This Item

Number:Time bsP1Age "Alter" ["Duration"] {channel="mqtt:topic:mymqtt:bs444:age", unit="y"}

leads to this warning:

 [WARN ] [penhab.core.library.items.NumberItem] - Unit 'y' could not be parsed to a known unit. Keeping old unit 's' for item 'bsP1Age'.

all other time units are accepted (s, min, d and week).
The corresponding channel doesn’t complain about the ‘y’ unit.

This issue existed since openHAB3 (always forgot to complain about…)

This might need an issue. The docs clearly state ‘y’ for years. Maybe try ‘Y’? one way or the other an issue will need to be filed, either because the docs are wrong or g the unit isn’t working.

I suspect it’s not often that anyone has a need to react time in years in a home automation context so you might be the first to try to use this unit.

1 Like

Done :slight_smile:

And yes, I did test with Y, y and year

1 Like