Jump to content

Programming


robandcathy1

Recommended Posts

Hi guys been here under a different user name since 2012 and don't ask or post much but I'm at a cross roads to make the most of my isy, as my kids get older and more lazy I'm finding a need to make programs that i think are a bit to complex for me but probably so simple for many. This post come from fact that my kids take showers and leave the fan on all day, which does draw a lot of power. so since everything in my home 42 devices and counting is insteon I wanted to write a program for several needs. To keep it simple i will have 2 switches to talk about and give each function 1. bathroom fan 2. shower light, my first program was at 600 am turn on shower light no one want to wake up to a bright light, and then turn off in 20 min when i leave, this works, next set a time for fan, once turned on stay on and turn off after 20 min once lazy kids leave, NOW what i would like to do is IF you turn on the shower light the fan will start automatically for 20 min, no problem, but id also like it to run for 20 min if someone turns it on locally in case someone has to do their business my biggest issue is how do i prevent the fan to turn on at 6am and 620  when it sees my shower light come on. if some one could post, message on how to write this program, would be helpful. If anyone is intreasted if making some money writing other programs for me Id be willing to pay via paypal just message me. I know everyone here is helpful but I don't want to trouble the forums constantly with program questions and would rather work privately with a member and pay for services, which I'm surprised udi has not come up with that idea maybe charging 3 to 5$ per more complex program, that is not unreasonable and probably help many out. Not only that but eventually people would get a general idea from those written programs and learn, reference those programs and learn, otherwise is there a book for dummies available?  Something in lame mans terms, I'm a mechanic not software engineer even tho isy is pretty easy to use even for dummies I find the programming of which varibales to use and which order very French on more complex programs, Thank in advance.

Link to comment
Quote

NOW what i would like to do is IF you turn on the shower light the fan will start automatically for 20 min, no problem, but id also like it to run for 20 min if someone turns it on locally in case someone has to do their business

What is the problem with a program such as(?):

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

if

control bathroom fan switch is turned on

or control shower light is turned on

then

wait 20 min

turn off bathroom fan switch

else

nothing

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

such a program would only initiate (trigger) upon manual control of either switch.  It would not respond to a morning program turning on the shower light.

Link to comment

Don't make a complex program. Make a very simple program for each task you stated.

You wanted the bathroom fan to turn off 20 minutes after being turned on?

If
....Control Fan is Switched On
Then
....Wait 20 minutes
....Set Fan to Off

 

You wanted the bathroom light to turn on the fan?

If
....Control Light is switched On
Then
....Set Fan to On

 

Make each job simple following your own requirements. That's just about it.

Control/switched watches  the switch paddle. Status watches the light level.

 

 

Link to comment
5 hours ago, lilyoyo1 said:

You could simplify even more. 

If status lights are off

And fan is on

Wait 20 min. Turn fan off

This would allow the fan to beon while the bathroom was being used regardless of how long.  You could shorten the duration or makeit turn off immediately should you choose. 

I wouldn't call it simpler (compound logic) but better for sure.

That should be more bulletproof for a basic workhorse resolution. Then other fancy ideas for the lights etc.. could be added in other programs after and still keep the basic solution wanted.

Link to comment

Thanks guys for help, i think the first post answered it best while i may not have explained it properly, he addressed the fact that his program would not be triggered by a automatic timer, and still function with other switches being pressed, Thanks again to all who helped, great community.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...