custom-components / sensor.avanza_stock

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

function request - not issue : add portfolio names #179

Closed eddysteurs closed 3 months ago

eddysteurs commented 3 months ago

would it be possible to include a "portfolio" item to each stock and as such allowing a certain stock id to appear twice (with different #shares and purchase price) but in 2 different portfolio's I have this for a number of stock (one hold with a management company and same stock hold in personal portfolio), I can not add second one via avanza (have a workaround via yahoo finance

claha commented 3 months ago

I can not test this right now but I think that if you give the sensors different names I think they could have the same id, I updated the unique id some time ago. Please let me know if it works 😊 I can test on sunday otherwise

eddysteurs commented 3 months ago

Tested and works ; fantastic, will bring a lot of simplicity to my environment , thanks