July 1Jul 1 Just got my first Polyglot plugin running to get data from my WS-5000 console. I can figure out how to trigger a program when a sensor reaches a particular temperature. What I would like to do is to trigger a program (which opens a window and turns on a fan) when the temperature on the main sensor (outside temperature) is lower than an inside sensor's temperature, and close the window when the opposite is true. I would want to build in a few degrees of hysteresis to prevent too much cycling between open/close.Is this possible with EISY and Polyglot?
July 1Jul 1 Solution Calc Delta (enabled)IF. . . .temp1 < 9999. . .OR. . . .temp2 < 9999THEN. . . .$intVar = temp1. . . .$intVar -= temp2. . . .$sdeltaTemp = $intVar do NOT calculate in variable that continuously triggers CloseWindow or OpenWindowELSE. . . .--CloseWindow (enabled)IF . . . . $sdeltaTemp > 2.0THEN. . . . do close window processELSE. . . .--OpenWindow (enabled)IF. . . . $deltaTemp < -2.0THEN. . . . do open window processELSE. . . . --ANYTHING IS POSSIBLE with polisy or eisy. Edited July 1Jul 1 by larryllix
July 2Jul 2 Author Thanks. I hadn't figured out how to assign Polyglot nodes to variables - that was the missing piece.
July 3Jul 3 @mikewu99 Nothing to add, but how is your window automated? I started this incredible journey with automating the (16) windows of my summer room in mind. I replaced the horrid windows with casement windows, but the original inspiration is unavailable/obsolete, so this project has been very back burner. Thanks.
July 3Jul 3 Author I added these to two brand new awning windows. Controlled through a Bond Bridge. I was able to hook them to the windows without drilling holes or otherwise modifying the windows other than removing the crank operators, so no voiding the window warranty.https://www.olidesmart.com/collections/automatic-window-opener/products/am56
July 3Jul 3 Author @larryllix the programs are working after I figured out that $sdeltaTemp needs to be a state variable (I assume that's what the "s" prefix means). I added code to disable OpenWindow and enable CloseWindow when OpenWindow runs (and vice versa) to prevent the window motors from being energized every time the temperature changes. Also prevents the ISY from overriding me if I manually open or close a window. Edited July 3Jul 3 by mikewu99
Create an account or sign in to comment