I am receiving this error:
Received update of a not accepted type (StringType) for item
Using these items:
Group All
Group gGroundFloor
Group GF_Laundry “Laundry Room”
Contact washer “Washer [MAP(washer.map):%s]” (ALL) {mqtt=“<[mymosquitto:home/laundry/washer:state:default”}
this rule:
rule “Washer State”
when
Item washer changed
then
logInfo(“Washer”, "Washer state at beginning of rules: " + washer.state)
if (washer.state == OPEN)
logInfo(“Washer”, “Washer Off”)
//notifyMyAndroid(“e53b9ef413f5689a8240f8112abe0d594b25c01f378ee5b3”, “Washer”, “Load started” )
if (washer.state == CLOSED)
{ logInfo("Washer", "Washer Started")
//notifyMyAndroid("e53b9ef413f5689a8240f8112abe0d594b25c01f378ee5b3", "Washer", "Yay! Clean clothes!")
sendMail("oddlogic@gmail.com", "Washer finished", "Yay! Clean clothes!")
}
logInfo("Washer", "Washer rule completed")
end
My MCU is reporting a binary value, then in C, I look for the value, then write OPEN or CLOSED (string) to the broker channel.
before, when I was using a number and published the state to the site, it worked fine, but now I get the error above.
Any ideas?
Thanks,
-b