Page 3 of 16
Re: MySensors - Gateway to Domoticz
Posted: Tuesday 10 March 2015 13:49
by blackdog65
Does anyone use MYSController?
I have it running under Wine on Linux Mint (Domoticz master) with no problems.
I have a serial gateway that will report to Domoticz on my Mint PC. This works fine and MSController connects fine. When I tried to move my gateway to a remote installation of Domoticz on a Raspberry Pi (same network) MSController cannot see it if I try to connect by TCP. I hope it's just something silly like port no. or something, but any ideas?
Re: MySensors - Gateway to Domoticz
Posted: Tuesday 10 March 2015 19:11
by blackdog65
Ah... a little help from the developer... install ser2net and edit the conf file to pipe it across

it was actually a lot easier than it sounds and now I can debug MySensors from any pc on my network
Big thanks to Tekka

Re: MySensors - Gateway to Domoticz
Posted: Wednesday 11 March 2015 7:45
by bjornhallberg
Any way to get the battery readings to work? I only have the voltage divider (and code) on some of my sensor nodes but it seems the data is getting mixed up when read by Domoticz? I.e. sensors are getting the battery readings of other sensors. Sensors that never report a value get a value anyway.
Fantastic to finally have MySensors and Domoticz working together btw!
Re: MySensors - Gateway to Domoticz
Posted: Sunday 15 March 2015 15:35
by Hendrik
deennoo wrote:Hello,
i try to get Pulsesensor for water and power, using the usb gateway
got this log on domoticz :
2015-02-15 21:55:57.848 MySensors: Node: 69, Sketch Name: Water Meter
but nothing gones on unused device (of course accpet new is active).
I made a temp/hum sensor who works very well.
Any one got an idea ?
I had the same, its in the log, but no new device
do you have this working yet??
Re: MySensors - Gateway to Domoticz
Posted: Saturday 21 March 2015 17:08
by ThinkPad
Maybe a dumb question, but how do i get the MySensor stuff added in Domoticz?
I have a working setup (gateway + 1 node) lying on my desk. I can read it fine with '
MYSController' in Windows (nice tool btw!) but now want to add it to Domoticz.
Do i add it under Setup > Hardware as a new device or so? I don't see any 'MySensors' device there (v2.2284 on my NAS).
Re: MySensors - Gateway to Domoticz
Posted: Saturday 21 March 2015 17:09
by gizmocuz
Time to update to the beta ?:)
Re: MySensors - Gateway to Domoticz
Posted: Saturday 21 March 2015 17:10
by ThinkPad
Thanks, already thought that. Not sure if i want to do that on my NAS as i prefer a stable and reliable system.
I have a Pi lying around, will try it there, thanks. I can then add the MySensors stuff like i said? Under setup > hardware ?
Re: MySensors - Gateway to Domoticz
Posted: Saturday 21 March 2015 17:37
by gizmocuz
Yes thats the way
Re: MySensors - Gateway to Domoticz
Posted: Saturday 21 March 2015 19:13
by ThinkPad
Got it working

Quite a nice project, MySensors.
Very easy to build some sensors!
But a weird thing, i have 2x DS18B20 connected to my node, But only one of them is seen by Domoticz (only one device created)....
If i read the gateway with the MYSController i can see that
two temperatures are updated every time.
So some translation MySensors <> Domoticz needs to be worked on.
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 10:32
by BluesBro
Built the bh1750 lux sensor. Its registered in domoticz log as lux (unkown). Theres is no device listed in devicelist either.
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 13:02
by gizmocuz
If the log says something like
(MySensors) Lux (Unknown)
this means, it is added internally, and you should be able to find it in the devices tab.
If it is not there, make sure 'accept new hardware' is enabled in the settings
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 13:03
by gizmocuz
ThinkPad wrote:Got it working

Quite a nice project, MySensors.
Very easy to build some sensors!
But a weird thing, i have 2x DS18B20 connected to my node, But only one of them is seen by Domoticz (only one device created)....
If i read the gateway with the MYSController i can see that
two temperatures are updated every time.
So some translation MySensors <> Domoticz needs to be worked on.
Should be fixed in the latest beta
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 13:04
by gizmocuz
Hendrik wrote:deennoo wrote:Hello,
i try to get Pulsesensor for water and power, using the usb gateway
got this log on domoticz :
2015-02-15 21:55:57.848 MySensors: Node: 69, Sketch Name: Water Meter
but nothing gones on unused device (of course accpet new is active).
I made a temp/hum sensor who works very well.
Any one got an idea ?
I had the same, its in the log, but no new device
do you have this working yet??
This type of sensor is not yet supported yet.
Could you PM me your sketch ?
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 13:24
by BluesBro
gizmocuz wrote:If the log says something like
(MySensors) Lux (Unknown)
this means, it is added internally, and you should be able to find it in the devices tab.
If it is not there, make sure 'accept new hardware' is enabled in the settings
I got it in the dveice tab no, but it does not update Lux value. Its static on 1000 Lux
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 13:38
by BluesBro
I found the error.
Domoticz add 1 zero on every reading. 10 lux in the arduino log is 100 in domoticz. And domoticz readings dont go higher than 1000 lux.
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 14:28
by ThinkPad
gizmocuz wrote:ThinkPad wrote:Got it working

Quite a nice project, MySensors.
Very easy to build some sensors!
But a weird thing, i have 2x DS18B20 connected to my node, But only one of them is seen by Domoticz (only one device created)....
If i read the gateway with the MYSController i can see that
two temperatures are updated every time.
So some translation MySensors <> Domoticz needs to be worked on.
Should be fixed in the latest beta
I have installed v2.2329 on the Pi, but unfortunately still only one temperaturesensor is shown under devices and in the log.
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 14:30
by gizmocuz
ThinkPad wrote:gizmocuz wrote:ThinkPad wrote:Got it working

Quite a nice project, MySensors.
Very easy to build some sensors!
But a weird thing, i have 2x DS18B20 connected to my node, But only one of them is seen by Domoticz (only one device created)....
If i read the gateway with the MYSController i can see that
two temperatures are updated every time.
So some translation MySensors <> Domoticz needs to be worked on.
Should be fixed in the latest beta
I have installed v2.2329 on the Pi, but unfortunately still only one temperaturesensor is shown under devices and in the log.
Please try with the below sketch:
Code: Select all
#include <SPI.h>
#include <MySensor.h>
#define TEMP1_CHILD_ID 0
#define TEMP2_CHILD_ID 1
#define TEMP3_CHILD_ID 2
#define SLEEP_TIME 30000
#define SN "Multi temp test"
#define SV "1.1"
MySensor gw;
MyMessage temp1Msg(TEMP1_CHILD_ID, V_TEMP);
MyMessage temp2Msg(TEMP2_CHILD_ID, V_TEMP);
MyMessage temp3Msg(TEMP3_CHILD_ID, V_TEMP);
void setup()
{
gw.begin(NULL, AUTO, false);
// Send the Sketch Version Information to the Gateway
gw.sendSketchInfo(SN, SV);
gw.present(TEMP1_CHILD_ID, S_TEMP);
gw.present(TEMP2_CHILD_ID, S_TEMP);
gw.present(TEMP3_CHILD_ID, S_TEMP);
}
void loop()
{
// Process incoming messages
gw.process();
float temperature_1 = 19.5;
float temperature_2 = 23.4;
float temperature_3 = 4.8;
Serial.print("Temperature_1 = ");
Serial.println(temperature_1);
Serial.print("Temperature_2 = ");
Serial.println(temperature_2);
Serial.print("Temperature_3 = ");
Serial.println(temperature_3);
gw.send(temp1Msg.set(temperature_1,2));
gw.send(temp2Msg.set(temperature_2,2));
gw.send(temp3Msg.set(temperature_3,2));
//Sleep
gw.sleep(SLEEP_TIME);
}
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 14:33
by ThinkPad
I'm sorry, i responded too fast i think. The second temperature sensor just popped up under devices

Just had to wait some longer i think?
Nice
Now on to the watermeter sketch:
http://www.mysensors.org/build/pulse_water , been wanting that for a long time. Can i help in some way? Providing some testdata or so?
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 14:36
by gizmocuz
ThinkPad wrote:I'm sorry, i responded too fast i think. The second temperature sensor just popped up under devices

Just had to wait some longer i think?
Nice
Now on to the watermeter sketch:
http://www.mysensors.org/build/pulse_water , been wanting that for a long time. Can i help in some way? Providing some testdata or so?
Working on it as we speak....
The pulsemeter (water) example on the mysensors website has a serious bug!
If the requested value (VAR_1) is not received from the main software (domoticz in my case), then it will send requests as fast as it can, endlessly
Anyway, i am trying to create a new sample, and implementation... can take some time
Re: MySensors - Gateway to Domoticz
Posted: Sunday 22 March 2015 14:51
by ThinkPad
I think i am already seeing that. Connected 'MYSController' to the Ethernet gateway i made, and i see the application constantly scrolling, only thing it displays is:
RECV REQ VAR1
Nice, looking forward to it! Let us know if we can help in any way
