Just starting writing little integration within hassio - failing at first hurdle

Followed the docs through to this page and when I try and issue this command it fails:

python3 -m script.scaffold integration

command not found

apt and sudo aren’t there either.

I’ve tried this from terminal and ssh web page and directly connected via ssh ( ssh root@…)

How do I get started with " Creating your first integration"

To me it sounds like it goes wrong here if python wasn’t installed…

sudo apt-get install python3-pip python3-dev python3-venv

You should use it on the command line of Linux, and not in SSH (as that addon runs in a docker), sudo and apt are not available in HA OS itself, only in the host (which is linux)

So I plugged in a keyboard and screen to my rapberrypi and I still get an ha prompt, but I can type login and I seem to be in a shell at /.

but apt (for example) is still not there.

Ah. Home Assistant OS is built specifically for running Home Assistant, not developing home assistant, or anything else. It is very limited.

The manual environment instructions are for developing on a full blown Linux OS.

Was beginning to suspect that, what a PITA. Seems a weird decision, I would have thought a container would make an ideal development environment for working on integrations.

If I install Raspberry Pi OS plus docker and do this, will that give me a suitable environment, or do I need to go full monty and start with home assistant core?

Developing on your production system is also not the best idea.

I’m not, gonna run prod on a synology

I found out the hard way that hassio does not properly support developing integrations. Which type of install should I use?

It seems I cannot use visual studio (doesn’t run on arm - and I wouldn’t particularly want a full blown IDE like that anyway on a small arm machine), so I started on this setup, and it fails as this a very limited environment (no python and no way to install it)

I want to follow some sort of getting started tutorial so I learn what all the parts are and where they live and inter-relate, and the one linked above looks like a good way to start

have a look at the current integrations?

No better example as the real thing :wink: