rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
383 stars 74 forks source link

Allow hostname in configuration #266

Open pspeirs opened 1 year ago

pspeirs commented 1 year ago

The problem I and a lot of other people are experiencing is that the AD410 (and assumably other devices) implement a dynamic MAC address alongside the apparent hard coded address. This seems to come to light on restart where a previously unknown MAC appears and is assigned a different IP address to the one that is configured in this component. I have tried configuring the plugin for hostname however it blows up. Best practice is obviously to use DNS over IP address and as such my request is to implement this functionality as it would get around the issue of the plugin breaking every time the IP changed.