Skip to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Comparing sensor temperatures

Featured Replies

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?

Solved by larryllix

  • Solution

Calc Delta (enabled)
IF
. . . .temp1 < 9999
. . .OR
. . . .temp2 < 9999
THEN
. . . .$intVar = temp1
. . . .$intVar -= temp2
. . . .$sdeltaTemp = $intVar do NOT calculate in variable that continuously triggers CloseWindow or OpenWindow
ELSE
. . . .--

CloseWindow (enabled)
IF
. . . . $sdeltaTemp > 2.0
THEN
. . . . do close window process
ELSE
. . . .--

OpenWindow (enabled)
IF
. . . . $deltaTemp < -2.0
THEN
. . . . do open window process
ELSE
. . . . --


ANYTHING IS POSSIBLE with polisy or eisy.

Edited by larryllix

  • Author

Thanks. I hadn't figured out how to assign Polyglot nodes to variables - that was the missing piece.

@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.

  • 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 by mikewu99

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.