Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95324

Template formating - Best practice and some other questions

$
0
0

@flemmingss wrote:

In this picture I have two working automations that include some templating.

A) This template is created by editing the YAML file. It looks good there, but are not visible in the automation editor. And I am unsure if it will be saved or lost if I do any changed in the Automation Editor?

B) This is created by input in the Automation Editor, and the template is visible both in editor and in the YAML file. However it is messy and not relay easy to read and understand in the YAML file. This will also be hard to share with other people that may want to dublicate something. How can this be done? And how can it bee cleaned?.

I also see that template in Automation A is inside and '. but the Automation B is inside " and ", why is that?

Which way is prefererd?

Posts: 9

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95324

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>