String state handling

All,

In OH1 I used a rule triggered by a string state:

rule "Abus Status monitoring Set"
when
    Item Abus_Status changed to "Set"
then
...

This rule was not triggered in OH2 until I changed it to:
(removing the “”)

rule "Abus Status monitoring Set"
when
    Item Abus_Status changed to Set
then
...

So obviously the state handling of strings changed, right?

So it would seem. Though I wonder would it work without the quotes for Strings with spaces?

Good question.

And SmartHome Designer does not accept this:
if Abus_Batteriealarm.state == BUTTON - but I did not check whether it would work anyway.
In this case the designer requires “”