custom-components / sensor.avanza_stock

Custom component to get stock data from Avanza for Home Assistant
MIT License
46 stars 10 forks source link

Add config flow and break out in single sensors. #47

Closed eifinger closed 2 years ago

eifinger commented 4 years ago

Following your call for ideas in the forum. You could break out the attributes into sensor entities of their own. This offers 2 advantages:

  1. You can build a config flow so this integration is usable via UI. If a user does not want to have all monitored conditions he can disable the single entities.

  2. Upon a state change no really big state object is saved to the recorder(database). This would speed up all database queries and lower the size consumed.

claha commented 4 years ago

I guess this api call could be very useful when using config, since it can find the id for us https://www.avanza.se/_mobile/market/search?query=avanza%20bank&limit=100

claha commented 2 years ago

Will not be done for this component, if done it will be in a new similar component