iMicknl / ha-tahoma

Custom component for Home Assistant to interact with smart devices via Somfy TaHoma or other OverKiz based API's.
MIT License
152 stars 30 forks source link

Auto discover Overkiz devices (Somfy TaHoma box, Connexoon) #265

Closed iMicknl closed 3 years ago

iMicknl commented 4 years ago

Is your feature request related to a problem? Please describe. To improve discoverability of this integration when it will be in core, it would be good to auto discover based on available Overkiz gateways in the network.

Describe the solution you'd like Implement the autodiscover flow using ssdp, zeroconf or discovery.

Additional context My OverKiz device uses the gateway id in the hostname and the MAC address for Overkiz starts with [F8811A](https://ouilookup.com/vendor/overkiz).

Hostname: gateway-xxxx-xxxx-xxxx MAC address: F8:81:1A:xx:xx:xx

PoVPoV29 commented 4 years ago

Do you need Somfy OUI equipement or help to code ?

iMicknl commented 3 years ago

image

I just found out that they broadcast _kixbox._tcp., which we could use perhaps.

iMicknl commented 3 years ago

Since we will support Rexel and CozyTouch soon under the TaHoma domain, it would be great to have autodiscover whem moving this integration to core.

If we can not do it based on the tcp, we can have a look at this in the future: https://github.com/home-assistant/core/pull/45087

tillstaff commented 3 years ago

I made a check with "avahi-discover" but I didn't find anything with my Cozytouch hub.

But I can confirm that I have the same DHCP specification : Hostname: gateway-xxxx-xxxx-xxxx MAC address: F8:81:1A:xx:xx:xx

iMicknl commented 3 years ago

Thanks! I believe best way would be to utilise the zeroconf and dhcp discovery possibilities of Home Assistant.