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

Using Elk Voltage Levels with eisy Math Functions

Featured Replies

Posted

Is there any way to take the voltage level from an Elk Zone and use it in an eisy math function? I currently have an exceptionally ugly set of IF statements in my old ISY-994 that has 100 variations of the following:

===================================================================================

Chk02xVolt - [ID 0036][Parent 004D]

Folder Conditions for 'Chk02xVolt'

If

        Elk Zone 'Water Level' 'Voltage' >= 2.0 Volts

    And Elk Zone 'Water Level' 'Voltage' <= 2.9 Volts

Then

   Allow the programs in this folder to run.

 -----------------------------------------------------------------------------------

Chk020Volt - [ID 0016][Parent 0036]

If

        Elk Zone 'Water Level' 'Voltage' is 2.0 Volts

 Then

        $ElkVoltageX10  = 20

Else

   - No Actions - (To add one, press 'Action')

Test if the Elk Voltage is 2.0 Volts and if so, set $ElkVoltageX10 to 20 (i.e. ten times the voltage)

-----------------------------------------------------------------------------------

and so on...

Is there a nicer way to do this in the esiy using the Elk Node Server?

Solved by PLCGuy

Go to solution
  • Author
  • Solution

Never mind... found the answer and all seems to be working well 😄

 

WaterLvlCalc - [ID 0012][Parent 0013]

If
        'Alarm / House Alarm System / KitchenKeypad' is switched F4
 
Then
        $ElkWtrVoltage  = 'Alarm / House Alarm System / Water Level' Voltage Volts
        Wait  2 seconds
        $WtrGallons  = 10
        $WtrGallons *= $ElkWtrVoltage
        $WtrGallons *= $SlopeDiv10
        $WtrGallons -= $Offset
        $WtrLvl  = $WtrGallons
        $WtrLvl /= $GallonsPerInch
        Set 'Alarm / House Alarm System' Display Message
        $State_LvlCalc  = 1
        Wait  10 seconds
        Set 'Alarm / House Alarm System' Clear Message
 
Else
   - No Actions - (To add one, press 'Action')
 
Wait for a trigger to calculate cistern $WtrGallons (= 10 x $ElkWtrVoltage x $SlopeDiv10 - $Offset), $WtrLvL = ($WtrGallons / $GallonsPerInch), and then display the level on the Elk Keypad

 

Cistern Water Level .jpeg

Guest
This topic is now closed to further replies.

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.