The statements from jmmorgan and Xander both look OK to me.
mine is:
Switch node1_sw1 "sw1" {mqtt=">[mysensors:MyMQTT/1/1/V_LIGHT:command:ON:1],>[mysensors:MyMQTT/1/1/V_LIGHT:command:OFF:0],<[mysensors:MyMQTT/1/1/V_LIGHT:command:MAP(1on0off.map)]"}
@tekka Ah OK, it's better to know it, thanks;
And I found the error this morning and it works great......
To create the configuration file for openHAB, I made a copy/paste of the Mysensors example., and I haven't seen it was a space character at the beginning of each lines.
I removed it, and it's working fine.now
So be carefull with the spaces, it was a stupid mistake and boring to find.
I have done this test 5 times, so I'm sure that it's the problem.
Thank you everybody....
Take a look at this thread: https://community.openhab.org/t/serial-binding-port-could-not-be-found/1993
It is another binding, but both work similar, maybe this works for you.
@pavel-hrudka I know this is quite an old post but I discovered tonight that when openHAB would not discover my node, I hit reset on the node and openHAB discovered the sensor when it restarted and contacted the GW. May help someone in the future!
coming back to the initial issue, is there anyone that can post items and maps configuration to test the binary switch example of mysensors? my configuration is arduino uno+w5100 and mqtt gateway, opnhab on windows pc on the same network