MySensors - Gateway to Domoticz

Moderator: leecollings

alexsh1
Posts: 169
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: MySensors - Gateway to Domoticz

Post by alexsh1 »

franzelare wrote:did anyone try to run the gateway directly on a raspberry pi? instead of a serial or ethernet gateway to domoticz on an arduino?
https://www.mysensors.org/build/raspberry
Yes, I have it running on my testing RPi3 for a month now. It works fine. There are some features which have not been implemented yet though.
- MQTT GW
- Signing

If you are after a simple GW, go for it - it works.
I am using nrf24l01+ PA with the following adapter board - https://www.openhardware.io/view/17/Ras ... r-NRF24L01
franzelare
Posts: 139
Joined: Thursday 19 February 2015 21:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MySensors - Gateway to Domoticz

Post by franzelare »

edit: found it, just as an fixed USB device....
franzelare
Posts: 139
Joined: Thursday 19 February 2015 21:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MySensors - Gateway to Domoticz

Post by franzelare »

hmm, seems not to work...
when I hook up the radio to the correct pins and install the software, should I change anything on the example_linux/mysGateway.cpp before I make the build?
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: MySensors - Gateway to Domoticz

Post by Jan Jansen »

Hi,

I want to make a start with Mysensors. My Domoticz runs on a Rpi B rev 2.0, the two USB ports are already occupied. Spi is also busy (2 pifaces).

Is rpi’s UART suitable for connecting a mysensors gateway?

Thanks in advance!

Jan
User avatar
gizmocuz
Posts: 2390
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: MySensors - Gateway to Domoticz

Post by gizmocuz »

You could make an Ethernet gateway
Quality outlives Quantity!
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: MySensors - Gateway to Domoticz

Post by Jan Jansen »

Hi Gizmocuz,

Thanks for your quick reply!

Conclusion: UART is unsuitable (Is that correct?)

Jan
User avatar
gizmocuz
Posts: 2390
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: MySensors - Gateway to Domoticz

Post by gizmocuz »

https://www.mysensors.org/build/raspberry

But an ethernet gateway also gives you some more flexibility where you install it
Quality outlives Quantity!
alexsh1
Posts: 169
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: MySensors - Gateway to Domoticz

Post by alexsh1 »

Jan Jansen wrote:Hi Gizmocuz,

Thanks for your quick reply!

Conclusion: UART is unsuitable (Is that correct?)

Jan
Jan, it is perfectly suitable - I have a moteino GW running on my RPi3 connected to AMA0 (UART).
However, Gizmocuz is right. The ethernet GW gives more flexibility.
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: MySensors - Gateway to Domoticz

Post by Jan Jansen »

@alexsh1,

Thanks for your reply. At the moment I do not use Mysensors, I'am a noob at this point. Based on your answer, I conclude that it should be possible to build a gateway with an arduino and RFM69. Am I right?

If so, next steps rpi B:
1. connect radio and uno
2. connect UART rpi >> RXD and TXD Arduino
3. enable UART > Modify /boot/cmdline.txt and /etc/inittab
4. what else is needed??


Thanks in advance.

Jan
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: MySensors - Gateway to Domoticz

Post by emme »

I'm using a ESP8266 (NodeMCU) gateway with some success :P :P
it is placed on my balcony and works quite good!
The most dangerous phrase in any language is:
"We always done this way"
alexsh1
Posts: 169
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: MySensors - Gateway to Domoticz

Post by alexsh1 »

Jan Jansen wrote:@alexsh1,

Thanks for your reply. At the moment I do not use Mysensors, I'am a noob at this point. Based on your answer, I conclude that it should be possible to build a gateway with an arduino and RFM69. Am I right?

If so, next steps rpi B:
1. connect radio and uno
2. connect UART rpi >> RXD and TXD Arduino
3. enable UART > Modify /boot/cmdline.txt and /etc/inittab
4. what else is needed??


Thanks in advance.

Jan
Not much really. The only problem is you may face is with RPi3 - Bluetooth is using try AMA0. You need to swap it with serial0.
Just follow this guide https://raspberrypi.stackexchange.com/q ... pberry-pi3
alexsh1
Posts: 169
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: MySensors - Gateway to Domoticz

Post by alexsh1 »

@gizmocuz

I have a problem with a few sensors where I have to use
V_VAR / S_CUSTOM. For example, my lightning sensor.
V_VAR cannot be displayed as a device. There is also not a real "custom" device type. Any advice from you as to whether these are going to be implemented at all in Domoticz?

Many thanks
Alex
goblin
Posts: 35
Joined: Sunday 23 July 2017 14:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Haarlemmermeer
Contact:

Re: MySensors - Gateway to Domoticz

Post by goblin »

I have currently NRF24l10 currently working on my RPI as gateway for Mysensors.
and currently busy to "rebuild" my Domoticz and upgrade it to a RPI4.
i have considered migrating to HA but it is not that appealing as i hoped.
so now i am stuck with adding the NRF24L10 to the RPI connector.
i have 3 choices in domoticz:
1 gateway via USB
2 gateway via LAN
3 gateway via MQTT
currently it is "gateway via LAN" but if i select that i get a error "problem adding hardware"
Mysensors has stopped maintaining his webpage so now i am stuck.
i can vaguely remember that i need to do more but forgot how.
i know its old stuff but mysensors are the most reliable nodes i have.

can someone remember how to add the NRF24L10 gateway via the RPI connector?

thanks
User avatar
waltervl
Posts: 5293
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MySensors - Gateway to Domoticz

Post by waltervl »

goblin wrote: Friday 10 January 2025 14:16 I have currently NRF24l10 currently working on my RPI as gateway for Mysensors.
and currently busy to "rebuild" my Domoticz and upgrade it to a RPI4.
i have considered migrating to HA but it is not that appealing as i hoped.
so now i am stuck with adding the NRF24L10 to the RPI connector.
i have 3 choices in domoticz:
1 gateway via USB
2 gateway via LAN
3 gateway via MQTT
currently it is "gateway via LAN" but if i select that i get a error "problem adding hardware"
Mysensors has stopped maintaining his webpage so now i am stuck.
i can vaguely remember that i need to do more but forgot how.
i know its old stuff but mysensors are the most reliable nodes i have.

can someone remember how to add the NRF24L10 gateway via the RPI connector?

thanks
via web.archive.org the original mysensors website is still viewable:
https://web.archive.org/web/20250101005 ... /raspberry
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
goblin
Posts: 35
Joined: Sunday 23 July 2017 14:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Haarlemmermeer
Contact:

Re: MySensors - Gateway to Domoticz

Post by goblin »

thanks walter,
i could not find that page.
have a good year
goblin
Posts: 35
Joined: Sunday 23 July 2017 14:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Haarlemmermeer
Contact:

Re: MySensors - Gateway to Domoticz

Post by goblin »

So a few days later:
try to start mysgw but " sudo: ./bin/mysgw: command not found" is a unwanted response

during make i get the following error (and some warnings)

hal/architecture/Linux/drivers/core/interrupt.cpp:33:10: fatal error: stropts.h:
No such file or directory 33 | #include <stropts.h>
| ^~~~~~~~~~~
compilation terminated.

anny idea what i am missing
User avatar
waltervl
Posts: 5293
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MySensors - Gateway to Domoticz

Post by waltervl »

Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
goblin
Posts: 35
Joined: Sunday 23 July 2017 14:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Haarlemmermeer
Contact:

Re: MySensors - Gateway to Domoticz

Post by goblin »

Thanks,
but i am not skilled enough to do that,
User avatar
waltervl
Posts: 5293
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MySensors - Gateway to Domoticz

Post by waltervl »

Try building on the development sources, there the fix has been done: https://www.mysensors.org/download
By the way, the website is online again.....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest