Hmm. My command_line sensor works as expected!
Does the command work in a Terminal?
I think i don’t have to tell you about ha user and venv…
You don’t , just quickly dumped them into the config and when they didn’t work I thought I’d drop you a line in case you’d come across the same and already fixed it.
I’ll have a mess around with it this afternoon
Just to come back to this (finally! - don’t know why my life is so busy these days!!)
The command worked fine from the command line in the venv, but continually failed within homeassistant. I don’t know why, I never got to the bottom of it. I know I’ve had problems in the past with any commands that have a space in, which seem to work on everyone else’s machine, but not mine
Anyway, I’ve managed (I think, will need to test for a few versions) to get a scrape sensor working…
- platform: scrape
name: HA upstream
resource: https://pypi.org/project/homeassistant/#history
select: 'a[href^="/project/homeassistant/0"]'
It will only work whilst the version numbers start with a zero, and presuming that the release history page doesn’t change format, but it seems to be working at the minute!! Hoping there might be a new and improved update:
component in the works where it actually works, and can be specified to track rc if desired.
I live in hope!