Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

Trouble activating a response
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Tuesday Dec 10th, 2013 10:30 pm
   PM  Quote  Reply 
1st Post
cab123
Member
 

Joined: Saturday Oct 3rd, 2009
Location: Coimbra, Portugal
Posts: 25
Status: 
Offline

  back to top

Hi,

I have a output (SCS nº1, led nº2) that signals the status of all my heaters / aircons for a quick visual check. If the led is ON, one or more elements are ON, if the led is OFF, then all of my climate appliances are off. I have 5 climate elements.

I cannot seem to get this to work reliably, however i did get some workarounds that suggest that 1-there is a bug in comfort OR 2-there is a bug on how i do logic :-).

In terms of responses here is what i did.

1- Every time i turn any climate device ON, the SCS1_2 Led is turned on
2- Every time i turn any climate device OFF, i run the following response at the end:

AqCheck:
if Output Clima_1 <> 0 Or Output Clima_2 <> 0 Or Output Clima_3 <> 0 Or Output Clima_4 <> 0 Or Output Clima_5 <> 0 Then
Output SCS1_2 On
Else
Output Scs1_2 Off
End if

I attached this response to SCS1_2 button and every time i press it it works OK.

However, when this response is run automatically, part of a OFF response of every climate element i realized it doesn't work.

Example:

My WC heater OFF response is:

Output Clima_WC Off
Knx Off KNX 2052
Set AQ_WC=0
Do AqCheck ---> this response doesn't work/the Led does not turn off


Workaround: add a 1 second timer to the response:
Output Clima_WC Off
Knx Off KNX 2052
Set AQ_WC=0
Do AqCheck After 1 Seconds Using AqCheck

This works! BUT not completely!

If the response is inside another response that is triggrered by a (different) timer it does not work.

Example: turn off AirCon:

Response AC_Sala_OFF:
IR code AC_Sala_OFF To IR_Sala
Do AqSalaOFF After 30 Seconds Using AC_Quarto

Response AqSalaOFF:
Output Clima_Sala Off
Knx Off KNX 2049
Set Aq_Sala = 0
Do AqCheck After 1 Seconds Using AqCheck


Thanks for any thoughts!

BR
AP



 Posted: Wednesday Dec 11th, 2013 01:49 am
   PM  Quote  Reply 
2nd Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

"My WC heater OFF response is:
Output Clima_WC Off
Knx Off KNX 2052
Set AQ_WC=0
Do AqCheck ---> this response doesn't work/the Led does not turn off"

AqCheck checks for outputs Clima1 to Clima5 but I do not see how WC Heater Off affects these outputs.






 Posted: Wednesday Dec 11th, 2013 08:44 am
   PM  Quote  Reply 
3rd Post
cab123
Member
 

Joined: Saturday Oct 3rd, 2009
Location: Coimbra, Portugal
Posts: 25
Status: 
Offline

  back to top

Hi Ident,

My mistake when writing here on the forum.

The correct response is:

AqCheck:
if Output Clima_Sala  <> 0 Or Output Clima_WC <> 0 Or Output Clima_3 <> 0 Or Output Clima_4 <> 0 Or Output Clima_5 <> 0 Then
Output SCS1_2 On
Else
Output Scs1_2 Off
End if


I have changed the names because they are in poorly chosen Portuguese/english words.

Last edited on Wednesday Dec 11th, 2013 08:49 am by cab123



 Posted: Wednesday Dec 11th, 2013 11:35 am
   PM  Quote  Reply 
4th Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

The possible reason is that the outputs do not change instantly when you send the command, but they take a little time, (in milliseconds) to complete the action of switching on and off, which is why when you check the output after a 1 second delay then the state is correct

Are you using flags with the outputs eg
Output Clima_WC Off
Knx Off KNX 2052
Set AQ_WC=0

is AQ_WC representing the Output? If so you can tst the flags instead of the outputs



 Posted: Wednesday Dec 11th, 2013 09:21 pm
   PM  Quote  Reply 
5th Post
cab123
Member
 

Joined: Saturday Oct 3rd, 2009
Location: Coimbra, Portugal
Posts: 25
Status: 
Offline

  back to top

Hi Ident!

Perfect answer!

AQ_WC is the counter associated to the group address in KNX for this element. I actually added those yesterday to correct the KNX touchscreen and keep everything in sync.

I've changed my AqCheck response to test the counters instead of the real outputs and it works great. no delay needed and works in every situation.

BR



 Current time is 06:12 am
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems