Closed MadMonkey87 closed 1 year ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (sensor
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
sensor documentation sensor source (message by IssueLinks)
My bad, it's not the sensor platform but "command_line". I just needed to change this:
sensor:
- platform: command_line
name: Board Temperature
command: 'cat /sys/class/thermal/thermal_zone0/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) }}'
- platform: command_line
name: SoC Temperature
command: 'cat /sys/class/thermal/thermal_zone1/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) }}'
- platform: command_line
name: Wireless Module Temperature
command: 'cat /sys/class/thermal/thermal_zone2/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) }}'
to this:
command_line:
- sensor:
name: Board Temperature
command: 'cat /sys/class/thermal/thermal_zone0/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) }}'
- sensor:
name: SoC Temperature
command: 'cat /sys/class/thermal/thermal_zone1/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) }}'
- sensor:
name: Wireless Module Temperature
command: 'cat /sys/class/thermal/thermal_zone2/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) }}'
The problem
I've just upgraded to the latest HA Core and got welcomed with a warning: I guess this is related to the following entries in my config.yaml:
I only found this documentation which is not really helpful: https://www.home-assistant.io/integrations/sensor/
Is there any other documentation? How do I migrate? For the min_max platform I guess I could use the GUI but for other custom integration this is not possible
What version of Home Assistant Core has the issue?
core-2023.6.1
What was the last working version of Home Assistant Core?
core-2023.5.x
What type of installation are you running?
Home Assistant OS
Integration causing the issue
sensor
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response