Hi Dave,
I’ve looked at your alarm_arm_custom_bypass service but i can’t get it “working” and looking your code I see it is kind of work in progress.
Anyway when i call the service with a visonic binary_sensor id, can see that HA seems to execute the service but no logs are produced by your function. i’m in debug level for all logs and if i add a logger entry before the self.queue condition i still can’t get it in the logs.
Do i miss something for HA to call your registred alarm_arm_custom_bypass service ?
Here are the logs of the service call.
DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1807958928] Received {'type': 'call_service', 'domain': 'alarm_control_panel', 'service': 'alarm_arm_custom_bypass', 'service_data': {'entity_id': 'binary_sensor.visonic_z02'}, 'id': 45}
DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=alarm_control_panel, service=alarm_arm_custom_bypass, service_data=entity_id=binary_sensor.visonic_z02>
It would be nice to me having sensors bypass/isolation because i live in a 3 floors house and open windows in last floor are not that critical so i wish i could arm my non ready panel anyway.
I know this can be tricky to integrate in the UI.
I tried something like for testing purpose:
- type: entity-button
entity: binary_sensor.visonic_z02
tap_action:
action: call-service
service: alarm_control_panel.alarm_arm_custom_bypass
service_data:
entity_id: binary_sensor.visonic_z02
Maybe coupled with conditional card or something else, it could do the job…
Off course it would be far better with a custom card that could list all triggered sensors and allowing them to be bypassed but this is an other story.
Olivier