krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: December 13 2012 at 07:40 | IP Logged
|
|
|
Hey Guys....
Again need your help:
I have an outdoor shutter which is controlled by PH.
This shutter sends an Acknowledgement when closed or opened to my K8000, an open shutter means DI5 is off, when the shutter is closed means DI5 is on.
The shutter itself is controlled by a SW10 shutter switch, which can be ON or OFF (dimmed can also be but not in this example) When PH sends a command to close the shutter a GV is updated (K4STATE=3) and when opening the shutter K4STATE will be 2.
so here's in short:
K4 is the shutter switch (on/off)
DI5 is the reedcontact of the shutter itself (on/off)
K4STATE is the GV maintained by the macros (2 or 3)
Now... I want to compare seperate status of all 3 "devices". If the shutter is closed then all 3 devices got to have it's corresponding state and also when open. If one of the 3 statuscodes is "out of sync" so to speak, then an alarm has to be given, a mail of TTS or whatever. I have been working on a macro but I would like to start again with your help (maybe some form of educational thread can be setup here?)
|