GRUB2 integration with Home Assistant?

I have a dual boot system (Windows/Linux) using grub2.

Has anyone come up with a way to check the status of something in home assistant to determine which OS to boot.

I.e. I can set up something in HA, then when I turn on the PC it will boot the correct OS?

You don’t mean the system running HA is dual boot?

So, you mean, you want to manipulate GRUB2 on a pc, using an agent controlled by HA ?

Correct, HA is dockerized on a totally different system that the dual boot system I want to control.

That would require development on the grub code, with a questionable chance of getting it merged into grub upstream (I can’t really imagine that they’d accept networking code for this, yes there is some already, but this goes quite beyond that).