I’ve just tried with your exact configuration, and it’s all working fine for me!
openHAB has a bug, which it has had for a long time, where it doesn’t always properly load a Things file after it has been saved.
Restart your openHAB for a quick fix, or do this