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
#1
Hello,

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!
Reply
#2
This might be helpful: https://openrb.com/example-pid-thermostat-with-lm2/
Reply
#3
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.
Reply
#4
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:
Code:
-- init pid algorithm
if not p then
  require('user.pid')
  p = PID:init({
    current = '1/1/1',
    setpoint = '1/1/2',
    output = '1/1/3'
  })
end

-- run algorithm
p:run()
Reply
#5
I will check it.

Thanks for the help.

Appreciated.
Reply
#6
Can you please tell me what should I write to the residential script?

Thanks in advance.
Reply
#7
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.
Reply


Forum Jump: