Some stocks are not available from avanza and therefor could not be used in the avanza integration with the entities-table-card.
How would I simulate a new sensor with states/attributes feeded from a yahoofinance sensor and combined with additional static or calculated information to display them in an entities table?
Below my entities table definition.
I assume a sensor with state fro yahoofinanze as state and additional attributes name (constant string), purchaseDate (constant string), profitLossPercentage (Needs to be calculate using state and two constant values), totalProfitLoss (Needs to be calculate using state and two constant values) and totalValue (Needs to be calculate using state and one constant value) would work, but I have no idea how the template(?) has to look like.
dataColumns:
- header: Name
attr: name
- header: Kurs
source: state
format: number
- header: Kaufdatum
attr: purchaseDate
format: number
- header: '%'
attr: profitLossPercentage
format: percentage
- header: Gewinn/Verlust
attr: totalProfitLoss
format: currency
showSummary: true
- header: Aktueller Wert
attr: totalValue
format: currency
showSummary: true