I must say I don't know how to make it to work:(
I made arduino nano Mysensors serial Gateway
I put on it the code from the first post You have linked
I connected arduino to Domoticz by USB port /dev/tty/USB0
But there is no switches in Devices section

Any idea what I'm doing wrong?
Best regards