iprak / yahoofinance

Home Assistant component which allows you to get stock updates from Yahoo finance.
MIT License
81 stars 11 forks source link

Problems to install #145

Closed SrekerGER closed 2 days ago

SrekerGER commented 1 week ago

Hi,

I tryed to install Yahoo Finance via HACS. After I copied the fils in the Configurationdirectory and edited the configuration.yaml and rebooted all,, th eintegration ist not working, i can not see any sensors. Here's the LOG:

Logger: homeassistant.config Source: config.py:940 First occurred: 16:31:55 (1 occurrences) Last logged: 16:31:55

Platform error: sensor - Integration 'yahoo_finance' not found.

can anybody help??

iprak commented 6 days ago

Was the yahoofinance folder copied into custom_components folder?

SrekerGER commented 5 days ago

image image image

These is what I see, aftrer I have installed it via HACS. The directory is /homeassistant/custom_componants/yahoofinance (see screenshots)

As far as I know i do not have a "configuration directory", cause the configuration.ymal is in the directory "homassistant/" I hope these information are helpful

Thanks for your help

iprak commented 5 days ago

Does your configuration have yahoo_finance instead of yahoofinance ?

SrekerGER commented 4 days ago

Hello, I checked it and it is "yahoofinance".

iprak commented 4 days ago

The error message suggests otherwise - Platform error: sensor - Integration 'yahoo_finance' not found. Can you share your configuration?

SrekerGER commented 3 days ago

Hi, thanks for your hint. In the configuration.yaml was an error. I corrected it from "yahoo_finance" to "yahoofinance". Now I can see the custom integration in "Settings/Integrations". Thats a step foreward :-)

BUT I do not have any sensors. Here is my actual configuration for this part:

sensor:

I would expect to find a sensor like "sensor.yahoofinance_amzn", as described in the documatation.

Thanks for your help.

iprak commented 3 days ago

I would enable debug logging for the integration. The log might reveal what is happening.

SrekerGER commented 3 days ago

Hmm, I am not that familiar. How do I enable the logging for this integration?

iprak commented 3 days ago

There is an option under Integrations.Screenshot_20241122-163806.png

SrekerGER commented 3 days ago

Hi, sorry this I could have find myself. Anyway, I enabled the debugging, but I can not find any entry in a log. I checkt every log i can find via the UI (settings/system/log). In the drop-down box, where all the logs are separated by integration, i can not see yahoofinance. (see screenshot) image

I have no idea where i can look elswhere.

iprak commented 3 days ago

Your configuration looks incorrect to me. The symbols node in yml should be indented. Please refer to the readme.

SrekerGER commented 2 days ago

Hi, thank you very much, this solved my problem. I guess I checkt the config to often, so i became somehow "blind" :-).

Maybe you finally can give me a hint how i can show the attributes on my dashboard?

Anyway, thanks again for solving my problem.

iprak commented 2 days ago

I would Google search for that, Home assistant forums have good information about that. Here is one post with discussion on that subject

https://community.home-assistant.io/t/display-an-entitys-attribute/197721