-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Templating in custom labels #11
Comments
I love your idea. Currently, i use handlebars as templating engine, which is very basic and clean but lacks some features that would be very useful in context of this project. I will take a look at https://github.com/sstur/jinja-js, which is a javascript implementation of the templating engine that home-assistant uses. An architectural challenge is, that (currently) in context of a button, i only have access to the state of a single entity. I think combining the states of different entities would be great, too, but would require a rework of big portions of the code. I will create two issues:
|
Before I throw in a suggestion, please let me thank you for creating this. This is awesome. The channel back from HA to SD was missing so far and you closed that gap. Thank you.
I like the possibility to feed back values from HA onto the SD keyboard.
May I suggest adding full templating possibilities. Think of showing the volume for a media_player with
{{volume_level}}
showing a value between 0 and one like0.38
. Can we improve that ideally with making use of the templating engine which exists in HA.Think of
{{ (state_attr('media_player.ralf', 'volume_level') * 10) | round(0) * 10 }}
. Possibilities would be endless.The text was updated successfully, but these errors were encountered: