Blueprint for non-automation configs

Is there a way to use blueprint for non-automation configs? My use case is that I have a IR controlled A/C. To make it look like a climate device in HA, I wrote ~50 lines of configs, including a template sensor, a template switch, a generic thermostat, and an automation. I have three other IR-controlled A/C in the same house. It would be nice to put those 50 lines in a blueprint and just expand it four times with different entity ids.

No there’s not. It would be nice to have blueprint packages someday but they don’t exist.

The best you can do right now is make a package and use YAML anchors to reuse pieces without copying and pasting. If you don’t know what YAML anchors are, here’s a good primer:

1 Like

Thanks for the tips! I’ll give it a try.

I think configs in blueprints would not be a good idea unless they could be very well secured or limited in scope.

The risk: a bit too easy for someone to hide something malicious in there such as extra shell scripts etc since many users won’t look at the contents of a blueprint.