Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to read out temperature of remote CPU using HA using platform command_line #4

Open
gijssenh opened this issue May 8, 2021 · 0 comments

Comments

@gijssenh
Copy link

gijssenh commented May 8, 2021

I have a HA (Home Assistant OS 5.13) running on a Raspberry PI4b. It is connected to Homebridge running on a Raspberry PI Zero. I do not succeed in reading out the temperature of the Homebridge CPU using the command_line platform. I succeed via the HA terminal using this command (no password required)

ssh root@192.168.0.245 sudo cat /sys/class/thermal/thermal_zone0/temp

Configuration.yaml:

  • platform: command_line
    name: HB CPU Temp
    command: "ssh root@192.168.0.245 sudo cat /sys/class/thermal/thermal_zone0/temp"
    unit_of_measurement: "°C"
    scan_interval: 15
    value_template: '{{ value | multiply(0.001) | round(1) }}'

What can be the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant