MySensors - Gateway to Domoticz

Moderator: leecollings

User avatar
gizmocuz
Posts: 2552
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 »

And do we need an nRF024, cant we use the onboard wifi chip ?
Else i do not see the benefit ? prices of the nano are not expensive

if we could use the onboard wifi, now thats another story ;)
Quality outlives Quantity!
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: MySensors - Gateway to Domoticz

Post by ThinkPad »

nRF != wifi.... it is also 2,4Ghz like Wifi, but not the same protocol
I am not active on this forum anymore.
User avatar
gizmocuz
Posts: 2552
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 »

Okey, thats a shame.

So the ESP is then used as an alternative for an arduino ?

That could be interesting as some of them have 4mbyte of memory

would have been great if both could talk to each other ;)

reading a nice free book now:

http://neilkolban.com/tech/wp-content/u ... r-2015.pdf
Quality outlives Quantity!
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: MySensors - Gateway to Domoticz

Post by MikeF »

Wow, that's some book!
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: MySensors - Gateway to Domoticz

Post by remb0 »

esp can used as gateway.. http://www.mysensors.org/build/esp8266_gateway

but don't understand the pros really.

but now I'm confused with the options.
I want to build a relay for my garagedoor. but that must be "safe"
so esp had an advantage (because you need on my lan) but mysensors has repeater functions (and my wifi in the garden isn't always strong enough.



I have created an distance meter and a 3-1 (temp hum and motion) but sometimes if I update my domoticz he can't find my mysensor sensors. is there an way to reset them by script. x st fails is reboot or something? because when I go to the attic and push the reset on my nano everything is fine.
User avatar
gizmocuz
Posts: 2552
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 »

the pros could be, that there are ESP's with 4 megabyte of memory

domoticz does not need to 'find' your mysensors nodes, the nodes will transmit, and domoticz will receive it via the gateway

next to the more memory, you need to connect an nRF to the esp... same like to an arduino nano/micro, prices are almost the same

if you already have an arduino nano mysensor network, i dont think there will be any benefits,
if you only have esp's, then you can make a mysensors network with esp's

also, the 3.3 voltage, you need a regulator, the nano/micro, you can run from batteries

... i dont see any benefits at the moment... if this esp could work directly with it's wifi chip with the nRF, yes, then i see ;)

(i am no ESP expert... so anything i say can be wrong...)
Quality outlives Quantity!
User avatar
pendragon
Posts: 7
Joined: Sunday 22 March 2015 14:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany, Hanover
Contact:

Re: MySensors - Gateway to Domoticz

Post by pendragon »

Is there a good way to port all sensor nodes from one gateway (serial) to another (ethernet) without loosing the logs?
Is the replace command, which is aviable for the temperature sensors, the right option?
User avatar
hek
Posts: 1
Joined: Wednesday 19 March 2014 19:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MySensors - Gateway to Domoticz

Post by hek »

Hi guys,

A couple of benefits of using the WiFi gateway is:

1. You can place your gateway anywhere with WiFi coverage without the need for hard-wired ethernet connection.
2. Hooking up and configuring an ethernet gateway is more complicated (especially if you need to enable SOFT-SPI for radio).

Otherwise it should work just as your Serial/ethernet variant (but with more memory).

I'm currently doing a big refactoring of the library and the new version allows sensors to be attached to gateway as well. This would allow you to deploy ESP-gateways/sensors without any NRF24/RF69 radios attached. Could be a good option if you don't care about battery operation and already have good WiFi coverage in your house.
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: MySensors - Gateway to Domoticz

Post by remb0 »

hek wrote:Hi guys,

A couple of benefits of using the WiFi gateway is:

1. You can place your gateway anywhere with WiFi coverage without the need for hard-wired ethernet connection.
2. Hooking up and configuring an ethernet gateway is more complicated (especially if you need to enable SOFT-SPI for radio).

Otherwise it should work just as your Serial/ethernet variant (but with more memory).

I'm currently doing a big refactoring of the library and the new version allows sensors to be attached to gateway as well. This would allow you to deploy ESP-gateways/sensors without any NRF24/RF69 radios attached. Could be a good option if you don't care about battery operation and already have good WiFi coverage in your house.
Wow great. when my gateway if wifi (it would be easy because it's under my router) and if the sensor of my watermeter and 3 relais can be attached I can dump my: pi1 with piface.
franzelare
Posts: 141
Joined: Thursday 19 February 2015 21:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MySensors - Gateway to Domoticz

Post by franzelare »

hek wrote:I'm currently doing a big refactoring of the library and the new version allows sensors to be attached to gateway as well. This would allow you to deploy ESP-gateways/sensors without any NRF24/RF69 radios attached. Could be a good option if you don't care about battery operation and already have good WiFi coverage in your house.
That would be great!
Since I like to wire systems that are close together instead of transmitting the signal over a few inch...
joshimosh
Posts: 58
Joined: Friday 29 May 2015 7:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MySensors - Gateway to Domoticz

Post by joshimosh »

Sorry to interrupt this thread with another problem related to the gateway.
Since 3213 I notice a loss of log messages from MySensor nodes. When I restart a sensor node, in previous versions (up to V2.3207) I had messages created by sendSketchInfo in the logfile of Domoticz. Now they are gone. In additon, I see that quite a few data packet sent from a MySensor node are dropped. It it easy to notice, since the nodes are sending their data packets in regular intervals and it becomes obvious if there are missing updates.

Any ideas how to track that down ?

Thank you
Josh
User avatar
gizmocuz
Posts: 2552
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 »

checked the coded (MySensorsBase.cpp), the Sketch Name/Version should be displayed.
if you compile under debug mode, you will see every message
Quality outlives Quantity!
asm7100
Posts: 7
Joined: Wednesday 23 September 2015 20:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MySensors - Gateway to Domoticz

Post by asm7100 »

Justintime wrote:
BluesBro wrote:Is there a way to skip ardunio via serial and connect the nrf24 directly to the Pi?
No, you have to have a serial gateway which communicates with the nodes. The serial gateway talks with Domoticz.
Yes there is.
Bout you need a driver.

The NRF24 is used on this site.
http://iot-playground.com/3-easyiot-server-installation
He is going cloud based and properly want money for the service in 2016.
Attachments
NRF24 Connectet to Raspberry.
NRF24 Connectet to Raspberry.
raspberyNRF24.png (186.65 KiB) Viewed 6254 times
User avatar
gizmocuz
Posts: 2552
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 »

I think mysensors 1.6 will let you do this...
Quality outlives Quantity!
asm7100
Posts: 7
Joined: Wednesday 23 September 2015 20:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MySensors - Gateway to Domoticz

Post by asm7100 »

Domoticz needs a driver for it :-)
User avatar
gizmocuz
Posts: 2552
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 »

is it ? From what i hear is that 1.6 lets you connect directly to your sketch.
(you cant use serial debug prints, unless you specify this)

If i'm wrong let me know... at the moment i can not compile any sketch in 1.6 (radio/hw not found in mysensors.cpp)

But there are positive responses from users
Quality outlives Quantity!
nellemar
Posts: 1
Joined: Tuesday 27 October 2015 13:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MySensors - Gateway to Domoticz

Post by nellemar »

jopa wrote:Thanks. :) Yeah, I get the point. If two gateways with their sensors are in the same room they need to operate on different Radio Frequency Channels. I did take care of that to make sure they won't interfere one with another.
It seems to me to be something else. Something between Domoticz over the TCP/IP protocol and the Gateways. Activating one at the time in Domoticz everything is working fine.
It looks as if Domoticz isn't prepared to handle two MysSensors Gateways at the same time.

One gateway has the IP Address 192.168.0.91 and the other works with 192.168.0.93. Each Gateway activated separately gets correct registers in the Domoticz Log showing to be connected and sensors are being recognized automatically and shows up in the Log. But when I activate in the Hardware Menu both Gateways at the same time it stops working correctly and stops to register any new Logs. Even when I unplug or reset the MySensors Gateways Domoticz doesn't register any-longer the loss of connection.

Could I activate some recommended Debugging to capture more Data? And if someone please from the development team could confirm if Domoticz is prepared to handle various MySensors Gateways simultaneously. I can't find an answer in the documentation or at the Forum.
I have two gate ways up and running. One serial and one Ethernet.

i've changed de RADIO_ID part AND the channel in myconfig.h.

/**********************************
* NRF24L01 Driver Defaults
***********************************/
// RF channel for the sensor net, 0-127
define RF24_CHANNEL 76
// This is also act as base value for sensor nodeId addresses. Change this (or channel) if you have more than one sensor network.
define RF24_BASE_RADIO_ID ((uint64_t)0xA8A8E1FC00LL)

This seems to work.

Before uploading you have te change the values to the corresponding Gateway.

EDIT:
it's also nessesary that you change the mac adres of the gateway. 2 devices with the same mac adres is not allowed and gives routing problems on your network.

// Note that most of the Ardunio examples use "DEAD BEEF FEED" for the MAC address.
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // DEAD BEEF FEED
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 wrote:that might work
i can confirm it works.
However, i experience strange issues with the GW - viewtopic.php?f=42&t=8829
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 »

I have the ethernet GW connected to Domoticz and have the following issue (please see the photo attached).
Any ideas why I have nodes /childs duplicated? I am running MySensors 1.5 lib.
Attachments
Screenshot (5).png
Screenshot (5).png (295.43 KiB) Viewed 5826 times
User avatar
gizmocuz
Posts: 2552
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 »

No... not really

You can remove both nodes... does it come back twice?
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest