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

feat(experimental): add managed sectors to control only part of available areas #146

Closed palazzem closed 7 months ago

palazzem commented 7 months ago

Related Issues

n/a

Proposed Changes:

Provides an internal configuration to manage only a subset of possible sectors. This is useful if the alarm panel should not take into consideration some sectors, meaning it will consider itself "Disarmed" even if some sectors are activated.

WARNING: This change is experimental, meaning it will be removed without deprecation notice.

Usage

Add the following to your configuration.yaml:

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

Note that [1, 2, 4] must always be a list, and it must match the number of your sectors. An empty list, or a missing configuration, means that all sectors are managed.

Testing:

Add the configuration as described above. You should see some sectors "Unavailable".

Extra Notes (optional):

n/a

Checklist

coveralls commented 7 months ago

Pull Request Test Coverage Report for Build 7942825999

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
custom_components/econnect_metronet/init.py 0 2 0.0%
<!-- Total: 4 6 66.67% -->
Totals Coverage Status
Change from base Build 7942678110: -0.07%
Covered Lines: 655
Relevant Lines: 702

💛 - Coveralls
palazzem commented 7 months ago

This change is expected to not have coverage as the setup entry step is not tested right now.