@Boots33
Thanks a lot for the quick response.
I now have my Nano running as a serial gateway and it is connected via a USB cable directly to my controller (Raspberry Pi 4 running Home Assistant / Hass.io).
I added a local motion sensor to the Nano gateway HW and pasted the mysensors MotionSensor example code to the setup(), presentation() and loop() functions as well as to the definitions in the top of the GatewaySerial example code.
I disabled the radio definitions as I currently have no radio capability in my gateway (not sure if this was necessary).
In Home Assistant / Hass.io I updated the configuration.yaml with the following text (as described on the Home Assistant integration help):
mysensors:
gateways:
- device: '/dev/ttyUSB0'
And it works
In Home Assistant Developer Tools under States I can now see my motion sensor go on and off by the flick of my hand.
I had expected a bit more bumps on the road just to get this far, but wow - I am obviously walking in the foot prints of people who have worked hard to make it easy for the rest of us.
I am sure I will hit bumps on the way when the radios have to send results to the gateway (thick concrete walls with lots of steel), but for now I will enjoy this big success.
Thanks again Boots33
@sentur since it was launched 6 days ago, I seriously doubt anyone has had the ability to try it.
Anyway, please don't post the same question in multiple places. It wastes people's time. Most users don't have as much time as they would like to spend on projects, and wasting their time by splitting the discussion to multiple threads isn't very nice.
In case anyone wants to follow the existing discussion, head over to https://forum.mysensors.org/post/84076
Yeah that does seem to be the case. But I have read that some were having success so I gave it a go anyways...
I can't see me having much time for a while to give this another go, so i'll probably wait until i can roll back to UI5.
I have posted a question regarding what i think could be the fix to my issue over at: https://community.openhab.org/t/push-state-of-one-mqtt-topic-to-another/27597
Not sure if it will become of anything though. If anyone else has any experience with MQTT and openhab2 over here, then please be sure to shout a thought. It seems that not many people have got this sketch to work with openhab, google searches are bringing up posts from a year or two ago made on our forum here regarding this issue with no clear/simple solution.
Understand it might be annoying.. We run the latest version of the notif-plugin mentioned above (0.3.1). So it seems they still have some issues. They had an issue (which is closed) that sound like the things you experience.
I can't seem to find any related user setting in my account either.
https://github.com/psychobunny/nodebb-plugin-desktop-notifications/issues/19
You may look at the node js controller. It has database support. https://github.com/mysensors/Arduino/tree/master/NodeJsController Also check out the controller section of the form. http://forum.mysensors.org/category/3/controllers