Been struggling with what should be something real simple here. I get an error when validating the ESP Home YAML pasted below. However, YAML checker shows says my syntax and indentations are valid. Is the issue with my use of platform:template? What am I doing wrong?
Thank you both for setting me on the right path. Reworked it. Having some issues with return syntax in the lambda function. Tried a few things. None correct yet. Where am I going wrong here? Any guidance is appreciated.
Lambda is C++. So pipes like they use in Jinja in HA are not supported.
Try just:
return (id(propane_weight).state - 1.59/0.2914);
Unsure what you are trying to calculate - but you may also need another set of brackets there if you wanted to do the subtraction from the weight before the division.
Thanks so much for the quick assist! It is much appreciated. And yes, you were also correct, I needed to add another set of brackets to subtract before dividing.