custom-components / authenticated

A platform which allows you to get information about sucessfull logins to Home Assistant.
MIT License
82 stars 28 forks source link

Use template for exclude list #59

Closed claytonjn closed 3 years ago

claytonjn commented 3 years ago

Is your feature request related to a problem? Please describe. The official Android HA app provides an optional sensor with the current device IP. It would be nice if I could automatically exclude IPs if they are from a trusted device.

Describe the solution you'd like Allow the exclude list to take templates; user could write a template that pulls in states from as many sensors as desired, as well as any hard-coded IPs, and returns a list for exclusion.

Describe alternatives you've considered One option would be to allow a user to specify sensor(s) that Authenticated should look at to "exclude" new sign-ins. This would likely be the easiest for the end-user to configure to add this functionality, however it would limit this enhancement to this specific use-case. Templates allow for many additional potential uses (i.e. tie-in home network DHCP address, etc)

Additional context N/A

If I get free time I may try to tackle this and could submit a PR if you feel this is a good idea; it may be a while before I have time though.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.