Closed scoobydrvr closed 9 years ago
Hmm - I’ve not used text block before - I think that might be unsupported, but I’ll see if I can add it quickly…
Hi, I’ve just updated the habmin JAR - give it a go and see if it solve the issue. I’ve done a quick test and it seems ok, but I don’t use text items like this so it would be good if you can confirm…
Chris=
Yup, that fixed it! Generated rule as follows below.
rule "Update Motion"
when
Item Motion_Sensor changed
then
if(Motion_Sensor.state == ON) {
postUpdate(Motion, "DETECTED")
}
if(Motion_Sensor.state == OFF) {
postUpdate(Motion, "OFF")
}
end
Brilliant - thanks for the feedback.
I've created a simple rule to change a text value on my sitemap that is triggered by a motion sensor. When the .rules file is generated by HABmin the it shows "postUpdate(Motion, *\ Unknown Block "text"). Did something get left out?