[Solved] Custom inputs and PID for Grow Tent
What I would recommend next would be to regulate temperature. Since temperature and humidity interact with each other, it will be crucial to get their PIDs to play nicely with each other.
First, for humidity I would recommend setting Kp=0.5 and Kd=0.05, then see how that tuning does in comparison to the first.
If all is well, I would set up the heater PID the same way as the initial tuning of the humidity PID, however do not run them together for the first run of the heat PID. If the heat PID performs well, then run both the heat and humidity PIDs.
This is low priority but do you think this light api could be incorporated into Mycodo? I have the LX60.
What do you intend to automate this for (details of application)? This will give me an idea if the functionality already exists with Mycodo.
It would be one form of temperature control without having to run fans. Also to run daily light cycles with different spectrum intensities at different times.
Then I would say Mycodo can already do this. Make a Python script from the code in that doc, as a class, then you can make a Conditional to load the class and use it to control the light. The Conditional Statement is Python code, so you can use it any way you want to, such as adding timers, sensor measurements, output measurements, output manipulation, etc. The Conditional Statement code will be executed by the Conditional at a configurable interval.
If you have any specific tasks you're looking to perform, I can try to guide you in the right direction.