Need your help to understand what is wrong

Hi there,

I really have an issue with my HA. All is ok but like in my previous post, it is strange, I have to define switch and sensor starting by the platform.

For instance yaml code below is included in a package: tmo_nuc_temp0 is properly recognize and I can find it in developer tools whereas tmo_nuc_temp1 is not shown.
Do you have an idea why I face this issue? Thanks

command_line:
  - sensor:
      name: tmo_nuc_temp0
      command: "ssh [email protected] 'cat /sys/class/thermal/thermal_zone0/temp'"
      unit_of_measurement: "°C"
      value_template: '{{ value | multiply(0.001) | round(1) }}'
      scan_interval: 60  # Optional: Defines how often to update (in seconds)    
    
sensor:
  - platform: command_line
    name: tmo_nuc_temp1
    command: "ssh [email protected] 'cat /sys/class/thermal/thermal_zone1/temp'"
    unit_of_measurement: "°C"
    value_template: '{{ value | multiply(0.001) | round(1) }}'
    scan_interval: 60  # Optional: Defines how often to update (in seconds)

because that’s an invalid configuration. platform: command_line was deprecated almost a year ago. You have to use the new configuration style that matches tmo_nuc_temp0

Thank you so much. As I rely a lot on ChatGPT and this AI is mainly trained thus on obsolete setup I became crazy.
Thanks!

You should not.

1 Like