Jump to content

Polisy - set State Variable from Program


SSamuels

Recommended Posts

Posted

Firmware        Polisy v.5.4.1 (2022-03-08)

UI                    Polisy v.5.4.1 (2022-03-08)

Product           Polisy (5200)

-        OpenADR (21010)

-        Networking Module (21040)

-        Portal Integration – UDI (21075)

-        Z-Wave (21100)

-        A10/X10 Module (21060)

I have a question about setting the value of a State Variable in a program.

State Variables:

$MaxAirTemp_Today

Node server:

Aqualink Controller (the controller is online) – Air Temperature subnode

I have two enabled programs:

Program1 Content for 'AdjustAirTemp'

If

From 8:45:00AM

To      9:45:00PM

AND

'12l29Td / POOL/ POOL' Air Temperature >= '$MaxAirTemp_Today Fahrenheit '

Then

$MaxAirTemp_Today = '12l29Td / POOL/ POOL' Air Temperature 'F

Else

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

Program2 Content for ‘ResetAirTemp’

If

Time is 10:25:00PM

Then

$MaxAirTemp_Today = 0

Else

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

Issue:

Program1 does update $MaxAirTemp_Today

Program2 when I select ‘Run Then’ or when the time condition is met does not update $MaxAirTemp_Today (The Summary tab indicates that Program2 did run. When I hit ‘Refresh Values’ on the State Variable tab, the value of $MaxAirTemp_Today is not 0)

What am I doing wrong? (again)

Thanks

Posted

Disable program1 temporarily then try run program2 and see what happens. 
can also try changing the variable manually to 0 and if changes back there is some other program setting it. 

  • Like 1
Posted

I agree with @brians for troubleshooting steps.    It seems like this pair should be working but perhaps search for the variable in all your programs to see if something you've forgotten exists is also setting it.    to use Find, right click any programs name and pick Find.

 

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.4k
×
×
  • Create New...