Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble activating a response
#1
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
Reply
#2
[color=\"#0000ff\"]\"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\"
[/color]
AqCheck checks for outputs Clima1 to Clima5 but I do not see how WC Heater Off affects these outputs.




Reply
#3
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.
Reply
#4
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
[color=\"#0000ff\"]Output Clima_WC Off
Knx Off KNX 2052
Set AQ_WC=0
[/color]
is AQ_WC representing the Output? If so you can tst the flags instead of the outputs

Reply
#5
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)