xlcnd / meteoalarmeu

A 'custom component' for Home-Assistant for Weather Warnings from meteoalarm.eu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple sensors

mcshosho opened this issue · comments

With binary_sensor defined in configuration.yaml, it was possible to add multiple sensors (for multiple regions). With this new way of defining configuration this is not possible anymore because the unique ID generated at initial config is "meteolaram" and this is not changed even if I rename the initial sensor. Do you think it will be possible to generate a complex unique id (like meteoalarm+country+region)? In this way multiple sensors can be added.

commented

Initially I went for the possibility of multi sensors... However, when I evaluated the implications for future developments, I saw that it will make the code very complicated. So for now I think this is the best solution.

But I will take a look again!

I would like to use multiple sensors, too. So just to let you know there are isn't only one who wants it.
For now I am happy to have one working sensor (as for me the official integrations isn't working for a long time, too).
Thanks!