This is not a problem in INDI, rather a problem in my roof driver that I cant seem to find.
Basically when I park/unpark my roof driver I end up with a ParkData.xml like this
This is a problem because I loose the telescope park status (it deletes all other <device> elements in the file). I'm working around by manually copying a good ParkData.xml after I open the roof but this is not great....
After trying to find what is happening I think it is something to do with the getDeviceName() returning null for my roof driver for some reason.
I'm sure its something I'm missing in my driver's code or build config but I cant seem to find what it could be.
This is weird.. I swear I posted a reply to this topic like an hour ago and now I can't find anything.
Anyway, there was a small issue in INDI::Dome which was fixed and you need to call initPark() in your setupParams(). So recompile INDI then recompile your driver and you're good to go.