I’m having difficulty creating a rule that occurs at a certain time and is triggered when a String is equal to a defined word.
The string in my item file is:
String CoffeeStatus "The Coffee Maker Is:" { channel="wemo:CoffeeMaker:CoffeeMaker-1_0-221430S00003F5:coffeeMode" }
and I can make it work in this rule when I look for a change:
rule "coffeeready"
when
Item CoffeeStatus changed from Brewing to Brewed
then
say("Good Morning Madame, Your Coffee is Ready")
end
Yet when I try to look for the status RefillWater I can’t seem to make it work with the rule below:
rule "refillcoffeepot"
when
Time cron "0 0 21 1/1 * ? *"
then
Item CoffeeStatus == "RefillWater"
then
say ("Please refill the coffee pot")
end
I’m sure it’s something with the syntax can someone assist in pointing me in the right direction.