Since Yahoo Finance is no longer supported, anyone know of a why to retrieve stock prices?
Google Finance in google sheets does the job.
I donāt see a Google Finance or Google Sheets component within HA
There are products that will read google sheets into databases on other platforms. I am currently only familiar with using a Windows based one but I am sure there will be one for pi. Need some techie to integrate that with HA I guess.
Thanks but I was hoping there was a HA componentā¦
What are you trying to do? I canāt visualise a link between home automation and the state of the stock market except perhaps to turn the lights off if it crashes !
I have a tablet which I use as a consoleā¦ it shows the weather, the DJ and a few stocks and key lights/switches in the house. I also had a rule that generate an alert when one of the stocks went outside of a range
Iāve been using Alpha Vantage which has been working alright. It only displays the current price of the stock and not the change. Since its a sensor you can create a graph from it which helps show how much the stock changed that day. It doesnāt support indexes like Dow Jones though - at least from what I can tell
I am not sure why Yahoo Finance stopped being supported; the API ends points are still active.
I had written a component from scratch using the current end point -
Does this still work for you? I just tried it but Iām getting āPlatform error sensor.yahoofinance - Integration āyahoofinanceā not found.ā
There is no official yahoo finance component. If you are using mine, then you would need to copy the component to the custom location.
The syntax is missing a ā-ā
sensor:
- platform: yahoofinance
show_trending_icon: true
scan_interval:
hours: 4
symbols:
- ISTNX
Works great in HACS for install just fix that missing ā-ā and all is good.
Thanks, I have updated the documentation.
This is great. Iāve been using the Alpha Vantage integration for months which only seems to update once every two days or so.
Canāt you put this integration forward to be put into the official built-in ones? Or at least get it added to HACS?
What card do you use to display the data? Ideally, it would be a graph in green or red, depending on the trend
The end point is not well documented/exposed, so I am hesitant of putting it into the official one. But this should be in HACS.
I just realized that I didnāt have history turned on in my config. I fixed that. Now, I am experimenting with the history graph card to see how that will plot the Dow (^DJI) and S&P (^GSPC) indexes.
I am trying to make a template to show the attributes, but i am really not finding any info on how to do this.
{{states(āyahoofinance.djiā)}}
{{state_attr(āyahoofinance.djiā ,āRegularMarketChangeā )}}