diff --git a/util/templates/render_instance.go b/util/templates/render_instance.go index 3c6577f5c..441129f40 100644 --- a/util/templates/render_instance.go +++ b/util/templates/render_instance.go @@ -3,6 +3,7 @@ package templates import ( "errors" "fmt" + "os" "github.com/evcc-io/evcc/util" "gopkg.in/yaml.v3" @@ -35,6 +36,10 @@ func RenderInstance(class Class, other map[string]interface{}) (*Instance, error return nil, util.NewConfigError(err) } + if os.Getenv("EVCC_TEMPLATE_RENDER") == cc.Template { + fmt.Println(string(b)) + } + var instance Instance if err := yaml.Unmarshal(b, &instance); err != nil { return nil, fmt.Errorf("%w:\n%s", err, string(b))