10.06.2022, 12:48
(12.12.2019, 21:22)josdegroot Wrote: 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..
- -- init pid algorithm
- if not p then
- p = PID:init({
- current = '1/1/1',
- setpoint = '18',
- output = '1/1/3'
- })
- end
- -- run algorithm
- 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
hello,
I have the same problem with you and i don't know what to do to solve it.
Do you remember how you solved it?
Thank you