Replacement for Yahoo Finance

Are you seeing errors or just nothing? You can reduce it to this to verify that groups are correct.

type: custom:auto-entities
card:
  type: entities
  title: Financial
  filter:
    include:
      - group: group.stocks

@leolite1 Please see issue 36 I submitted on Github. It looks like this problem was introduced in v1.0.5 and has stopped the integration working for me. Full details and logs on Github. Downgrading to v1.0.4 and it all works again.

Since you shared it with me, I installed it. I have to check the result, Iā€™ll come back to on you on that.

I think I miss the group thingy.

My assumption is that I need to add that to configuration.yamlā€¦

You would need to list the yahoo sensors in a group, here stocks is the group being defined:

group:
  stocks:
    entities:
      - yahoofinance.physx
1 Like

Yes, it works (of course :wink: Thx again.

Thank you for your help, really appreciate it. Maybe itā€™s the obvious thing, but Iā€™m still learning.

This is great. Just curious if anyone has this working after hours? For me the values flatline except when the American markets are open (09:30-16:00)

Just trying out the yahoo finance add on.
I can get MSFT and other stocks to work.

Was trying to add the Dow Jones Industrial Average but can get a symbol that works.

Any ideas if it can be done?
Thanks

Edit
Of course after posting i finally got it to work.

its ^DJI and that wasnā€™t working bare in the yaml config file.
After enclosing with ā€˜^DJIā€™ it worked great!

Great addon!!!

The values only update when the markets are open, hence the flatline when closed. For the UK markets, they update during the UK trading hours. Same with the US markets. I suspect others in other countries would be the same. I think this is simply because Yahoo only updates their data while the markets are trading.

Any thoughts as how to eliminate the flatline from the graph when markets are closed? For a 24 hour window, Iā€™d like to see 3 days of actual market activity, not 8 hours of market and 16 hours of flatlineā€¦

thanks!!

Iā€™m not sure thatā€™s possible, although I havenā€™t really spent a lot of time looking into it, I couldnā€™t see a way when I created my dashboards. I agree it would probably be preferable to only display the graphs for when the markets are open.

Iā€™m trying to use an attribute of one of the symbols as a sensor template. The value_template statement works perfectly in the Developer Tools but I get a config error when I Check Configuration. Iā€™m going crazy. Hereā€™s my template sensor code. Any thoughts?

yahoofinance_net_regularMarketChange:
  friendly_name: 'Cloudflare Market Change'
  value_template: "{{ state_attr('sensor.yahoofinance_net','regularMarketChange') | float(3) }}"

Turns out the error is the capital letters in the template sensor name. I feel silly. Thanks for this great plugin and community support.

I seem many people trying to get the attributes from yahoofinance integration as custom template sensors. I went with a different route. For my use case I installed the custom component called multiple-entity-row https://github.com/benct/lovelace-multiple-entity-row
This component integrates with a simple entity list and creates easy multi-element rows in the list.
Here is my example of the entities card:
image

And simple code using the single sensor from yahoo finance and attributes:

type: entities
entities:
  - entity: sensor.yahoofinance_enb_to
    name: Enbridge Inc.
    type: custom:multiple-entity-row
    state_header: Price
    format: precision2
    secondary_info:
      attribute: regularMarketChangePercent
      unit: '%'
    entities:
      - attribute: regularMarketDayLow
        name: Low
        format: precision2
      - attribute: regularMarketDayHigh
        name: High
        format: precision2
  - entity: sensor.yahoofinance_fts_to
    name: Fortis Inc.
    type: custom:multiple-entity-row
    state_header: Price
    format: precision2
    secondary_info:
      attribute: regularMarketChangePercent
      unit: '%'
    entities:
      - attribute: regularMarketDayLow
        name: Low
        format: precision2
      - attribute: regularMarketDayHigh
        name: High
        format: precision2

You get the idea :slight_smile: Maybe it helps somebody for just a simple concise task of displaying multiple attributes of a ticker symbol. Seemed a way faster and cleaner approach for me than creating a bunch of unnecessary template sensors.

4 Likes

Have I missed something? When did the developer of this replacement integration stop supporting it? If youā€™re talking about the original integration, who cares when we have this excellent replacement. Iā€™ve not seen any announcements to say the developer has ended support and have had bug fix updates fairly recently.

As above. When did Yahoo Finance stop providing stock prices or the Yahoo Finance integration stop working? I am using both without issue.

1 Like

Thank you Robertwigley for sharing ā€¦ works great here !!!

Thanks for sharing ! I am using your setup of multiple entities card and itā€™s very good. I noticed that you have the trend as icon while I only have the dollar symbol as icon that is the entity default icon.
How do you make the trending to be shown as icon ?

Thank you very much, dear namesake! (Is that how you say it in English?)
I have successfully implemented this for our family and I have created a helper for our desired stocks & ETFs where you can enter the desired price for purchase and when it is reached you are immediately notified via Telegram and when you click you are redirected to the broker page.