Hi,
In my Modbus configuration i have 2 rules. Each rule changes value of a string depend if item value is 0 or 1.
One rule is working fine but the other one is ignored. Nothing happpens when item value is changed and there is no output in log:tail
Rules code:
rule "Status ventila ogr."
when
Item termostat1_prisotnost changed
then
if (termostat1_prisotnost == 1) {
postUpdate(termostat1_prisotnost_p, "Odprt")
}
if (termostat1_prisotnost == 0) {
postUpdate(termostat1_prisotnost_p, "Zaprt")
}
end
rule "Okno kontakt"
when
Item termostat1_status_okna changed
then
if (termostat1_status_okna.state == 1) {
postUpdate(termostat1_status_okna_p, "Odprto")
}
if (termostat1_status_okna.state == 0) {
postUpdate(termostat1_status_okna_p, "Zaprto")
}
end