I am running HAOS 2023.6 and trying to address the command line change. In my configuration.yaml file I changed the code to:
command_line:
- sensor:
name: CPU Temp
command: 'cat /sys/class/thermal/thermal_zone0/temp'
unit_of_measurement: '..C'
value_template: '{{ value | multiply(0.001) | round(2) }}'
But now I get this error when I check the YAML in Developer Tools.
Configuration invalid!
Invalid config for [command_line]: expected a dictionary for dictionary value @ data['command_line'][0]['sensor']. Got None
extra keys not allowed @ data['command_line'][0]['command']. Got 'cat /sys/class/thermal/thermal_zone0/temp'
extra keys not allowed @ data['command_line'][0]['name']. Got 'CPU Temp'
extra keys not allowed @ data['command_line'][0]['unit_of_measurement']. Got '..C'
extra keys not allowed @ data['command_line'][0]['value_template']. Got '{{ value | multiply(0.001) | round(2) }}'. (See /config/configuration.yaml, line 46).
I have retyped the code several times based on the example and still get the same error. I must be making a mistake but I just cannot see it. Can anyone else?