Command line sensor issue - ito leva espresso hardware

I have an issue with a command line sensor wich should give the temperature of my espresso machine, wich was kindly shared by stangster in the kaffee-netz.de forum.

addendum:
Please note that I have been informed that the code was partially created using ChatGPT.
The quality and functionality are therefore questionable.

command_line:
 - sensor:
     name: "ito temperature"
     command: >-
         << CHATGPT HALLUCINATIONS REMOVED  >>
     scan_interval: 10
     command_timeout: 5
     unit_of_measurement: "°C"
     value_template: "{{ value_json.temp_c | float }}"
     availability_template: "{{ value != '' }}"
     json_attributes:
       - heater_pct

I get this error in my log:

Invalid config for 'command_line' at configuration/command_line.yaml, line 27: 'availability_template' is an invalid option for 'command_line'

Can someone spot what’s wrong?
Assistance would be greatly appreciated.

Exactly what the error message says: you can’t use availability_template in a command line sensor. The option is called availability:

1 Like

So obvious if you see it, thank you verry much!

1 Like