(06.03.2020, 15:28)admin Wrote: I don't fully understand your question. What exactly is not working for you? You can set poll interval for an object to send KNX read request periodically if data is not sent by a KNX device automatically.
good morning Edgard,
I ask for help for this script as it happens that the value 0 of the two group addresses 2/0/91 and 6/0/91 are sent to me on the bus
value_1 = event.getvalue ()
value_2 = grp.getvalue ('3/3/1')
value_3 = grp.getvalue ('7/0/0') - summer / winter
if (value_1 == true) and (value_3 == true) then
grp.write ('2/0/91', true)
grp.write ('6/0/91', value_2)
otherwise
grp.write ('2/0/91', false)
grp. write ('6/0/91', 0)
end
(20.04.2020, 05:49)Hosutech Wrote:(06.03.2020, 15:28)admin Wrote: I don't fully understand your question. What exactly is not working for you? You can set poll interval for an object to send KNX read request periodically if data is not sent by a KNX device automatically.
good morning Edgard,
I ask for help for this script as it happens that the value 0 of the two group addresses 2/0/91 and 6/0/91 are sent to me on the bus
value_1 = event.getvalue ()
value_2 = grp.getvalue ('3/3/1')
value_3 = grp.getvalue ('7/0/0') - summer / winter
if (value_1 == true) and (value_3 == true) then
grp.write ('2/0/91', true)
grp.write ('6/0/91', value_2)
otherwise
grp.write ('2/0/91', false)
grp. write ('6/0/91', 0)
end
good morning Edgard,
I discovered the problem that I created!
I need the way to activate a script only if there is a specific condition, I give an example:
in the summer run the script "x"
in winter run the script "y"
please help me?
(17.04.2020, 19:18)Hosutech Wrote:(17.04.2020, 08:23)Daniel. Wrote: Where is this script?value_1 = event.getvalue()
value_2 = grp.getvalue('3/3/1')
value_3 = grp.getvalue('7/0/0') --estate / inverno
if (value_1==true) and (value_3==true) then
grp.write('2/0/91', true)
grp.write('6/0/91', value_2)
else
grp.write('2/0/91', false)
grp.write('6/0/91', 0)
end
good morning Daniel,
I discovered the problem that I created!
I need the way to activate a script only if there is a specific condition, I give an example:
in the summer run the script "x"
in winter run the script "y"
please help me?