Information on how to parse .yaml file and read into sensor?

ya i just redownloaded it from the hacs store so it should still work to downoad and install it. still doesnt have attributes though.

Did a clean install in my dev instance… this is what I have

wait how u do dat?

only added the authenticated to the custom_rep folder
and added this to my yamls

sensor:  
  - platform: authenticated

EDIT: config.yaml

Got it from the github zip file

and just unzipped it into the custom_components directory on your home assistant?

Sorry…I do am a bit hasty when typing…

  1. got the zip file form the github 21.9.0 (old) https://github.com/custom-components/authenticated
  2. extracted the authenticated folder in my custom_repositories folder
  3. restarted
  4. added this to my configuration.yaml
sensor:  
  - platform: authenticated
  1. restarted
    and then the .ip-authenticated…yaml showed up and the sensor too

whooo-leeeeyyy-shiiittt, could i have done that this whole time? god damn.

This thread no longer appears to be seeking an answer to the original question (How to parse .yaml file and read into sensor?) because it is now focused on the proper configuration of a custom component. Therefore I will bow out and let others more familiar with the custom component to sort it out. Good luck!


EDIT

To users reading this thread, the post marked with the Solution tag doesn’t answer the original question ‘how parse a yaml file and read into a sensor’. It’s a solution for a completely different issue.

1 Like

And whenever you get overly irritated by all the messages you can exclude stuff too

  - platform: authenticated
    exclude: 
        178.197.0.0/16 
        192.168.1.0/16

i actually would like to know how to do that because i have no idea how a good majority of this stuff works and feel like i should. but i do have an answer on how to deal with intrusions again. so eh

There are multiple options, but yaml is not a format that is used to exchange data so not sure (could still be) if this would work. json/csv/etc. are structured for this.
the rest integration/sensor helps with json and you can page through the file to acquire the data you need.
Reading a whole (!) file is for what I know not possible, this is also not the intent …HA is not a file editor/manager

EDIT: that said…am out too… no longer using this integration myself but I hope it helped for you

What alternative do you use?

By applying my (above) filtering I had no logons to report on for more than 1 year … i.e. I wanted only to see who logged on from odd IP (non-local and non-Swiss)
HA comes with its own authentication protection and this is (for me !) more useful then to ‘only’ getting notifications who/when/where logged on. This is I repeat a personal view.
If you want to track/show people that log on (repeating that I do not) then authenticated seems the right way to go
EDIT: since its last update it is very stable so small risk on using it but there may be issues when python changes, recently to v3… but if you are a bit into this then you could maintain your own version of it (I have a few forks myself)

I’m actually using it to disable external access if someone logs in and isn’t home at the time by turning off a z wave switch my ONT is plugged into and also I do like being able to see who logs in if necessary. I need to learn python properly so I can deal with issues if python changes. I only know enough to make this little python remote control tank I got on Amazon work.

So this will help a bit then.
My (France based) family shows HA-app logins from all across the country, even when they are 5km away from home they could show locations from >800…it all depends on the provide here.

Final words: I will no longer be responding to this