| Posted: Wednesday Feb 8th, 2012 01:22 pm |
|
1st Post |
AdrianL
Member
| Joined: | Friday May 2nd, 2008 |
| Location: | |
| Posts: | 20 |
| Status: |
Offline
|
back to top
|
At what point during the responses Security Off, Away Mode etc does the attribute Security Mode change its value? At the beginning or at the end or perhaps it's not defined? I suppose my real question is can I tell which mode I'm coming from during these responses, in particular Security Off?
|
| Posted: Wednesday Feb 8th, 2012 07:26 pm |
|
2nd Post |
ident
Administrator

| Joined: | Wednesday Aug 9th, 2006 |
| Location: | Singapore |
| Posts: | 1617 |
| Status: |
Offline
|
back to top
|
The security mode is changed before the security mode responses so you would not be able to check the previous mode
You can save the security mode in a counter in each mode eg off = 0, away = 1, night=2, day=3 in the security mode response. You can check the old security mode in the same security mode response before you change the counter
|
| Posted: Thursday Feb 9th, 2012 02:10 pm |
|
3rd Post |
AdrianL
Member
| Joined: | Friday May 2nd, 2008 |
| Location: | |
| Posts: | 20 |
| Status: |
Offline
|
back to top
|
Thank you for your response. I think it's a shame that the Security Mode attribute is not changed at the end of these responses. It must be quite common to want to know which mode you are coming from, especially in the Security Off response, and although using a counter as you suggest is a work around, it is not as easy and the meaning of the code is less obvious as you have to remember the mapping between the Security Mode and the integer value of the counter. Would it be possible to change the way it works, or perhaps better introduce a new attribute that behaves in this way?
|
| Posted: Thursday Feb 9th, 2012 03:49 pm |
|
4th Post |
TheMax74
Member
| Joined: | Monday Jul 16th, 2007 |
| Location: | Italy |
| Posts: | 177 |
| Status: |
Offline
|
back to top
|
Hmmm...
If security will be changed after responses, all my logic will fail miserably!
:-)
|
| Posted: Thursday Feb 9th, 2012 03:56 pm |
|
5th Post |
AdrianL
Member
| Joined: | Friday May 2nd, 2008 |
| Location: | |
| Posts: | 20 |
| Status: |
Offline
|
back to top
|
That's why I suggested a new attribute rather than changing the existing.
So do you have one response that is called for several different changes of security mode?
|
| Posted: Thursday Feb 9th, 2012 04:26 pm |
|
6th Post |
TheMax74
Member
| Joined: | Monday Jul 16th, 2007 |
| Location: | Italy |
| Posts: | 177 |
| Status: |
Offline
|
back to top
|
In this case, i use a Counter, as suggested by ident. This Counter also updates my Gira Homeserver via KNX group address.
|
|