This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Alert message function
#3
Map event script to temperature value, change 1/1/1 to setpoint object address:

Code:
temperature = event.getvalue()
setpoint = grp.getvalue('1/1/1')

alerted = storage.get('alerted')
if temperature >= setpoint then
  if not alerted then
    alert('temperature is above setpoint')
    storage.set('alerted', true)
  end
else
  storage.set('alerted', false)
end
Reply


Messages In This Thread
Alert message function - by Domoticatorino - 28.11.2017, 17:22
RE: Alert message function - by buuuudzik - 28.11.2017, 20:14
RE: Alert message function - by admin - 29.11.2017, 07:26
RE: Alert message function - by davidchispas - 08.06.2019, 16:44

Forum Jump: