Warning - this code requires supervisor version 213
Supervisor is still in early stages and so clearly changes must be expected. If you haven’t updated to 213 yet then you’ll need to change .data.version_latest above to .data.last_version as it appears the response schema to this API was changed in that release.
Trying to get this to work but dont get all the information in the sensor. Missing the newest version.
Logger: pyhaversion
Source: /usr/local/lib/python3.8/site-packages/pyhaversion/init.py:184
First occurred: September 16, 2020, 8:16:36 PM (174 occurrences)
Last logged: 10:56:39 AM
Error parsing version information from Hassio, ‘hassos-cli’
I’m receiving the above error when using your code.
Not my code as stated, but you are right, there are a lot of errors, not just with this command_line sensor but with all of mine since Supervisor 244 update!
Quick and easy out is to utilise version with the local setting and see what changes 0.115 and another supervisor brings.
- platform: version
name: HassOS Current
source: local
That correctly has .data.version_latest in there. Maybe the note is confusing? I was trying to say your supervisor must be version >= 213 to use this code as is. If you’re running supervisor version < 213 then you’ll need to adjust that one bit.
Honestly I think I can just remove that note at this point. Supervisor auto-updates so I don’t know how someone would be < 213 anymore.
I know you posted this a few months ago but I just saw it and have a question.
As a test I copied the code as you have listed.
remote_ui is in a folder switches/cloud.yaml
button card was put in lovelace
And then lovelace was all setup.
All looks good but I do not have the lock on the remote ui. Killed my system 2x’s trying to understand it.
What might I be doing wrong.
point to the version for Operating system. Since this tends to update rather frequently, without signaling in the frontend, it would really be nice to create a sensor for that.