-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[paradoxalarm] Add access to the different Alarm States (Armed, Armed in Stay, Was Is in Alarm) #14608
Comments
Hi Mark, For example: If we have "was in alarm", "armed in stay" and "armed", which one to take into consideration? See the coding: Cheers, P.S. I don't know how to format it properly |
Hi Konstantin If you did a consolidated status, would you be able to distinguish between the different status and return the correct string? From what I know you cannot be ArmedInStay as well as ArmedInAway or ArmedInNoEntry at the same time. But you might get be able to be Armed? Maybe (not my area)???
But a more flexible option might be to Have the Overall Status Being In Alarm or Armed or Disarmed - could even add the extra one) with a more detailed channel for each state being InAlarm On/Off Then you can choose which works better for the scenario? |
Yes. |
OK... in order to still keep this backwards compatible, I think what we can do is the following: Implement additional channel (only one) which returns calculated sub-state (or "exact state") of all these which is the exact state, i.e. one of these 8 or "disarmed" if none of these 8 bits is set. What do you think? |
You can try the new channel using this release: https://github.com/theater/openhab-addons/releases/tag/v4.0.0-alpha6 |
I am getting Armed and Disarmed only. When Armed Stay I just get Armed. |
Can you raise log level to trace and send me a random log from a retrieve
during arm with stay?
…On Wed, Mar 15, 2023 at 6:18 PM Mark van Gelder ***@***.***> wrote:
I am getting Armed and Disarmed only. When Armed Stay I just get Armed.
—
Reply to this email directly, view it on GitHub
<#14608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7Q3LSELGRQBMKZJJS5PVLW4HTVBANCNFSM6AAAAAAV3WAYNY>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Hi. Hope this is enough. Partition 4 is Armed STAY |
Hi, I've uploaded a new version in the same release. No fix but more logging. I need to see what happens in the parsing. Hopefully now we will have the full state like in the zones for better debugging. Sorry for the inconvenience but no time to test locally... |
Thank you... I have installed an running. Logs as follows: I did notice the build seems to be the same as yesterday? Is that correct?
|
Hi, Cheers, |
OK. Added also a new table with the possible detailed state values in the README. |
All these additions are working really well. Thank you so much. Do you think there is still an opportunity to make a cosmetic change since you have submitted the PR already? To match the Keypad display for the details States, could the String be changed? I know these will not be changed once released as they would affect anyone who is using them. Maybe to Away Armed and Also Possibly : I am trying to make my widget reflect the Keypad as best I can - not always possible: Just something you could consider - most certainly not the end of the world. Couldn't be happier with what you have managed to add already. |
Yeah. No worries. This change is trivial and totally makes sense.
Will do that today and will inform you so you could have a look.
…On Fri, Mar 17, 2023, 6:22 PM Mark van Gelder ***@***.***> wrote:
All these additions are working really well. Thank you so much.
Do you think there is still an opportunity to make a cosmetic change since
you have submitted the PR already?
To match the Keypad display for the details States, could the String be
changed? I know these will not be changed once released as they would
affect anyone who is using them.
[image: image]
<https://user-images.githubusercontent.com/84638697/225960540-e529d4c4-6039-4614-9caf-c00ffd17d502.png>
Maybe to
Away Armed
Stay Armed
NoEntry Armed
and Also Possibly :
Silent Alarm
Audible Alarm
Fire Alarm
I am trying to make my widget reflect the Keypad as best I can - not
always possible:
[image: Statuses]
<https://user-images.githubusercontent.com/84638697/225961334-75bb3489-605a-4951-9ff7-0770600bb9c6.gif>
Just something you could consider - most certainly not the end of the
world. Couldn't be happier with what you have managed to add already.
—
Reply to this email directly, view it on GitHub
<#14608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7Q3LV364BI3UDMLUC7PIDW4SFUDANCNFSM6AAAAAAV3WAYNY>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Thank you. Looks good. Will continue to work with the latest one and let you know. Did you decide to leave the default Linked Item Name as is?
vs
Just asking because the the Widget I am working on will relay on the names of all the Channel Items, so trying to match the defaults as far as I can, and this one is a bit different to the others because of the lowercase p for Partiton. Hope you have a good week-end. |
Wooah... I don't know where this default value comes from. Probably the UI
is building it based on some reflection of the field names in the class...
I changed the typeID in the metadata file to be all capitalized and I hoped
it's coming from there. Can you try it again with a new item/channel?
See below:
<channel-type id="detailedState">
<item-type>String</item-type>
<label>*Detailed Partition State*</label>
<description>The detailed state of partition (contains sub-states like Stay
in Armed, Armed no entry, etc)</description>
<state readOnly="true" pattern="%s"/>
</channel-type>
…On Sat, Mar 18, 2023 at 11:42 AM Mark van Gelder ***@***.***> wrote:
Thank you. Looks good. Will continue to work with the latest one and let
you know.
Did you decide to leave the default Linked Item Name as is?
Partition_Beams_Detailed_partition_State
vs
Partition_Beams_Detailed_**P**artition_State
Just asking because the the Widget I am working on will relay on the names
of all the Channel Items, so trying to match the defaults as far as I can,
and this one is a bit different to the others because of the lowercase p
for Partiton.
Hope you have a good week-end.
—
Reply to this email directly, view it on GitHub
<#14608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7Q3LUXYYPLNQDPWTMS37DW4V7PVANCNFSM6AAAAAAV3WAYNY>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
I have deleted and re-added the Partition THING, and now the default is all CAPS for first letters: I have noticed that most of the linked ITEM defaults have also changed to have _ between each word. I have just recreted to match that. Maybe 4.0.0 does something different. It is a pity that openHAB requires a delete and re-add to pick these changes. Thank yous o much |
Well it's not a big deal as you usually do it only once initially and you
can enter there anything.
OK, so for now all requirements seem to be settled. Let's hope someone
finds time to review both PRs soon so we can merge them in the main branch.
Cheers,
K.
…On Sat, Mar 18, 2023, 2:12 PM Mark van Gelder ***@***.***> wrote:
I have deleted and re-added the Partition THING, and now the default is
all CAPS for first letters:
[image: image]
<https://user-images.githubusercontent.com/84638697/226105064-2cd94e99-49c7-43f6-9516-5b7458f20ab6.png>
I have noticed that most of the linked ITEM defaults have also changed to
have _ between each word. I have just recreted to match that.
Maybe 4.0.0 does something different.
It is a pity that openHAB requires a delete and re-add to pick these
changes.
Thank yous o much
—
Reply to this email directly, view it on GitHub
<#14608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7Q3LX7CZOTXYPAUFEBH2DW4WRBBANCNFSM6AAAAAAV3WAYNY>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Yes. All great. Hopefully reviewed and merged soon. |
The current version of the Binding seems to groups the different Armed states into the general Armed state, so it is not possible to see what type of Arm in the partition is in.
Armed - is usually used to arm all zones and exit the partition/area
Armed Stay - allows arming selected Zones so that you can "Stay" in the area, but certain selected Zones are "bypassed/ignored". This allows movement in select areas.
It would be really nice to have access to the additional states, either as distinct "switches" such as:
Armed Exit - On/Off
Armed Stay - On/Off
Armed Instant - On/Off
Was Is in Alarm - On/Off
The other option would be to Just Have a String in the Current State String to denote the current state, but as you mentioned that would require:
I think the separate Channel option would be easier to work with, though both have there pros and cons.
The Caddx binding which I used to use had separate channels for each Armed state
The text was updated successfully, but these errors were encountered: