-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accept templates as element for the field "shares" #185
Comments
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!
The text was updated successfully, but these errors were encountered: