Hi everyone,
I have many switches and sensors configured that require Curl.
After upgrading from a previous version they all stopped working and not showing up in the Developer Tools dashboard or even my control panels.
I had this problem previously and not sure what cured it but I think I either upgrade HA or some packages in my base system (I’m running Arch Linux).
This is one of the statements which doesn’t work any more from the config.yaml file:
sensor:
- platform: command_line
command: "curl -s http://{ip}/api/xdevices.json?Get=XTHL | grep THL1-TEMP | cut -d : -f 2 | cut -d , -f 1 | tr -d [:space:]"
unit_of_measurement: "°C"
scan_interval: 60
name: "Outside Temperature"
Running this from an SSH session into the base OS gets:
curl -s http://{ip}/api/xdevices.json?Get=XTHL | grep THL1-TEMP | cut -d : -f 2 | cut -d , -f 1 | tr -d [:space:]
10.18
For some reason I feel like HA isn’t able to find Curl even though it’s in the standard $PATH of /usr/bin ?
Is there a way to test this from inside the HA UI or some way where I can figure out what is going on?
The logs aren’t saying anything unfortunately.
The last version that worked for me was: 2023.11.2
I have held off upgrading due to the issue as I have tried upgrading previously but then downgraded again after noticing the issue…
At the moment I am on 2024.11.1…
Even using the docs as a reference: Command line - Home Assistant
I don’t really see any type of solution or way to diagnose, and considering that I have been using the same yaml for years I’m not sure what could have broken?
Would anyone be able to offer some assistance?
Thanks.