HAI Programming help

jfitz0807

Member
I have an HAI OmniPro II controller and Simply Automated UPB switches. We also have a motion sensor in the kitchen.

I'm starting out small here. All I want to do is have the kitchen lights turn off automatically if there is no motion in the kitchen for 10 minutes unless the accent lighting is on.

Here's what I wrote iusing PCAccess:

8. WHEN Kitchen mot NOT READY
THEN Motion in Kitchen ON FOR 10 MINUTES
9. WHEN Motion in Kitchen OFF
AND IF Kitchen Over Cabinet OFF
THEN Full Kitchen OFF

"Kitchen mot" is the motion sensor and "Motion in Kitchen" is a flag I defined.

When the kitchen motion sensor trips, the flag goes on, but it seems to ignore the timer. The flag stays on forever and so the ilghts don't go off after 10 minutes. A check of the status of that Flag just shows 1. If I double click on the flag to open the command window, I can execute what looks to be an identical command. When I execute this command manually, the Status shows ON FOR 00:10:00 and counts down.

Any ideas why the command doesn’t work in a program but works manually?
 
Hmm. Looks like it should work. A few thoughts:

1. Are you using an actual flag, or a user setting? If it's a flag, what number is it?
2. Do you have anything else in your code that might be setting a numeric value on the flag?
3. What firmware version are you running?

As a start, try re-sending the setup, names, and programs information to the controller.
 
It's Flag 1, Unit # 393.

Block 8 is the only place where that flag is being set. Block 9 is the only place where that flag is being checked.

I have the latest PCAccess version and the latest Firmware. Not sure exactly what version it is because I'm at work right now and can't check it, but according to PCAccess' updater, I have the latest version.

I have already tried to re-send all the setup, names and programs to the controller, but that didn't help.

Maybe I'll try using a different flag.
 
I think cornutt hit the nail on this. I put descriptions in 393/394 as "Interior Sounder" and "Exterior Sounder" so that I would know that they are already in use. PCA should really put that description in and make it non-editable for those two flags.

You may also want to pre-allocate Zone 16 and output 8 for your thermostats so you don't end up using them for something else.
 
Back
Top