Dynamic sitemap valueColor

Hi Guys,
I have been trying to get dynamic labels working in sitemaps, I can use absolute values but according to the docs you can also compare with other items.
This is what I have:

Text item=Plant11_Water label="Moisture [%.0f%%]" icon="humidity" valuecolor=[Plant11_Water < Plant11_Alarm ="red" , "green"]
Input item=Plant11_Alarm label="Alarm Level [%.0f]" icon="humidity" inputHint="number"

I am getting green every time, it’s frustrating.
It also makes no difference if I remove the Plant11_Water (you should be able to do this also).
Anyone get item comparisons to work?
Thanks,
Mike.

You can’t compare two item values. You must have an item name before the operator and a value after the operator.

Like for example myItem < 3

I read that as a love heart, lol, showing my age.

For anyone else wanting to do this, I had to include some dummy switches and turn them ON or OFF inside a rule.

Text item=Plant1_Water label="Moisture [%.0f%%]" icon="humidity" valuecolor=[Plant1_Low ON = "red", NULL="gray", "green"] labelcolor=[Plant1_Low ON = "red", NULL="gray", "black"]