Configuration Template - Invalid config for [sensor.template]: [unique id]

In the documentation for “template” a unique_id string is optional. When I use it I get the following error message: Invalid config for [sensor.template]: [unique id] is an invalid option for [sensor.template]. Check: sensor.template->sensors->sensor_ch_adj->unique id
Any idea how to fix this? Thank you.

First step would be to paste your code, correctly formatted, surely?

unique_id, you forgot the underscore.

1 Like

Thank you. That’s it.