palazzem / ha-econnect-alarm

Home Assistant integration that provides a full-fledged Alarm Panel to control your Elmo/IESS alarm systems.
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Add choice to leave one or multiple areas armed on "Disarm" #168

Open igorvita opened 6 days ago

igorvita commented 6 days ago

Is your feature request related to a problem? Please describe. When I disarm the alarm, my anti-aggression areas is disarmed, too. I'd like to leave that areas armed 24h/24h

Describe the solution you'd like Choice to leave one or multiple areas armed on "Disarm".

Describe alternatives you've considered At the moment I re-arm Area manually or on other scenarios.

Additional context Anti-aggression areas are connected to alarm buttons that people can press in the event of danger.

palazzem commented 6 days ago

Thanks @igorvita for your suggestion! This feature request makes sense and it's something I can implement in the coming release. That said I'd like to understand better your use case to be sure we implement the right thing. Which one of these options fits the best your use case?

  1. You want to monitor and be capable to arm/disarm your anti-aggression areas (e.g. through specific scenarios or automations), but when you simply "disarm" the whole system you want to keep it enabled?
  2. You don't want to monitor your anti-aggression areas, meaning you don't want the integration to control or monitor them in any way

The difference seems subtle, but in (1) you want to configure what "disarm" does, in (2) you want to configure what HA should not control.

Speaking of which, there is already an experimental feature you may use that implements (2) (requires version 2.3.0+). To be clear, this is not a solution for your request, but more of a workaround that you can temporarily use until I implement your suggested feature. To use it, add the following to your configuration.yaml file:

econnect_metronet:
  experimental:
    managed_sectors: [1, 2, 4]

Of course, replace [1, 2, 4] with the area you want the system to control. For example, if you have 6 areas and your anti-aggression areas are the number 2 and 3, your configuration should be:

econnect_metronet:
  experimental:
    managed_sectors: [1, 4, 5, 6]

Then, your anti-aggression areas should "disappear" from HA. Anyway, let me know what options reflects better the feature you would like to see in HA, and I'll work on it in the coming weeks! Thanks again for your suggestion!

igorvita commented 6 days ago

Thank you so much @palazzem for your kind answer. I understand your question, my use case in n.1.

But for now I'll try your workaround suggestion as well.

Thank you again, I'm at your disposal for any testing need.

palazzem commented 6 days ago

Great @igorvita, I'll keep you posted! I have 1 week stop next week, but I can work on that the week after!