Skip to content
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

Switch to bypass zones #20

Closed
IAmVespa opened this issue Sep 21, 2023 · 8 comments · Fixed by #22
Closed

Switch to bypass zones #20

IAmVespa opened this issue Sep 21, 2023 · 8 comments · Fixed by #22
Assignees
Labels
enhancement New feature or request

Comments

@IAmVespa
Copy link

Is your feature request related to a problem? Please describe.
Sometimes is handy to bypass certain zones in order to fully arm the system (eg, slightly open window in summer).

Describe the solution you'd like
Create a switch for each zone in order to toggle the zone bypass function.

Describe alternatives you've considered
Used to be very simple with old BTicino MyHomeUp app, just a couple of touch away. With the new Home + Control is way too complex (hidden many touches away).

Device
BTicino 4200 ( Kesnia Lares 16IP)

Additional context
Info on current status (bypass - BYPASS or UN_BYPASS) easily read from the /zonesStatus16IP.xml
Command which need to be used to toggle the switch: http://192.168.XXX.YYY/xml/cmd/cmdOk.xml?cmd=setByPassZone&pin=XXXXXX&zoneId=2&zoneValue=0
Where:

  • pin: user code (maybe needs to be hardcoded from configuration ??)
  • zoneId: zone number as ordered in /zonesDescription16IP.xml starting from 1
  • zoneValue:
       - 1: bypass ON
       - 0: bypass OFF

Let me know if more info are needed

@IAmVespa IAmVespa added the enhancement New feature or request label Sep 21, 2023
@johnnybegood
Copy link
Owner

I am a bit hesitant to store a PIN, maybe I should expose this a service instead.

@johnnybegood
Copy link
Owner

In alarm control panel logic there is something available called AlarmControlPanelEntityFeature.ARM_CUSTOM_BYPASS, but not sure yet how the bypass works here

@IAmVespa
Copy link
Author

I understand your point, storing the PIN is far from ideal.
I am not familiar with the concept of services, but, if it gives the ability to bypass/unbypass a zone, than only a simple binary sensor is needed to know the current zone status.

I took a look at the ARM_CUSTOM_BYPASS option in the Alarm Panel, but, from my understanding, is currently only a further alarm activation option. Do you see any other option with the ARM_CUSTOM_BYPASS?

@johnnybegood
Copy link
Owner

It could be combined with the switch, but only at arm custom bypass the bypass is done. Then I have the PIN from user entry

@IAmVespa
Copy link
Author

Yeah, that could work.
Then, would you bring it back to unbypass condition each time the alarm is disarmed?

@johnnybegood johnnybegood self-assigned this Nov 1, 2023
@johnnybegood johnnybegood linked a pull request Nov 2, 2023 that will close this issue
@johnnybegood
Copy link
Owner

@IAmVespa I went with the PIN storage approach, other integration also seem to use this

@johnnybegood
Copy link
Owner

Available as beta version

@IAmVespa
Copy link
Author

IAmVespa commented Nov 2, 2023

Thanks a lot, just installed!
So far, works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants