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.

Script change of Bacnet COV settings
#1
Hi.

Im about to create a few Bacnet COV points on a large number of Wiser4KNX.

When the points are created they start with a send on change of 1, I need this to be 0.5, can this be scripted of do I need to manually change this?

Robert.
Reply
#2
Use this:
Code:
--Best way is to tag your objects with a specific tag for each different COV value and then run this script once:

covincr = 0.1
tag = 'mycovtag1'
db:query('UPDATE objects SET covincr=? WHERE id IN (SELECT object FROM objecttags WHERE tag=?)', covincr, tag)

covincr = 0.5
tag = 'mycovtag2'
db:query('UPDATE objects SET covincr=? WHERE id IN (SELECT object FROM objecttags WHERE tag=?)', covincr, tag)

os.execute('/etc/init.d/bacnet restart')
script.disable(_SCRIPTNAME)

--or

covincr = 0.1
db:query('UPDATE objects SET covincr=? WHERE export = 1', covincr)
os.execute('/etc/init.d/bacnet restart')
script.disable(_SCRIPTNAME)
Reply


Forum Jump: