homeassistant-mikrotik_router icon indicating copy to clipboard operation
homeassistant-mikrotik_router copied to clipboard

DHCP feature - client and/or relay + server

Open TV456 opened this issue 8 months ago • 4 comments

Is your feature request related to a problem?

It would be awesome to have a feature where you can integrate the dhcp values like client, relay and/or server. In my case I would really like to read the dhcp client values and let them show up in HA. It is helpfull to get this information when you have a dynamic dns from your ISP. There has been a earlier feature request.

Desired solution

Not all users need this information, because it depends on their set up. I would love to see an extra option in the configuration to select. In this case the option (i.e.) 'DHCP client list' which returns the various interface, IP-address, lease and status values.

While tinkering with setting up other sensors for my system health, I found that the script/api already retrieves the ip/dhcp/client values. I have tried to alter the code to set it up like I described above, but unfortunately I lack the coding skills to get it up and running. (I am breaking the configuration options and with that the api request for all 'extra' values.)

Alternatives

There is also the possibility to retrieve the desired values from the IP Address list, which I used in my reply on the earlier feature request I have replied how to create and environmental variable and a script to update it. This works but it would be a very nice feature to have 'out-of-the-box'.

TV456 avatar Nov 05 '23 10:11 TV456