After using Home Assistant for more than a year I finally decided to try and write my first custom component. A sensor which tracks the latest price of your favourite stock. Even though it is a Swedish bank it is possible to find stocks from the following countries:
Sweden
USA
Denmark
Norway
Finland
Canada
Belgium
France
Italy
Netherlands
Portugal
Germany
Further instructions can be found on the github page.
I personally use this to send a summary of my stocks change in percent every day after the stock market closes. Would love some feedback if you try this out, find a bug or have a suggestion for improvement.
i havenât tried you component yet, but I will some day! Just wanted to let you know that I appreciate you updating this thread as I had totally forgot that it existed. Thanks in advance for a great component!
Happy to hear that Iâve mostly tried this on swedish stocks, so there could be some bugs with other countries.
Since I track 20+ stocks and I donât like to write that much yaml I created a simple script to generate all the sensors. Makes it easy if you want to change monitored conditions for all of them.
Finally decided to realease version 1.0.0! It includes some cleanup and an optional configuration âsharesâ, could be used to calculate todays profit/loss or total value.
Now I will focus updating the documentation and adding examples of how I use it in automations, this will also includes scripts like the one I posted earlier.
I will also try to makes the update async, but havenât played around with that before some it might take some time.
Just found your stocks component, which looks very nice, butâŠ
unfortunately I tried the first two stocks, and both are not available.
IBM.F - IBM in Frankfurt - 851399
and
BMW3.F - BMW Vorzugsaktie in Frankfurt - 519003âŠ
I donât know anything about the german stock market but it seems the only available german market place at avanza is Equiduct, maybe that gives a clue? I canât find the stocks you are reffering to at their site either, where did you get the ids?