jheling / freeathome

Free@Home component for Home Assistant
112 stars 41 forks source link

Configure component through Settings -> Integrations #71

Closed Tho85 closed 3 years ago

Tho85 commented 3 years ago

Allows to configure this component via the Integrations panel in settings, also known as config flow.

Advantages:

Screenshots:

image

image

miezie commented 3 years ago

This actually contains the upgrades I was just thinking off :). NICE!

jheling commented 3 years ago

Good work, I was just on the point of uploading my own version of the integrations panel. In my version I have automatic discovery through zeroconf working. You only have to enter username and password. I will try to integrate this in your version.

Tho85 commented 3 years ago

Nice! Do you think you can add auto discovery to this code? I have thought about it as well, but didn't implement it since my SysAP sits in its a different network than HA, and I'd have to rewire my network to actually test it.

Maybe you can reuse this config flow? I think it would be great if hostname and port would be pre-filled from auto discovery, and you'd only have to enter username and password. This way it would still be possible to add the integration manually if auto discovery doesn't work.