tsathishkumar / MySController-rs

Controller for MySensors, exposes WoT APIs for the sensors. It supports OTA firmware updates, and also acts as proxy for all requests.
GNU Affero General Public License v3.0
20 stars 9 forks source link

Strange data passed along to other optional controller? #31

Closed flatsiedatsie closed 5 years ago

flatsiedatsie commented 5 years ago

I used the [controller] option to send the data along to Domoticz (fresh install). This is with an Ethernet gateway.

There I'm getting some.. odd things. Devices seem merged together there.

For example, suddenly it seems that I have a plant moisture sensor where the first two children (mostire sensors and dimmer) have both magically been turned into dust sensors.

irrigation-weird (normally this would be 6 moisture sensors and 6 dimmers).

Wait, it now also magically has a HVAC setpoint child :-D I'm not even sure where that came from, as I don't have any device connected currently that has a child like that.

irrigation-weird-2

I have a similar weird issue with a dust sensor. It also suddenly has a HVAC setpoint setting.:

setpoint-heat

The smart door lock has an "unknown!" child:

doorlock

Hmm, door 1 is now "eOor1". It might be a bad wireless connection.

Could it be caused by the two controllers trying to use the radio at the same time?

flatsiedatsie commented 5 years ago

Hmm, I now also see complete extra magic devices. That magical number 33 keeps popping up.

The last two devices don't actually exist:

extra-devices

The MySensors version reported in Domoticz is also strange. Instead of version 2.3 it says version 7896028 :-)

The domoticz log also shows some weirdness when it comes to the version:

version

flatsiedatsie commented 5 years ago

I will test if it's not a hardware problem.

// It's not. New radio attached, same problem.

Could it be an issue with the repeater functionality?

INFO 2018-11-29T12:10:51Z: myscontroller_rs::core::connection: 0.0.0.0:5003 >> "0;255;3;0;22;13281070\n" INFO 2018-11-29T12:10:51Z: myscontroller_rs::core::connection: 0.0.0.0:8088 << "0;255;3;0;22;13281070\n"

Then results in:

2018-11-29 13:10:01.070 MySensors: Gateway Version: 2.3.0 2018-11-29 13:10:01.805 MySensors: Gateway Version: 13231072

tsathishkumar commented 5 years ago

The controller functionality is a simple forward of what we get from Gateway. In fact MySController-rs doesn't send any extra message on it's own to the other controller. As you can see

INFO 2018-11-29T12:10:51Z: myscontroller_rs::core::connection: 0.0.0.0:5003 >> "0;255;3;0;22;13281070\n"

This is the message coming from Gateway. and the below subsequent message denotes that the same message forwarded to the controller connected through 8088.

So I think the Gateway is somehow sending wrong version, along with that some wrong sensor data.

flatsiedatsie commented 5 years ago

That's what I figured. But when it still happened with the other radio module I got confused.

Weirdness.