No problem, I am running the nrf24 mqtt gateway on the rpi and it is working with no problem with domoticz. I choose the mqtt client gateway because I wanted to tinker around MQTT, but you could go for the ethernet gateway that is easier to manage.
Awesome project, I wish I made something like this.
(I actually wanted to make something like this when I was in school)
Very clean and nice presentation and realization, with a lot of attention to details. All is very realistic, I can imagine that it took quite some time making it.
Thanks for sharing the details!
Finally solved a lot of problems and checked a lot of mistakes. But now the first version of this device works almost properly :trollface:
I will make a small report in the description asap
@fdlou147 According to my personal experience, I'd recommend to split up Gateway and Node funktionality and use two seperate mcu's.
Wrt. to the code itself: you only set up a debouncer on one of the pins (finally: Pin 5), as you always redefine the same "flags" over and over again. Perhaps have a look at this imo excellent multi relay/button sketch by korttoma here. This one should be not to hard to adopt to your needs (still, I'd recommend two mcu's).