18.01.2025, 11:12
Explain exactly what do you want this script to do.
Scripting
|
18.01.2025, 11:12
Explain exactly what do you want this script to do.
20.01.2025, 09:10
(18.01.2025, 11:12)admin Wrote: Explain exactly what do you want this script to do. so its a littlebit complicated. I have underfloor heating i want the pwm valves to not close and i want to change the %of the opening valve i want if the actual temperature is higher than then setpoint to write to the group address of the heating actuator the setpoint - the offset that my client will set but if the actual temperature is lower than the set i want to write to group address of the heating actuator the actual temperature so it will open more if need it heres is the script that i end up. Thank you in advance! Code: if event.getvalue() then
20.01.2025, 10:07
I am not sure that I correctly understand what you need, but here is the code
Code: local actual_temp1 = grp.getvalue('12/0/5') (20.01.2025, 10:07)RomansP Wrote: I am not sure that I correctly understand what you need, but here is the code i want it ether mastersetpoint or the room setpoint are higher to grp.write the actual temperature. do you see anything wrong with my script ?
20.01.2025, 12:24
If there are two setpoints then you need to know which one is currently used. Does your heating actuator have a setpoint status output?
20.01.2025, 13:55
(20.01.2025, 12:24)admin Wrote: If there are two setpoints then you need to know which one is currently used. Does your heating actuator have a setpoint status output?yes and i tryed now but it work only for first one room of the script here is the full script! Code: if event.getvalue() then
20.01.2025, 13:57
You should handle each zone in a different script.
Your current script does not work because if/else/end statements are wrong. First end should be at line 16. There should not be multiple end statements at the bottom of the script.
20.01.2025, 15:10
Also >> if event.getvalue() then << is not needed as an event always returns a certain value
20.01.2025, 15:25
Thank you guys for you help !!!
Its Working now ! How im gonna do it for half hour to work and do not work for half hour continuously? I read for the scheduled script but dont know how to make it
21.01.2025, 11:19
Hello guys i tried this script that will enable and disable the scripts from and event and i will make a schedule on/off of the virtual group address that the event is based. i tried this but it doesnt work anyone can see why ?
Code: if event.getvalue(1) then
21.01.2025, 11:31
You are missing quotes around the category name:
Code: status = event.getvalue() |
« Next Oldest | Next Newest »
|