Hi
I posted on the 3rd May about differential temperature pump control. I have since tried to correct the YAML script without success. I have an error “Invalid YAML syntax: mapping values are not allowed here” line 56 col 23 (value_template:). Any help in resolving my problem will be much appreciated.
Script here.
Hi micque
Thanks for your quick reply. I have altered the code. I now have the following errors.
line 46 platform not found ‘sensor.value_template’.
line 54 sensors is an invalid option for [sensor.template]. Check indentation.
line 64 Component not found: input_number.
line 79 Component not found: automation.
Any ideas?
Cheers Adhoc77
Hi laca75tn
Thank you for persevering with this, as you may have guessed I am new to HA etc. I did read your post incorrectly. I have now placed the code as you suggested in the /config/configuration.yaml file using the file editor.
I now get the following errors esphome code. line 46 platform not found ‘sensor.value_template’.
In the configuration.yaml file I get, the error duplication mapping key at line 46, col-373 automation.
Should I have placed the automation code in the /config/automations.yaml file?
Many thanks again for your help.
Adhoc77
That’s because there is no value_template platform in esphome. Value_template is a ha yaml thing but the lambda statement is definitely esphome. Are you copying this from somewhere?
No worries. I only ask because originally I thought you were providing excerpts of several files both HA and esphome for consideration. Clearly that wasn’t your intent but likely that’s what the original author was doing.
The platform value_template section is neither HA nor esphome. Lambda is clearly esphome but the rest of it could be either. Perhaps the value_template is supposed to be template? That could work I think and perhaps it was a typo on the part of the original author.