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.

PID script
#1
Hopefully someone can help me with the following "problem".



I would like to use the PID script to control the temperature in one of the bedrooms.



The temperature have to be set to 18 degrees... if under setpoint set groupadress ON, if setpoint reached set groupadress OFF.



I saw this example script, but the setpoint must not be an groupadress but a fixed value..




  1. -- init pid algorithm

  2. if not p then

  3.   p = PID:init({

  4.     current = '1/1/1',

  5.     setpoint = '18',

  6.     output = '1/1/3'

  7.   })

  8. end

  9.  

  10. -- run algorithm

  11. p:run()




This script gives the following error:



Resident script:3: attempt to index global 'PID' (a nil value)
stack traceback:




So I think I made a mistake in the setpoint notation... can somebody help me?



Best,



Jos
Reply


Messages In This Thread
PID script - by josdegroot - 12.12.2019, 21:22
RE: PID script - by Erwin van der Zwart - 12.12.2019, 22:34
RE: PID script - by josdegroot - 24.12.2019, 18:50
RE: PID script - by Erwin van der Zwart - 25.12.2019, 08:42
RE: PID script - by josdegroot - 25.12.2019, 09:21
RE: PID script - by Erwin van der Zwart - 25.12.2019, 11:00
RE: PID script - by josdegroot - 25.12.2019, 16:05
RE: PID script - by Erwin van der Zwart - 25.12.2019, 16:13
RE: PID script - by josdegroot - 25.12.2019, 16:15
RE: PID script - by admin - 25.12.2019, 11:09
RE: PID script - by stavros - 10.06.2022, 12:48
RE: PID script - by admin - 10.06.2022, 12:54
RE: PID script - by stavros - 10.06.2022, 13:57
RE: PID script - by admin - 10.06.2022, 13:58
RE: PID script - by stavros - 10.06.2022, 14:09
RE: PID script - by admin - 10.06.2022, 14:12
RE: PID script - by stavros - 10.06.2022, 14:35
RE: PID script - by manos@dynamitec - 12.02.2024, 21:42
RE: PID script - by Daniel - 13.02.2024, 08:34

Forum Jump: