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.

Thermostat PI

is it possible to create a thermostat PI (e.g. MTN6212-04XX) with Wiser?
I don't mean to have an MTN6212-04XX in the installation and just to visualize through Wiser.

In fact, I need to replace the MTN6212-04XX with a script.

Thanks for your help!
This might be helpful:
In this link mentions that: There is a PID function already added by default in Logic Machine -> Scripts -> Tools menu.

I have Wiser and not Logic Machine and there isn't by default in Wiser.
The example is somewhat outdated. You need to create a user library named pid and copy the code there.
Then load the library in your resident script:
-- init pid algorithm
if not p then
  p = PID:init({
    current = '1/1/1',
    setpoint = '1/1/2',
    output = '1/1/3'

-- run algorithm
I will check it.

Thanks for the help.

Can you please tell me what should I write to the residential script?

Thanks in advance.
See my previous post. The code there is for the resident script. Set the script sleep interval to at least 10 seconds or more. This controls how often the algorithm runs. Change group addresses as needed.

Forum Jump: