custom-components / sensor.owlintuition

A set of sensors to integrate the OWL Intuition devices network
MIT License
11 stars 9 forks source link

Added support for multizone sensors #28

Closed glpatcern closed 1 year ago

glpatcern commented 1 year ago

Fixes #23.

@LankyGamer83 would you be able to test this branch? I don't have myself a multi-zone sensor (and I'm going to try that the rest does not break) so I'd appreciate some feedback from you.

Also, for now there is no logic to self-discover the zones and you'd have to specify them as multiple sensors, which is suboptimal. Edit: you just need to set zones: 2 (i.e. the total count of zones you have) in your configuration, and multiple sensors will get defined to match the zones.

glpatcern commented 1 year ago

I have tested this PR with my electricity-only, single-zone setup, so at least the existing stuff does not break. Therefore I'm merging it, hopefully multi-zone setups have a better support compared to before (only one random zone was retained).