elad-bar / ha-edgeos

Integration with EdgeOS (Ubiquiti)
132 stars 24 forks source link

incomplete list of devices in options menu #41

Closed jwws closed 2 years ago

jwws commented 3 years ago

In the "options for EdgeOS" dialog, the two dropdowns for "monitored devices" and "tracked devices" only show a fixed number of devices with checkboxes (I see 7 in each). However, I have more than 7 devices, and don't seem to have a way to select/add them. There's a reference to using a CSV list, but nowhere to put that. The component sees all of my devices (they're listed in the "unknown devices" sensor).

I'm guessing this is just a UI bug to not have the full list of devices to select for monitoring+tracking? I'm happy to manually add them to a file, but it would help if the options dialog would describe where to do that, if it can't be done there.

elad-bar commented 3 years ago

Are all devices configured as static ips?

jsp196 commented 3 years ago

I know this is an old thread, but do the monitored devices need to have static IPs to work? So for example, if I want to use it as presence for my cell phone, I would need to set a static IP for my phone?

elad-bar commented 3 years ago

Yes, otherwise your device can change its IP, what would you track in that case?

kkplein commented 3 years ago

@elad-bar well, the mac address for example..?

I found this thread, because in our case, the dropdown for both monitored and tracked devices are empty and I can also not type an IP there. Is this, because this only works with fixed IPs, and not dhcp-ed IPs..? (which is what I am using for wifi devices)

jsp196 commented 3 years ago

It will only work for static IPs. Dev made a good point - if the IP changes, you would be incorrectly marked away.

kkplein commented 3 years ago

I don't understand. A mac address usually persists, even in case dhcp handed out a different ip address. Anyway: not using fixed IPs here, so that's probably why my dropdown is empty, and I cannot use this integration for presence. Nice integration anyway, thanks for it!

jsp196 commented 3 years ago

Sorry I misread what you said - it does not use MAC though that would actually be a great way to do it. @elad-bar Could you add MAC tracking integration?

elad-bar commented 3 years ago

Will check it and update how it works

bjs-pdx commented 3 years ago

I too would appreciate the ability to monitor/track via MAC. This actually makes sense as you have rightly indicated IP addresses can change, but MACs remain constant. (Except on Apple products which can hide the real MAC for wireless, but that's a different issue.) :-)

kkplein commented 3 years ago

Is there any update here..? Seems mac addresses still cannot be used..? (sorry: no, I don't have the skills to add this feature myself...)

elad-bar commented 2 years ago

tracking by mac is not feasible as the router doens't support it, for static ips there is continuous update, for leased devices there is only expiration since created, once getting to the expiration the device's expiration will get prolonged or removed.