Jump to content

New Programs


Go to solution Solved by MrBill,

Recommended Posts

Posted

Hello all

I am still learning as much as  I possibly can on my own about the isy/polisy. It's a huge learning curve with alot of little variables to check/ unchecked, verify and pretty much play around with until I get it right.

Unfortunately I am still waiting for my PLM serial cable so I have not been able to add any devices to my PLM yet.

What would helpful is if any one had any sample programs I could have a look at in order to better understand the process of how to make one when I'm ready.

I've tried simple ones like schedules, but I would really like to see what this POLISY can do.

For example : I want to use a insteon On/Off switch as a count down timer.  When the switch is turned on the timer immediately starts depending on what time I set it to count down from. 

Stuff like that would be cool to learn how to do.

Help would be appreciated.

Posted
15 minutes ago, Prana electric said:

Hello all

I am still learning as much as  I possibly can on my own about the isy/polisy. It's a huge learning curve with alot of little variables to check/ unchecked, verify and pretty much play around with until I get it right.

Unfortunately I am still waiting for my PLM serial cable so I have not been able to add any devices to my PLM yet.

What would helpful is if any one had any sample programs I could have a look at in order to better understand the process of how to make one when I'm ready.

I've tried simple ones like schedules, but I would really like to see what this POLISY can do.

For example : I want to use a insteon On/Off switch as a count down timer.  When the switch is turned on the timer immediately starts depending on what time I set it to count down from. 

Stuff like that would be cool to learn how to do.

Help would be appreciated.

If you go to YouTube and type in Isy variables, they have some examples that can help you. Googling Isy cookbook will also bring up a guide that is still relevant.

  • Solution
Posted
36 minutes ago, Prana electric said:

Hello all

I am still learning as much as  I possibly can on my own about the isy/polisy. It's a huge learning curve with alot of little variables to check/ unchecked, verify and pretty much play around with until I get it right.

Unfortunately I am still waiting for my PLM serial cable so I have not been able to add any devices to my PLM yet.

What would helpful is if any one had any sample programs I could have a look at in order to better understand the process of how to make one when I'm ready.

I've tried simple ones like schedules, but I would really like to see what this POLISY can do.

For example : I want to use a insteon On/Off switch as a count down timer.  When the switch is turned on the timer immediately starts depending on what time I set it to count down from. 

Stuff like that would be cool to learn how to do.

Help would be appreciated.

Study the ISY Cookbook--- a 692 page pdf of the examples you seek!

  • Like 2
Posted (edited)

@Prana electric

Doesn't do anything much useful, but this is what you're asking for.

timer initialize could be triggered by something.

And presumably, you'd want something to happen when the counter reached zero.

$_counter would need to be a state variable. (I( use the underscore to label variables as state variables)

* Orest

 

-----------
timer initialize - [ID 01A4][Parent 0054]
If
        [some conditions or action for a trigger]
Then
        Stop program 'timer run'
        $_counter  = 60
Else
   - No Actions - (To add one, press 'Action')

-----------
timer run - [ID 0094][Parent 0054]
If
        'family rm / FAM - pots' is switched On
Then
        Repeat Every  1 second
           $_counter -= 1
Else
   - No Actions - (To add one, press 'Action')
 
-----------
timer stop - [ID 01B6][Parent 0054]
If
        $_counter <= 0
Then
        Run Program 'timer initialize' (Then Path)
        Run [do something here]
Else
   - No Actions - (To add one, press 'Action')

 

Could also use a while loop for the counter, which is a little more efficient performance.

timer run - [ID 0094][Parent 0054]
If
        'family rm / FAM - pots' is switched On
Then
        Repeat While $counter > 0
           $_counter -= 1
Else
   - No Actions - (To add one, press 'Action')
 

 

Edited by oskrypuch
  • 2 weeks later...
Guest
This topic is now closed to further replies.

  • Recently Browsing

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

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.6k
×
×
  • Create New...