# PI-controller made by Homey script

**URL:** https://community.homey.app/t/pi-controller-made-by-homey-script/126896
**Category:** Questions & Help
**Tags:** homey-pro
**Created:** [January 7, 2025, 4:11pm UTC](https://community.homey.app/t/pi-controller-made-by-homey-script/126896 "2025-01-07T16:11:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Odd\_Inge\_Slydahl-Jac](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/odd_inge_slydahl-jac/32/81589_2.png) [@Odd\_Inge\_Slydahl-Jac](https://community.homey.app/u/Odd_Inge_Slydahl-Jac)
#### Post date: [January 7, 2025, 4:11pm UTC](https://community.homey.app/t/pi-controller-made-by-homey-script/126896/1 "2025-01-07T16:11:55Z")

</div>

Hello  
Anyone who has a Homey script for a PI-controller? Tentative a PID?  
I have no knowledge for programming, but if someone have to share I would be very greatful for that. I tried Chat GPT, but none of those worked.

---

<div class="post-metadata">

### Author: ![Ramon\_Kranendonk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ramon_kranendonk/32/121015_2.png) [@Ramon\_Kranendonk](https://community.homey.app/u/Ramon_Kranendonk)
#### Post date: [April 16, 2025, 8:14pm UTC](https://community.homey.app/t/pi-controller-made-by-homey-script/126896/2 "2025-04-16T20:14:18Z")

</div>

That would be excelent, and intergrade it in the flow building blocks

---

<div class="post-metadata">

### Author: ![Odd\_Inge\_Slydahl-Jac](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/odd_inge_slydahl-jac/32/81589_2.png) [@Odd\_Inge\_Slydahl-Jac](https://community.homey.app/u/Odd_Inge_Slydahl-Jac)
#### Post date: [February 25, 2026, 7:13pm UTC](https://community.homey.app/t/pi-controller-made-by-homey-script/126896/3 "2026-02-25T19:13:54Z")

</div>

I managed to make a kind of PI-controller by using som math-blocks. Integration was harder, but used better logic to increase/decrease value by use of date/time flowcard and some condition.  
Not accurate, but good enough. Now all heaters are connected with powerregulator to adjust output 0-100%
