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

Add last_authenticated/access_time As Attribute in HASS #5

Closed databoy2k closed 6 years ago

databoy2k commented 6 years ago

Is your feature request related to a problem? Please describe. I'm actually hoping to use your component as a trigger for when we log into HASS for automations (i.e. when we log into HASS, it triggers Zoneminder to turn the cameras from "off" to "monitor")

Describe the solution you'd like sensor.last_successful_authentication to show another attribute in HASS: access_time (which I will then use in a template to look for changes)

Describe alternatives you've considered Coding it myself, but... I don't know how. Sorry!

Additional context Even better, if you would be so good, would be to add two attributes: Most recent access time and Previous access time (which would make comparisons even easier for my trigger). Extra work though so don't worry about it.

databoy2k commented 6 years ago

My goodness! Thanks a ton - absolutely hugely appreciated!