10.03.2017, 00:45
Dear,
Perform a message alert for temperature and everything is perfect, as the example below:
Value = event.getvalue()
if Value <= 15 then
Alarm_text = table.concat({'Tmep too low', Value, '°C'})
alert(Alarm_text)
elseif Value <= 30 then
Alarm_text = table.concat({'Tmep too high', Value, '°C'})
alert(Alarm_text)
end
The problem is that I try to have an alert when the group address 0/4/2 is in logical value "1", making allusion that it is a failure of a bomb and it does not work for me, here I leave the program and the screen of the program , I hope you can help me.
value = event.getvalue()
if Value <= 1 then
Alarm_text = table.concat({'TERMICO BOMBA 1'})
alert(Alarm_text)
end
Greetings.
Perform a message alert for temperature and everything is perfect, as the example below:
Value = event.getvalue()
if Value <= 15 then
Alarm_text = table.concat({'Tmep too low', Value, '°C'})
alert(Alarm_text)
elseif Value <= 30 then
Alarm_text = table.concat({'Tmep too high', Value, '°C'})
alert(Alarm_text)
end
The problem is that I try to have an alert when the group address 0/4/2 is in logical value "1", making allusion that it is a failure of a bomb and it does not work for me, here I leave the program and the screen of the program , I hope you can help me.
value = event.getvalue()
if Value <= 1 then
Alarm_text = table.concat({'TERMICO BOMBA 1'})
alert(Alarm_text)
end
Greetings.