Open ggonmar opened 1 month ago
This would be really nice.
I'll see what I can do, the proper way would probably be if this component created that input_number sensor by itself. But the code for this is so far behind...
Got some time to test this today, it was easy to allow a template in the config and it gets the value correctly. What's left is to figure out how to make it responsive to changes made in the referenced states in the template
How to try it?
Here is the branch, but as I said above it will only pull the value of the template when HA is started
https://github.com/custom-components/sensor.avanza_stock/tree/shares-template
Proposing a nice enhancement: I think it would be great if we could set the number of shares via a template, coming from an input number, or any other service:
This way, one could easily update the sensor without having to dig into the code to change that value!