Aha, shouldnât be that hard then!
I am already using HACS and quick look at the links you shared it seems like it should not be that hard to get what I want actually
Ill give it a try tonight
Thanks for the help!
And again, great job on the component
Works great! Thanks, I also saw you put the " % gain/loss calculation " on your todo list! Bravo. Great work on this, seems to be more robust and works better then the alpha vantage integration. Iâd love to have this integrated directly into hass for easier updates / watching the repo, but you canât win them all I suppose. Iâm going to open up a short ticket for something that may interest you as an enhancement. Fractional shares! Iâm one of many people now who partake in fractional share buying/selling. I know this integration doesnât do a whole lot of that, but for people (and when you have gain loss calc working) who use fractional shares, this would mean more accurate reporting in hass. Just a thought, cheers!
Tjena @claha!
Thanks for this component - love it! have you considered to specify the opening hours for each market in order to not update the stocks when the markets arenât open?
Has anyone come up with a beautiful way of presenting this? Iâm quite new to Home Assistant and havenât found the best way for that yet?
Wow, thatâs really helpful! Very nice! Perfect for a rookie like me to piggyback
Can I just ask, in order to display any of the monitored_conditions/attributes, do I use a template sensor or what is the easiest way to get the changePercent dispayed?
How do you @eifinger get a history graph of the stock, mine is flat and the dates are todays dates only:
Go to Developer Tools -> Services and use homeassistant.update_entity You might need to enable Developer Tools⊠You can write a script that updates all your stocks using that service, I use it update all my stocks after stock market closes and then send a daily summary
You need to have the hours of data in the database. If you just added the sensors it will take some days until the graphs show something else than a flat line
Can I ask if you have solved it so that the graph show this year in a graph, meaning how a stock/market has developed since January 1st or since the first of the current month (April 1st)?
I donât store that much data in my home-assistant database. I purge everything older than 30 days.
To get a view of all data I use the influxdb integration and grafana.
Alright, I think I remember reading something that there is a standard function to remove data so that most likely applies to mine too. Thanks for your help!
Because of the recent increased activity in this thread I decided to take some time a do some updates. Version 1.0.1 supports fractional shares and also adds a totalValue and totalChange attribute which will be set if shares is defined. If the change or changePercent attribute is monitored you will now also get changeOneWeek/Percent, changeOneMonth/Percent,âŠ, changeFiveYears/Percent, changeCurrentYear/Percent attributes.
Version 1.0.3 released. You can now define multiple stock id, no need to copy paste the same monitored conditions everywhere. Check REDAME/HACS for example.
My plans for the future is to create an offical integration that can track not just stocks, but fonds/bonds/certificates etc. If you have feature requests for that please create an issue in the avanza stocl custom component repo and I will take a not of it.
Hi, is it possible to define the target-currancy (e.g. Euro), in which the stock is shown? Most stocks are shown in Dollars, but for Germany Euro would be nice.
No it is not possible. What I have done is that i also track currencies (ex https://www.avanza.se/index/om-indexet.html/18987/eur-usd) and then in my notification scripts I check unit_of_measurement and convert to the currency I want.
I will see if it is possible to integrate this into the component, it will probably require that you define for each stock where it should get its factor from.
No there is not. Iâm planning to get an official avanza component into HA and there it will be a distinction between stock, fund, ⊠since there are different available apis for each. It is just pure luck that funds can be tracked using the stock api