I would like to write my own template blueprints, so I started looking for examples. I find that in /blueprints/tempate/homeassistant/inverted_binary_sensor.yaml there is a good example.
But how do I instantiate it?
Going to Settings->Automations and Scenes->Blueprints I can find the Script and Automation blueprints but not the Template one. Is this instantiated in a different place? Does it need to be instantiated in YAML? (which makes the pickers a bit useless).
I had a hunt around the Developer templates section but donāt find a place to use a blueprint there.
If I can instantiate this one I can use it as a blueprint (no pun intended) for my own.
Yes, template entity blueprints are currently YAML only, you instantiate them in your configuration.yaml or template.yaml file.
If you are interested, I have shared a couple basic Template entity blueprints in the Blueprint Exchange that include configuration examples. I included selectors in them, so they would be ready whenever they do become configurable in the UI⦠but if you are creating your blueprints for personal use, the selectors arenāt currently useful.
Also, be aware that the variables configuration variable isnāt currently usable except in sensors and binary sensors, so the other entity types are pretty limited right now. It looks like they may be included in the next update.
Template blueprints (to create template entities) are somewhat new, there is no UI to set them up. The examples of how to instantiate entities are shown here, I do not think the examples made it to the documentation yet: