I have a command line sensor reporting CPU temperature since… lat year I think, and used to work flawlessly up until today.
After I installed most recent HA core and HA OS updates today - it’s not available in the dashboard anymore (Entity is currently unavailable: sensor.cpu_temperature. This entity is no longer being provided by the command_line integration. If the entity is no longer in use, delete it in settings.).
Reboot didn’t help. Removal of the entity didn’t help either - it didn’t re-appear.
Here’s my config/configuration.yaml
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor:
- platform: command_line
name: CPU Temperature
unique_id: '99985e2b-7c60-4cf6-aa1f-43cf5c4b399d'
command: 'cat /sys/class/thermal/thermal_zone0/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) | round(1) }}'
lovelace:
mode: yaml
resources:
- url: /hacsfiles/button-card/button-card.js
type: module
Oh, right. The funny part is that I looked at my config, at the config on the documentation page you referenced and didn’t spot the difference.
I updated the configuration format and the sensor became available again.
The depreciation after 6 months may have been missed as a breaking change in the 2023.12 release notes though.
This would have helped. Anyway, I’m glad we have this wonderful community to address even silly questions like mine.
Actually I just found out there is no plan to include breaking changes that depreciate after 6 months in the release notes when the 6 months is up. Instead it is planned that you will not be able to update until you have fixed the things listed in the Repairs menu.