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

Show username etc in sensor #83

Closed mikael-andersson closed 2 years ago

mikael-andersson commented 2 years ago

Is your feature request related to a problem? Please describe. NA

Describe the solution you'd like I would like a sensor to show me the username or more or less all information I see in the file .ip_autenticated.yaml. If one has several users on a system you would see exactly who have logged in.

Describe alternatives you've considered An alternative is to read the file .ip_autenticated.yaml but it is 'nicer' to get the information such as username straight in to Home Assistant.

Additional context NA

maymaymay commented 2 years ago

Isn't that what You want? obraz

mikael-andersson commented 2 years ago

Yes. :) How do I see that?

maymaymay commented 2 years ago

Change 241 line in sensor.py to: def extra_state_attributes(self):

mikael-andersson commented 2 years ago

Works great, many thanks! :) I might create a pull request in order to add this information to README.md.

maymaymay commented 2 years ago

That change is already done, but not released to HACS yet.

mikael-andersson commented 2 years ago

OK, sounds good, thanks again for your engagement.