@alowhum I see that one of the requirements for this new candle webthing gateway is "Sonoff Zigbee 3.0 USB stick". If I don't use any zigbee 'things', do I still need that for an install to work? I have mysensor things and native webthing things only. I lost remote access a month or so ago to my webthing controller (known issue but doesn't appear to be fixed) so I am thinking about switching to this 'new' candle controller. I use remote monitoring when I am away from the house to make sure the furnaces, etc. are working. Also, can I run my old webthing controller and this new candle webthing controller at the same time on my network while I get it going (probably a dumb question but I don't know)? I have another rasp pi I can install the new one on.
Posts made by rmalbers
-
RE: Mozilla Webthings MySensors add-on / adapter
-
Mozilla WebThings Gateway - Opensource
Is this a good thing or a bad thing? in other words, will this help the evolution of the gateway or should I start looking for something else?
-
RE: MySensor 'Things' show as inactive daily after working for 24 hour period
It's a mysensor esp8266 wifi gateway to a rasp pi3+ mozilla webthings gateway running the mysensor plugin (and weather).
-
MySensor 'Things' show as inactive daily after working for 24 hour period
I'm not sure how long this has been going on because I've been out of town but for a few weeks in the Mozilla WebThings Gateway my 'mysensors' suddenly appear as inactive, all of them (six). The 'weather addon is active and still works the whole time. To get they mysensors back all I have to do is reboot the webthings (PI) gateway and they all come back working. This setup has/had been working for almost a year. In the gateway logs the last messages I see are: 2020-06-18 03:39:06.759 INFO : getValue for property 7-0-1 for: TempHumFeelBat returning 49.9
2020-06-18 03:39:06.764 INFO : getValue for property 7-1-0 for: TempHumFeelBat returning 73.94
2020-06-18 03:39:06.766 INFO : getValue for property 7-2-0 for: TempHumFeelBat returning 73.91
2020-06-18 06:45:38.231 INFO : getValue for property 3-0-0 for: Temperature Sensor returning 72
2020-06-18 11:19:18.821 INFO : Starting certificate renewal.
2020-06-18 11:19:18.834 INFO : Certificate not yet due for renewal.
2020-06-18 11:19:26.413 INFO : Checking for add-on updates...
2020-06-18 11:19:26.951 INFO : Finished updating add-onsIt's almost like after check for updates it shut down. What other logs should I be looking at to help figure out what's going on. Oh, my Mozilla gateway code is on autoupdate, I'm on the latest version, 0.12.
-
RE: mysensors-adapter is receiving data but Things dashboard does not find devices
@Ray So the weather addon is not even working/being found?
-
RE: mysensors-adapter is receiving data but Things dashboard does not find devices
@Ray Have you rebooted the mysensor sensor after everything else has been running.
-
RE: Power issue
@skywatchYup same software, just a boot to the raspbain desktop on each one, just idling at the desktop after boot from same sd card, one shows lightening bolt, other one fine. Same sd card, same power supply, same cable, just two different rasp pi 3b+ boards.
-
RE: Does the Mozilla Webthings gateway support the MySensor - sendBatteryLevel
Yes, that worked to user the V_DIMMER! Not sure if I can post a screenshot:![alt text](image url) (I guess I can!)
-
RE: Does the Mozilla Webthings gateway support the MySensor - sendBatteryLevel
I was just thinking, V_DIMMER is there for light dimmers - percentage, I'll just use that to get my send battery percentage back to a Webthing, it looks like 'dimmer' is supported!
-
Does the Mozilla Webthings gateway support the MySensor - sendBatteryLevel
Title really has it all, is there a way to send: sendBatteryLevel percentage to be displayed as a 'thing' to monitor the battery level of a sensor. I think this is a trace of the sendBatteryLevel message in the mysensor log: "98655 TSF:MSG:SEND,7-7-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:100" Is there a 'generic' way of sending a percentage to a Mozilla 'thing'?
-
RE: Power issue
@skywatch The thing is the rasp pi 3b+ that I am using for the M gateway gave a lightenbolt running a clean rasbian desktop off an SD card using a power supply that another rasp pi 3b+ using that same SD card (and rasp pi desktop software) DOESN'T give a lightning bolt. In other words same everything except rasp pi 3b+, one lightenbolt, one NO lightening bolt so one rasp pi is drawing more current or it's voltage detection is wrong. Anyway, that is kind of an important part of this puzzle, in case someone else has this problem. This was really messing with me, LOL!
-
RE: 💬 Air Humidity Sensor - DHT
Also, I could not get a clean compile/download to a arduino mini 3.3v with 168 processor. From what I could find there is not enough memory to handle the newest mysensor libraries, at least that's what some people are saying in forums. I didn't spend much time on it and moved on to other arduinos.
-
RE: 💬 Air Humidity Sensor - DHT
I used the code that cnerone has in his comment below with a nano and DHT22 and it worked great. For my nano I did have to use the 'old' bootloader for the program to download into the nano correctly with the arduino IDE. The code in the example here wouldn't compile for me, I think because someone changed the DHT library but for some reason kept the name the same so I ran into some kind of conflicts with variables. I wish when people modified libraries they would give them new/different names because the IDE does not have a good way of handling multiple libraries with the same name. BTW: That is not a MySensors issue, it's the IDE.
-
Power issue
This isn't really a gateway issue but it happened to my rasp pi gateway so I thought I would put this out here in case it happens to someone else: My Mozilla Webthings with MS addon has been running fine since last June and then a few days ago I could no longer connect. I tried rebooting and still no go, tried a few more times and no connection. So,, I'm thinking my SSD might be corrupted so I reinstalled the M gateway code and it doesn't work. So,,, then I put a full rasbian os SD card in the rasp pi and it boots up with the LIGHTENING BOLT (with same power supply I've been using the whole time). So anyway, I try another power supply that works on another (same version) rasp pi 3b+ and it gets lightening bolt also. Anyway, the whole thing was getting a little old so I ordered a new power supply that is certified for 3b+ and now it's working again. So, my rasp pi 3B+ looks like it's started to draw more power for some reason all of the sudden and faked me out on what the problem was. I guess I'll see if the rasp pi is going bad or something but it's running again for now. Moral of the story, check for power issues FIRST, LOL!
-
RE: New sensors and Mozilla Webthings
@Nca78 Thanks, that makes since. So far I have only played around with battery powered sensor but have never put one into constant use.
-
New sensors and Mozilla Webthings
If I am going to build some new sensors are there any technical reasons why I should build them using mysensor libraries rather than Mozilla webthings using the webthings adaptor library thus bypassing the mysensors gateway.
-
RE: Mozilla Webthings MySensors add-on / adapter
Thanks, I have the timeout set (to 30 minutes) and it seems to be working, GREAT! In other news, it looks like they added metric to the gateway with the new release last night and all my temp readings reverted to 'Cent', the new default, until I switched it off 'metric', scared me for a second!
-
RE: MySensor Things - show up 'as active' when they are unplugged
Wow that would be great, I think it's something that most people using the gateway would want, at least for some sensor types!
-
RE: MySensor Things - show up 'as active' when they are unplugged
@alowhum said in MySensor Things - show up 'as active' when they are unplugged:
There is a time-out related option in the MySensors settings, but it's focus is on setting the device to 'offline' when the Gateway boots up, and only setting it to 'online' when some data actually arrives.
I don't know how Mozilla deals with timeouts.
If it doesn't, then the add-on could manage this, since it can set things to 'available' or 'unavailable'.
Ideally you'd want a different time-out setting for each device. It would be great if MySensors has a built-in "this is my prefered timeout" S_TYPE (perhaps it does?).
You know, I think I've seen that 'unavailable' happen a few times when I was playing with a battery powered sensor. The 'thing' was gray instead of bright white on the "Thing" page.
-
RE: MySensor Things - show up 'as active' when they are unplugged
A timeout setting somewhere is needed for sure if you have battery powered sensors right?
-
RE: MySensor Things - show up 'as active' when they are unplugged
@mfalkvidd Thanks for researching this, that does explain why I didn't have the same issue with Domoticz. I like the 'look' of this gateway but I think I'll have to switch to Domoticz when I leave town, it just seems more feature rich for real life monitoring.
-
RE: MySensor Things - show up 'as active' when they are unplugged
Not sure if there is config setting for that somewhere or not, for temp sensor I would say somewhere between an hour and 6 hours, I don't really care I just need to know that what I am seeing is fairly close or show no value. Like if the furnace quits and the temp drops, I need to know.
-
MySensor Things - show up 'as active' when they are unplugged
I'm not sure if there is setting or option I need to set in my temp sensors or what's going on by I still have 'readings' in my 'Things' when the temp sensor is unplugged and not sending readings. I thought the 'Thing' would be greyed out or the reading gone when no data is received.
-
RE: MySensors addon never detects my nodes
Normally you can use the log parser to get more info but it looks like it doesn't have support in it for those debug log records: https://www.mysensors.org/build/parser
-
RE: MySensor Controller Config - Imperial (false) setting
Looks like I got the V0.9 Mozilla Gateway update last night, everything seems to be working fine. I now have a decimal digit on my temp readings that was not there prior to the upgrade. (73.4 F now, 73 F previous version)
-
RE: MySensor Controller Config - Imperial (false) setting
I didn't know for sure which thread to put this update under but I'll put it here: I updated to the new add-on version. I rebooted everything and I can confirm this the 'imperial' setting is working with my sensors. I had one sensor that has the code in it to check that setting and before I was getting the reading in C and the C label. Now with that sensor I am getting a F reading and a F label. GREAT! I did have to reboot a couple of things more than once! At this point I'm wondering that the boot order should be. Also I'm thinking that I need to unplug everything in the chain and plug things back in the right order, like Mozzilla gatewat first, then the MySensors gateway, the plug the MySensor sensors back in to get it all to work right. Anyway, this is really looking good!
-
RE: Raspberry Pi3 alternative?
I had one SD failure and that was enough, I use the cheap SSDs 16GB, 32GB type thing for $15 or around that plus case, so far so good.
-
RE: Candle Manager, a new add-on for the Mozilla WebThings Gateway
This sounds great but I'm wondering what devices/hardware this supports? Does this support everything that is supported by the Arduino IDE?
-
RE: MySensor Controller Config - Imperial (false) setting
@alowhum You know, I sort of misspoke, just to be more accurate: it's (the setting is) actually imperial or metric, I guess it's really more than just C and F, I simplified (and I shouldn't have). This is how it's stated on the addon: "Units to use, i.e. imperial for ËšF, metric for ËšC"
-
RE: MySensor Controller Config - Imperial (false) setting
FYI: I just looked and the 'Weather' addon does have a setting for F or C in the addon config, so that makes more since now.
-
RE: MySensor Controller Config - Imperial (false) setting
@alowhum Wow great, thanks for getting that in there, that should help other users out also as they fire this code up. So many of the mysensors examples use that config setting that I'm sure others would request that addition to the the addon.
-
RE: MySensor Controller Config - Imperial (false) setting
Ya, I think I saw the message with the 'M' at the end in the log file. You know, I was kind of wondering about a setting like that, that would be really slick. One thing that is odd, I have the 'Weather' addon installed using 'Dark Sky' as the weather source and on that 'thing', it shows Temp in degrees 'F' and is shows up as a 'temperature sensor' when I go into 'Edit' for that 'thing' so there must be some kind of support for 'F' for a Temp sensor WebThings somewhere.
-
RE: MySensor Controller Config - Imperial (false) setting
@mfalkvidd Thank you, I was unsure where to post the question and as you can tell, unsure what code was responsible for the C or F setting.
-
RE: MySensor Controller Config - Imperial (false) setting
Ok, for sensor value display I am using Mozilla WebThings gateway connected to a MySensors 8266 wifi/NRF24 gateway receiving data from MySensors temp/hum sensors.
-
MySensor Controller Config - Imperial (false) setting
Ok, this driving me nuts: I can't find any doc that shows how to change the default ControllerConfig from Metric (true) to Imperial (false). I'm seeing some years old stuff where there was a setting in an include file but that's not there anymore. How to I set/change the controller config to false in the mysensors gateway so when my sensor code does a getControllerConfig call it returns a 'false'?
-
RE: MySensors: trying to add Things in WebThings Gateway
@alowhum I guess I should sum it up: I have V2.2 and V2.3 sensors running using the Ethernet GW addon config and using the MySensors original, not rebuilt gateway, so the MS gateway is running unchanged, yet does work with the addon and WebThings GW. (I do have to rebuild sensors again for the 'imperial' config setting. domoticz didn't care but it looks like the WebThings GW does use it. (I have mixtures of F degrees, C degrees, etc.)
-
RE: MySensors: trying to add Things in WebThings Gateway
BTW: I know I have to rebuild my sensors, but at least now I have 'things' sort of working and can see better what's going on.
-
RE: MySensors: trying to add Things in WebThings Gateway
@rmalbers Success with second sensor in garage: (Posting log for informational purposes only)
2019-06-21 15:11:18.780 INFO : Opened a new things socket
2019-06-21 15:11:22.651 INFO : Successfully created new thing Temperature Sensor
2019-06-21 15:11:24.864 ERROR : Thing was not added
2019-06-21 15:11:24.865 ERROR : addNewThing cancelled
2019-06-21 15:11:24.869 INFO : mysensors: PAIRING INITIATED
2019-06-21 15:11:24.871 INFO : mysensors: Thread already existed
2019-06-21 15:11:24.872 INFO : mysensors: Re-requesting presentation of all nodes on the network
2019-06-21 15:11:24.874 INFO : mysensors: << Requesting presentation from 1
2019-06-21 15:11:24.875 INFO : mysensors: Re-request of node presentation restarted
2019-06-21 15:11:24.877 INFO : mysensors: << Requesting presentation from 2
2019-06-21 15:11:24.878 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"cancelPairing","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-21 15:11:25.829 INFO : getValue for property 2-0-0 for: Temperature Sensor returning 24.1 -
RE: MySensors: trying to add Things in WebThings Gateway
@alowhum Sorry, I forgot about rebooting the sensor - SUCCESS! (Now I just have to find the other sensors to reboot them, LOL! This is with the ethernet gateway:
2019-06-21 15:03:33.639 INFO : Opened a new things socket
2019-06-21 15:04:08.145 ERROR : mysensors: Node 2 is unknown
2019-06-21 15:04:25.229 ERROR : mysensors: Child 0 is unknown
2019-06-21 15:04:33.108 INFO : Pairing timeout
2019-06-21 15:04:33.111 ERROR : Thing was not added
2019-06-21 15:04:33.113 ERROR : addNewThing cancelled
2019-06-21 15:04:33.117 INFO : mysensors: PAIRING INITIATED
2019-06-21 15:04:33.118 INFO : mysensors: Thread already existed
2019-06-21 15:04:33.120 INFO : mysensors: Re-requesting presentation of all nodes on the network
2019-06-21 15:04:33.121 INFO : mysensors: << Requesting presentation from 1
2019-06-21 15:04:33.123 INFO : mysensors: Re-request of node presentation restarted
2019-06-21 15:04:33.124 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"cancelPairing","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-21 15:04:35.520 INFO : Successfully created new thing MySensors_1
2019-06-21 15:04:42.920 ERROR : mysensors: Node 2 is unknown
2019-06-21 15:04:57.864 ERROR : mysensors: Child 0 is unknown -
RE: MySensors: trying to add Things in WebThings Gateway
@rmalbers Just to add, this a log using USB GW, it seems to looks slightly different:
2019-06-21 14:46:04.725 INFO : Unloading MySensorsAdapter
2019-06-21 14:46:04.729 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"unloadAdapter","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-21 14:46:04.734 INFO : mysensors: Shutting down MySensors adapter
2019-06-21 14:46:04.736 INFO : mysensors: MySensors adapter was unable to cleanly close PyMySensors loop. This is not a problem.
2019-06-21 14:46:04.737 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"unloadPlugin","data":{"pluginId":"mysensors-adapter"}}'
2019-06-21 14:46:05.497 INFO : mysensors: MySensors add-on has succesfully loaded the configuration.
2019-06-21 14:46:08.255 INFO : Loading add-on: mysensors-adapter
2019-06-21 14:46:10.552 INFO : mysensors: initialising adapter from class
2019-06-21 14:46:10.555 INFO : mysensors: IpcClient: Connected to server, registering...
2019-06-21 14:46:10.559 INFO : mysensors: IpcClient: Received manager message: b'{"messageType":"registerPluginReply","data":{"pluginId":"mysensors-adapter","ipcBaseAddr":"gateway.plugin.mysensors-adapter"}}'
2019-06-21 14:46:10.561 INFO : mysensors: IpcClient: Registered with PluginServer
2019-06-21 14:46:10.564 INFO : mysensors: AddonManagerProxy: add_adapter: mysensors-adapter
2019-06-21 14:46:17.198 INFO : About to call startPairing on MySensorsAdapter
2019-06-21 14:46:17.205 INFO : mysensors: -Connection status is present in the config data.
2019-06-21 14:46:17.207 INFO : mysensors: RECREATING DEVICES FROM PERSISTENCE
2019-06-21 14:46:17.209 INFO : mysensors:
2019-06-21 14:46:17.210 INFO : mysensors: #0
2019-06-21 14:46:17.212 INFO : mysensors: -Gateway choice: USB Serial gateway
2019-06-21 14:46:17.214 INFO : mysensors: Selected USB device address: /dev/ttyUSB0
2019-06-21 14:46:17.215 INFO : mysensors:
2019-06-21 14:46:17.217 INFO : mysensors: >> incoming message > internal > id: 0; child: 255; subtype: 14; payload: Gateway startup complete.
2019-06-21 14:46:17.218 INFO : mysensors: Re-requesting presentation of all nodes on the network
2019-06-21 14:46:17.220 INFO : mysensors: Re-request thread created
2019-06-21 14:46:17.221 INFO : mysensors:
2019-06-21 14:46:17.223 INFO : mysensors: >> incoming message > presentation > id: 0; child: 255; subtype: 18; payload: 2.3.0
2019-06-21 14:46:17.225 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"startPairing","data":{"timeout":60,"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-21 14:46:17.245 INFO : Opened a new things socket
2019-06-21 14:46:44.848 ERROR : mysensors: Node 2 is unknown
2019-06-21 14:47:17.202 INFO : Pairing timeout
2019-06-21 14:47:17.206 ERROR : Thing was not added
2019-06-21 14:47:17.208 ERROR : addNewThing cancelled
2019-06-21 14:47:17.211 INFO : mysensors: PAIRING INITIATED
2019-06-21 14:47:17.213 INFO : mysensors: Thread already existed
2019-06-21 14:47:17.215 INFO : mysensors: Re-requesting presentation of all nodes on the network
2019-06-21 14:47:17.216 INFO : mysensors: Re-request of node presentation restarted
2019-06-21 14:47:17.218 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"cancelPairing","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-21 14:47:18.140 ERROR : mysensors: Node 1 is unknown -
RE: MySensors: trying to add Things in WebThings Gateway
Ok ,updated addon and rebooted GW. This test was in Ethernet mode. No luck but the log sure looks different:
2019-06-21 14:32:15.079 INFO : Opened a new things socket
2019-06-21 14:32:15.185 INFO : About to call startPairing on MySensorsAdapter
2019-06-21 14:32:15.197 INFO : mysensors: -Connection status is present in the config data.
2019-06-21 14:32:15.199 INFO : mysensors: RECREATING DEVICES FROM PERSISTENCE
2019-06-21 14:32:15.200 INFO : mysensors:
2019-06-21 14:32:15.202 INFO : mysensors: #0
2019-06-21 14:32:15.203 INFO : mysensors: -Gateway choice: Ethernet gateway
2019-06-21 14:32:15.205 INFO : mysensors: Selected IP address and port: 192.168.1.98
2019-06-21 14:32:15.206 INFO : mysensors:
2019-06-21 14:32:15.208 INFO : mysensors: >> incoming message > internal > id: 0; child: 255; subtype: 14; payload: Gateway startup complete.
2019-06-21 14:32:15.209 INFO : mysensors: Re-requesting presentation of all nodes on the network
2019-06-21 14:32:15.211 INFO : mysensors: Re-request thread created
2019-06-21 14:32:15.218 INFO : mysensors:
2019-06-21 14:32:15.220 INFO : mysensors: >> incoming message > presentation > id: 0; child: 255; subtype: 18; payload: 2.2.0
2019-06-21 14:32:15.221 INFO : mysensors:
2019-06-21 14:32:15.222 INFO : mysensors: >> incoming message > internal > id: 0; child: 255; subtype: 14; payload: Gateway startup complete.
2019-06-21 14:32:15.224 INFO : mysensors:
2019-06-21 14:32:15.225 INFO : mysensors: >> incoming message > presentation > id: 0; child: 255; subtype: 18; payload: 2.2.0
2019-06-21 14:32:15.227 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"startPairing","data":{"timeout":60,"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-21 14:32:15.465 ERROR : mysensors: Node 2 is unknown
2019-06-21 14:32:36.851 ERROR : mysensors: Node 1 is unknown
2019-06-21 14:32:50.254 ERROR : mysensors: Node 2 is unknown
2019-06-21 14:33:09.496 ERROR : mysensors: Node 1 is unknown
2019-06-21 14:33:15.190 INFO : Pairing timeout
2019-06-21 14:33:15.196 ERROR : Thing was not added
2019-06-21 14:33:15.198 ERROR : addNewThing cancelled
2019-06-21 14:33:15.201 INFO : mysensors: PAIRING INITIATED
2019-06-21 14:33:15.204 INFO : mysensors: Thread already existed
2019-06-21 14:33:15.205 INFO : mysensors: Re-requesting presentation of all nodes on the network
2019-06-21 14:33:15.207 INFO : mysensors: Re-request of node presentation restarted
2019-06-21 14:33:15.208 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"cancelPairing","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-21 14:33:25.022 ERROR : mysensors: Node 2 is unknown -
RE: MySensors: trying to add Things in WebThings Gateway
@alowhum Wow, ok, that's sounds great. I'll watch here for word.
-
RE: MySensors: trying to add Things in WebThings Gateway
Ok, I'll look at this and probably just start rebuilding my sensor's and gateway making sure I get those names in there. When I built this over a year ago I was playing with different boards and different sensors and once I got things working in Domoticz I moved on. That's why I have so much program source code out there. This time I'll put a unique, my version number in there so I can keep better track. I think I'll even physically label the sensors this time! Thanks for all your time on this, I really like the looks of the WebThings GW and it's really a good fit for the stuff I'm doing/trying to do. Oh, thanks for that about the code button, didn't know about that.
-
RE: MySensors: trying to add Things in WebThings Gateway
I need to keep better track of what software is running on a given cpu/sensor, sorry about that but I didn't think of it at the time! I 'think' this is what is running on the office sensor. I should probably build a new sensor using this code and make sure it works the same, (log files match what I've been giving you):
// Enable debug prints to serial monitor
//#define MY_DEBUG// Enable and select radio type attached
#include <MyConfig.h>#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69
#include <SPI.h>
#include <MySensors.h>
#include <DallasTemperature.h>
#include <OneWire.h>#define COMPARE_TEMP 1 // Send temperature only if changed? 1 = Yes 0 = No
#define ONE_WIRE_BUS 3 // Pin where dallase sensor is connected
#define MAX_ATTACHED_DS18B20 16
unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)
OneWire oneWire(ONE_WIRE_BUS); // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
DallasTemperature sensors(&oneWire); // Pass the oneWire reference to Dallas Temperature.
float lastTemperature[MAX_ATTACHED_DS18B20];
int numSensors = 0;
bool receivedConfig = false;
bool metric = true;
// Initialize temperature message
MyMessage msg(0, V_TEMP);void before()
{
// Startup up the OneWire library
sensors.begin();
}void setup()
{
// requestTemperatures() will not block current thread
sensors.setWaitForConversion(false);
}void presentation() {
// Send the sketch version information to the gateway and Controller
sendSketchInfo("Temperature Sensor", "1.1");// Fetch the number of attached temperature sensors numSensors = sensors.getDeviceCount(); // Present all sensors to controller for (int i = 0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) { present(i, S_TEMP); }
}
void loop()
{
// Fetch temperatures from Dallas sensors
sensors.requestTemperatures();// query conversion time and sleep until conversion completed int16_t conversionTime = sensors.millisToWaitForConversion(sensors.getResolution()); // sleep() call can be replaced by wait() call if node need to process incoming messages (or if node is repeater) sleep(conversionTime); // Read temperatures and send them to controller for (int i = 0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) { // Fetch and round temperature to one decimal float temperature = static_cast<float>(static_cast<int>((getControllerConfig().isMetric ? sensors.getTempCByIndex(i) : sensors.getTempFByIndex(i)) * 10.)) / 10.; // Only send data if temperature has changed and no error
#if COMPARE_TEMP == 1
if (lastTemperature[i] != temperature && temperature != -127.00 && temperature != 85.00) {
#else
if (temperature != -127.00 && temperature != 85.00) {
#endif// Send in the new temperature send(msg.setSensor(i).set(temperature, 1)); // Save new temperatures for next compare lastTemperature[i] = temperature; } } sleep(SLEEP_TIME); }
-
RE: MySensors: trying to add Things in WebThings Gateway
I noticed something with the Ethernet GW: On the addon configure page under the 'IP address' the text has an IP address example that includes the port. When I include the port I get this data in the log file: 2019-06-19 17:47:34.750 ERROR : mysensors: INFO:mysensors.gateway_tcp:Trying to connect to ('192.168.1.98:5003', 5003)
2019-06-19 17:47:34.758 ERROR : mysensors: ERROR:mysensors.gateway_tcp:Failed to connect to socket at ('192.168.1.98:5003', 5003)and it doesn't seem to connect.
When I leave off the port number I get this in the log file:
2019-06-19 17:49:44.095 ERROR : mysensors: INFO:mysensors.gateway_tcp:Trying to connect to ('192.168.1.98', 5003)
2019-06-19 17:49:44.111 ERROR : mysensors: INFO:mysensors:Connected to <_SelectorSocketTransport fd=14 read=idle write=<idle, bufsize=0>>and it seems to connect. If I'm interpreting this correctly you have to leave the port number off the IP string for it to work properly, not sure which way it really should be, just pointing this out in case it hadn't been noticed.
-
RE: MySensors: trying to add Things in WebThings Gateway
FWIW: I was just thinking I should mention, after the 'Update' of the addon the first time I tired it I got the same/similar messages as I had in my OP. I rebooted at that point and those messages went away so I'm thinking that after addon install or update a reboot is probably a good idea.
-
RE: MySensors: trying to add Things in WebThings Gateway
This log is from an attempt (with the new addon) using 'Ethernet' GW and the IP address of the GW that I've been using with Domoticz for the last year or so, (it's at mysensor v2.2) This looks like it was communicating with the gw and thus the sensors but still didn't work. This could be because I am at V2.2 of mysensors(?).:
2019-06-19 15:33:17.874 INFO : Loading add-on: mysensors-adapter
2019-06-19 15:33:20.227 INFO : mysensors: initialising adapter from class
2019-06-19 15:33:20.229 INFO : mysensors: IpcClient: Connected to server, registering...
2019-06-19 15:33:20.233 INFO : mysensors: IpcClient: Received manager message: b'{"messageType":"registerPluginReply","data":{"pluginId":"mysensors-adapter","ipcBaseAddr":"gateway.plugin.mysensors-adapter"}}'
2019-06-19 15:33:20.236 INFO : mysensors: IpcClient: Registered with PluginServer
2019-06-19 15:33:20.238 INFO : mysensors: AddonManagerProxy: add_adapter: mysensors-adapter
2019-06-19 15:33:20.314 ERROR : mysensors: DEBUG:mysensors.persistence:Loading sensors from persistence file /home/pi/.mozilla-iot/config/mysensors-adapter-persistence.json
2019-06-19 15:33:20.319 ERROR : mysensors: DEBUG:mysensors.persistence:Saving sensors to persistence file /home/pi/.mozilla-iot/config/mysensors-adapter-persistence.json
2019-06-19 15:33:20.330 ERROR : mysensors: INFO:mysensors.gateway_tcp:Trying to connect to ('192.168.1.98', 5003)
2019-06-19 15:33:20.393 ERROR : mysensors: INFO:mysensors:Connected to <_SelectorSocketTransport fd=14 read=idle write=<idle, bufsize=0>>
2019-06-19 15:33:20.425 ERROR : mysensors: DEBUG:mysensors:Receiving 0;255;3;0;14;Gateway startup complete.
2019-06-19 15:33:20.434 ERROR : mysensors: INFO:mysensors.handler:n:0 c:255 t:3 s:14 p:Gateway startup complete.
2019-06-19 15:33:20.436 ERROR : mysensors: DEBUG:mysensors:Sending 255;255;3;0;20;
2019-06-19 15:33:20.438 ERROR : mysensors: DEBUG:mysensors:Receiving 0;255;0;0;18;2.2.0
2019-06-19 15:33:20.442 ERROR : mysensors: DEBUG:mysensors:Sending 0;255;3;0;26;0
2019-06-19 15:33:27.927 ERROR : mysensors: DEBUG:mysensors:Receiving 1;0;1;0;0;22.6
2019-06-19 15:33:27.932 ERROR : mysensors: WARNING:mysensors:Node 1 is unknown
2019-06-19 15:33:27.934 ERROR : mysensors: INFO:mysensors:Requesting new presentation for node 1
2019-06-19 15:33:27.935 ERROR : mysensors: DEBUG:mysensors:Sending 1;255;3;0;19;
2019-06-19 15:33:29.635 INFO : About to call startPairing on MySensorsAdapter
2019-06-19 15:33:29.642 INFO : mysensors: -Connection status was present in the config data.
2019-06-19 15:33:29.644 INFO : mysensors: -Gateway choice: Ethernet gateway
2019-06-19 15:33:29.646 INFO : mysensors: Selected IP address and port: 192.168.1.98
2019-06-19 15:33:29.648 INFO : mysensors: >> incoming message > internal > id: 0; child: 255; subtype: 14; payload: Gateway startup complete.
2019-06-19 15:33:29.649 INFO : mysensors: >> incoming message > presentation > id: 0; child: 255; subtype: 18; payload: 2.2.0
2019-06-19 15:33:29.651 INFO : mysensors: RECREATING DEVICES FROM PERSISTENCE
2019-06-19 15:33:29.652 INFO : mysensors: Re-requesting presentation of all nodes on the network
2019-06-19 15:33:29.654 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"startPairing","data":{"timeout":60,"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-19 15:33:29.656 ERROR : mysensors: DEBUG:mysensors:Sending 0;255;3;0;26;0
2019-06-19 15:33:29.695 INFO : Opened a new things socket
2019-06-19 15:33:30.333 ERROR : mysensors: DEBUG:mysensors.persistence:Saving sensors to persistence file /home/pi/.mozilla-iot/config/mysensors-adapter-persistence.json
2019-06-19 15:33:30.495 ERROR : mysensors: DEBUG:mysensors:Sending 0;255;3;0;2;
2019-06-19 15:33:30.558 ERROR : mysensors: DEBUG:mysensors:Receiving 0;255;3;0;2;2.2.0
2019-06-19 15:33:34.611 ERROR : mysensors: DEBUG:mysensors:Receiving 2;0;1;0;0;23.2
2019-06-19 15:33:34.614 ERROR : mysensors: WARNING:mysensors:Node 2 is unknown
2019-06-19 15:33:34.617 ERROR : mysensors: INFO:mysensors:Requesting new presentation for node 2
2019-06-19 15:33:34.618 ERROR : mysensors: DEBUG:mysensors:Sending 2;255;3;0;19;
2019-06-19 15:33:40.597 ERROR : mysensors: DEBUG:mysensors:Sending 0;255;3;0;2;
2019-06-19 15:33:40.689 ERROR : mysensors: DEBUG:mysensors:Receiving 0;255;3;0;2;2.2.0
2019-06-19 15:33:50.699 ERROR : mysensors: DEBUG:mysensors:Sending 0;255;3;0;2;
2019-06-19 15:33:50.820 ERROR : mysensors: DEBUG:mysensors:Receiving 0;255;3;0;2;2.2.0
2019-06-19 15:34:00.595 ERROR : mysensors: DEBUG:mysensors:Receiving 1;0;1;0;0;22.6
2019-06-19 15:34:00.599 ERROR : mysensors: WARNING:mysensors:Node 1 is unknown
2019-06-19 15:34:00.601 ERROR : mysensors: INFO:mysensors:Requesting new presentation for node 1
2019-06-19 15:34:00.602 ERROR : mysensors: DEBUG:mysensors:Sending 1;255;3;0;19;
2019-06-19 15:34:00.801 ERROR : mysensors: DEBUG:mysensors:Sending 0;255;3;0;2;
2019-06-19 15:34:00.875 ERROR : mysensors: DEBUG:mysensors:Receiving 0;255;3;0;2;2.2.0
2019-06-19 15:34:09.359 ERROR : mysensors: DEBUG:mysensors:Receiving 2;0;1;0;0;23.2
2019-06-19 15:34:09.362 ERROR : mysensors: WARNING:mysensors:Node 2 is unknown
2019-06-19 15:34:09.365 ERROR : mysensors: INFO:mysensors:Requesting new presentation for node 2
2019-06-19 15:34:09.366 ERROR : mysensors: DEBUG:mysensors:Sending 2;255;3;0;19;
2019-06-19 15:34:10.903 ERROR : mysensors: DEBUG:mysensors:Sending 0;255;3;0;2;
2019-06-19 15:34:10.980 ERROR : mysensors: DEBUG:mysensors:Receiving 0;255;3;0;2;2.2.0
2019-06-19 15:34:21.005 ERROR : mysensors: DEBUG:mysensors:Sending 0;255;3;0;2;
2019-06-19 15:34:21.112 ERROR : mysensors: DEBUG:mysensors:Receiving 0;255;3;0;2;2.2.0
2019-06-19 15:34:29.646 INFO : Pairing timeout
2019-06-19 15:34:29.651 ERROR : Thing was not added
2019-06-19 15:34:29.653 ERROR : addNewThing cancelled -
RE: MySensors: trying to add Things in WebThings Gateway
Ok, when I went into the WT GW the first time the addon was at V0.0.7 but there was an new 'Update' tab that I hit and the new addon version installed. With the USB gateway I get this (I think I started the cut/paste at the right spot):
2019-06-19 15:49:54.172 INFO : Loading add-on: mysensors-adapter
2019-06-19 15:49:56.494 INFO : mysensors: initialising adapter from class
2019-06-19 15:49:56.496 INFO : mysensors: IpcClient: Connected to server, registering...
2019-06-19 15:49:56.500 INFO : mysensors: IpcClient: Received manager message: b'{"messageType":"registerPluginReply","data":{"pluginId":"mysensors-adapter","ipcBaseAddr":"gateway.plugin.mysensors-adapter"}}'
2019-06-19 15:49:56.503 INFO : mysensors: IpcClient: Registered with PluginServer
2019-06-19 15:49:56.505 INFO : mysensors: AddonManagerProxy: add_adapter: mysensors-adapter
2019-06-19 15:50:13.088 INFO : About to call startPairing on MySensorsAdapter
2019-06-19 15:50:13.096 INFO : mysensors: -Connection status was present in the config data.
2019-06-19 15:50:13.098 INFO : mysensors: -Gateway choice: USB Serial gateway
2019-06-19 15:50:13.099 INFO : mysensors: Error extracting settings from config object: local variable 'ip_address' referenced before assignment
2019-06-19 15:50:13.101 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"startPairing","data":{"timeout":60,"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-19 15:50:18.322 INFO : Opened a new things socket
2019-06-19 15:51:13.092 INFO : Pairing timeout
2019-06-19 15:51:13.095 ERROR : Thing was not added
2019-06-19 15:51:13.113 ERROR : addNewThing cancelled
2019-06-19 15:51:13.118 INFO : mysensors: PAIRING INITIATED
2019-06-19 15:51:13.120 INFO : mysensors: Error re-requesting node ID's from devices in the MySensors network:'MySensorsAdapter' object has no attribute 't'
2019-06-19 15:51:13.121 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"cancelPairing","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}' -
RE: MySensors: trying to add Things in WebThings Gateway
Wow, that sounds great! At first I was thinking it might be a permissions issue with opening the USB port but I opened permissions up and found that didn't seem to be the issue.
-
RE: MySensors: trying to add Things in WebThings Gateway
Ok, I built a new serial USB MySensor gateway. (The old GW is unplugged and Domoticz is shutdown.) The new MS gateway is working because under the IDE I can turn on the com serial port debug and see it going, communicating with the sensors.) I move the USB serial gw to the rasp pi WebThings gateway and set the addon to: /dev/ttyUSB0 and to USB serial gateway. I get the same messages as above. I'm also seeing this in a couple of log files on the WebThings gateway: cat: /tmp/gateway.addonManager: No such device or address
cat: /tmp/gateway.plugin.mysensors-adapter: No such device or address
So it sure sounds like in this case it's not seeing or able to open that USB device. That is the device name that appears when I plug the usb serial gateway USB cable into the WebThings gateway rasp pi. -
RE: MySensors: trying to add Things in WebThings Gateway
Ok, with Domoticz shutdown I get the same stuff in the log. I'm going to see if I can tell more what's going on with wireshark. I'm thinking it has to be something stupid that I have going on, I know my MySensors gateway is good because it's working with Domoticz, the Mozilla WebThings gateway is working because it works with Dark sky weather, so I would think it's something going on with the comm between the two gateways.
-
RE: MySensors: trying to add Things in WebThings Gateway
Ok, I think I tried it with domoticz shutdown but I'll try that again. Thanks to the other reply that they have this working, that gives my hope! Na78: What version of mysensor gateway code are you running? Mine is at V2.2 and I'm wondering if that might be my problem. Thanks for the help on this BTW!
-
RE: MySensors: trying to add Things in WebThings Gateway
I was just thinking, my MySensors gateway was built using version 2.2 mysensors code, I am sort of wondering if that is my problem. This addon was probably never tested against older MySensor version gateway's I'm assuming? At this point I'm thinking I should build a new MS gateway and try that. The WebThings Gateway seems to be working and I know my MySensors sensors are working fine in Domoticz so that really just leaves the MySensors gateway at Version 2.2 as a possible issue. This addon seems to be working for others so I guess that's the most logical thing for me to try. I really would like to get the WebThings gateway working because it really fits what I need for the stuff I have around here!
-
RE: MySensors: trying to add Things in WebThings Gateway
Here is a log where I rebooted, went directly to 'Things' and '+' to add/discover new things: (One thing is strange is that I don't seem to be getting that 'original' error where you said it was like two instances where running so maybe that was the case for that error.)
2019-06-15 21:41:16.559 INFO : About to call startPairing on MySensorsAdapter
2019-06-15 21:41:16.569 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"startPairing","data":{"timeout":60,"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-15 21:41:16.876 INFO : Opened a new things socket
2019-06-15 21:42:16.565 INFO : Pairing timeout
2019-06-15 21:42:16.570 ERROR : Thing was not added
2019-06-15 21:42:16.572 ERROR : addNewThing cancelled
2019-06-15 21:42:16.575 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"cancelPairing","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}' -
RE: MySensors: trying to add Things in WebThings Gateway
Here is a log of another 'thing' Add with the port number on the IP address: (I also disabled the weather and system addon's to try to keep the log cleaner.)
2019-06-15 21:31:41.231 INFO : mysensors: MySensors adapter was unable to cleanly close PyMySensors. This is not a problem.
2019-06-15 21:31:41.233 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"unloadPlugin","data":{"pluginId":"mysensors-adapter"}}'
2019-06-15 21:31:43.097 ERROR : mysensors: Exception in thread Thread-2:
2019-06-15 21:31:43.099 ERROR : mysensors: Traceback (most recent call last):
2019-06-15 21:31:43.101 ERROR : mysensors: File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
2019-06-15 21:31:43.103 ERROR : mysensors: self.run()
2019-06-15 21:31:43.105 ERROR : mysensors: File "/usr/lib/python3.5/threading.py", line 862, in run
2019-06-15 21:31:43.107 ERROR : mysensors: self._target(*self._args, **self._kwargs)
2019-06-15 21:31:43.108 ERROR : mysensors: File "/home/pi/.mozilla-iot/addons/mysensors-adapter/pkg/mysensors_adapter.py", line 381, in start_pairing
2019-06-15 21:31:43.110 ERROR : mysensors: if not self.t.is_alive():
2019-06-15 21:31:43.112 ERROR : mysensors: AttributeError: 'MySensorsAdapter' object has no attribute 't'
2019-06-15 21:31:43.114 ERROR : mysensors:
2019-06-15 21:31:43.115 ERROR : mysensors: Exception in thread Thread-4:
2019-06-15 21:31:43.117 ERROR : mysensors: Traceback (most recent call last):
2019-06-15 21:31:43.119 ERROR : mysensors: File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
2019-06-15 21:31:43.121 ERROR : mysensors: self.run()
2019-06-15 21:31:43.122 ERROR : mysensors: File "/usr/lib/python3.5/threading.py", line 862, in run
2019-06-15 21:31:43.129 ERROR : mysensors: self._target(*self._args, **self._kwargs)
2019-06-15 21:31:43.131 ERROR : mysensors: File "/home/pi/.mozilla-iot/addons/mysensors-adapter/pkg/mysensors_adapter.py", line 381, in start_pairing
2019-06-15 21:31:43.132 ERROR : mysensors: if not self.t.is_alive():
2019-06-15 21:31:43.134 ERROR : mysensors: AttributeError: 'MySensorsAdapter' object has no attribute 't'
2019-06-15 21:31:43.136 ERROR : mysensors:
2019-06-15 21:31:44.747 INFO : Loading add-on: mysensors-adapter
2019-06-15 21:31:47.080 INFO : mysensors: initialising adapter from class
2019-06-15 21:31:47.082 INFO : mysensors: IpcClient: Connected to server, registering...
2019-06-15 21:31:47.085 INFO : mysensors: IpcClient: Received manager message: b'{"messageType":"registerPluginReply","data":{"pluginId":"mysensors-adapter","ipcBaseAddr":"gateway.plugin.mysensors-adapter"}}'
2019-06-15 21:31:47.088 INFO : mysensors: IpcClient: Registered with PluginServer
2019-06-15 21:31:47.090 INFO : mysensors: AddonManagerProxy: add_adapter: mysensors-adapter
2019-06-15 21:31:53.398 INFO : About to call startPairing on MySensorsAdapter
2019-06-15 21:31:53.411 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"startPairing","data":{"timeout":60,"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-15 21:31:53.515 INFO : Opened a new things socket
2019-06-15 21:32:53.402 INFO : Pairing timeout
2019-06-15 21:32:53.405 ERROR : Thing was not added
2019-06-15 21:32:53.407 ERROR : addNewThing cancelled
2019-06-15 21:32:53.410 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"cancelPairing","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}' -
RE: MySensors: trying to add Things in WebThings Gateway
I have tried rebooting. It looks like it's version 0.0.7 (the addon that's included with WebThings). Rasp pi with the latest download gateway-0.8.1.img. I'm using Ethernet gateway, the usb device name is blank. I'm using a IP ADDR: 192.168.98:5003 (which is what is working with Domoticz). Question: I've tried it with and without the port, should I have the port in there or not? FYI: Just for fun I added the weather plugin using 'Dark Sky' and it is working so my WebThings Gateway works for that 'thing'. I have turned on debugging and do have some more stuff in the log (I'm not totally sure when to start the cut/paste of the log):
2019-06-15 21:13:19.062 INFO : mysensors: initialising adapter from class
2019-06-15 21:13:19.063 INFO : mysensors: IpcClient: Connected to server, registering...
2019-06-15 21:13:19.067 INFO : mysensors: IpcClient: Received manager message: b'{"messageType":"registerPluginReply","data":{"pluginId":"mysensors-adapter","ipcBaseAddr":"gateway.plugin.mysensors-adapter"}}'
2019-06-15 21:13:19.070 INFO : mysensors: IpcClient: Registered with PluginServer
2019-06-15 21:13:19.071 INFO : mysensors: AddonManagerProxy: add_adapter: mysensors-adapter
2019-06-15 21:14:04.011 INFO : Pairing timeout
2019-06-15 21:14:04.017 ERROR : Thing was not added
2019-06-15 21:14:04.019 ERROR : addNewThing cancelled
2019-06-15 21:14:04.024 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"cancelPairing","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-15 21:14:04.027 INFO : weather: Adapter: WeatherAdapter id weather-adapter pairing cancelled
2019-06-15 21:14:04.029 INFO : systeminfo: Adapter: SysteminfoAdapter id SysteminfoAdapter pairing cancelled
2019-06-15 21:17:52.418 INFO : Unloading MySensorsAdapter
2019-06-15 21:17:52.422 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"unloadAdapter","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-15 21:17:52.426 INFO : mysensors: Shutting down MySensors adapter
2019-06-15 21:17:52.428 INFO : mysensors: MySensors adapter was unable to cleanly close PyMySensors. This is not a problem.
2019-06-15 21:17:52.429 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"unloadPlugin","data":{"pluginId":"mysensors-adapter"}}'
2019-06-15 21:17:55.944 INFO : Loading add-on: mysensors-adapter
2019-06-15 21:17:58.235 INFO : mysensors: initialising adapter from class
2019-06-15 21:17:58.237 INFO : mysensors: IpcClient: Connected to server, registering...
2019-06-15 21:17:58.240 INFO : mysensors: IpcClient: Received manager message: b'{"messageType":"registerPluginReply","data":{"pluginId":"mysensors-adapter","ipcBaseAddr":"gateway.plugin.mysensors-adapter"}}'
2019-06-15 21:17:58.243 INFO : mysensors: IpcClient: Registered with PluginServer
2019-06-15 21:17:58.245 INFO : mysensors: AddonManagerProxy: add_adapter: mysensors-adapter
2019-06-15 21:18:11.500 INFO : About to call startPairing on SysteminfoAdapter
2019-06-15 21:18:11.502 INFO : About to call startPairing on WeatherAdapter
2019-06-15 21:18:11.503 INFO : About to call startPairing on MySensorsAdapter
2019-06-15 21:18:11.511 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"startPairing","data":{"timeout":60,"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}'
2019-06-15 21:18:11.513 INFO : systeminfo: Adapter: SysteminfoAdapter id SysteminfoAdapter pairing started
2019-06-15 21:18:11.577 INFO : Opened a new things socket
2019-06-15 21:19:11.505 INFO : Pairing timeout
2019-06-15 21:19:11.509 ERROR : Thing was not added
2019-06-15 21:19:11.510 ERROR : addNewThing cancelled
2019-06-15 21:19:11.514 INFO : weather: Adapter: WeatherAdapter id weather-adapter pairing cancelled
2019-06-15 21:19:11.516 INFO : systeminfo: Adapter: SysteminfoAdapter id SysteminfoAdapter pairing cancelled
2019-06-15 21:19:11.518 INFO : mysensors: AddonMangerProxy: recv: b'{"messageType":"cancelPairing","data":{"adapterId":"mysensors-adapter","pluginId":"mysensors-adapter"}}' -
RE: WebThings gateway and Domoticz
@mfalkvidd I did see some talk in the 'Vera' section about it and it 'sounds' like it would work if you have this set to more than one and I do have it set to six: #define MY_GATEWAY_MAX_CLIENTS 6 ---- After thinking about it and posting this I did shut down domoticz and tried it with the same results (as I have in my other post) so I guess that is not my issue.
-
WebThings gateway and Domoticz
I entered another question/issue I have here also but I guess I'm wondering, can I run Domoticz and WebThings at the same time both connected to the same mysensors gateway? I currently am trying to do that and maybe that's my problem.
-
MySensors: trying to add Things in WebThings Gateway
Ok, here we go. I've had some basic mysensors working with Domoticx for over a year and thought I would give this Gateway a try. I have it installed and everything appears fine (sensor work in Domoticx) but when I try to add 'Things' in the gateway it says that none are found and I get this stuff in the log. (I do have the addin for mysensors added in)
2019-06-15 00:00:01.174 INFO : mysensors: initialising adapter from class
2019-06-15 00:00:01.177 INFO : mysensors: IpcClient: Connected to server, registering...
2019-06-15 00:00:01.180 INFO : mysensors: IpcClient: Received manager message: b'{"messageType":"registerPluginReply","data":{"pluginId":"mysensors-adapter","ipcBaseAddr":"gateway.plugin.mysensors-adapter"}}'
2019-06-15 00:00:01.182 INFO : mysensors: IpcClient: Registered with PluginServer
2019-06-15 00:00:01.183 INFO : mysensors: AddonManagerProxy: add_adapter: mysensors-adapter
2019-06-15 00:00:54.503 ERROR : mysensors: Unexpected source: state=5 source=1 action=5 (src/transports/utils/streamhdr.c:306)
2019-06-15 00:00:54.509 INFO : Plugin: mysensors-adapter died, code = null restarting...
2019-06-15 00:00:56.808 INFO : mysensors: initialising adapter from class
2019-06-15 00:00:56.809 INFO : mysensors: IpcClient: Connected to server, registering...
2019-06-15 00:00:56.811 INFO : mysensors: IpcClient: Received manager message: b'{"messageType":"registerPluginReply","data":{"pluginId":"mysensors-adapter","ipcBaseAddr":"gateway.plugin.mysensors-adapter"}}'
2019-06-15 00:00:56.813 INFO : mysensors: IpcClient: Registered with PluginServer
2019-06-15 00:00:56.815 INFO : mysensors: AddonManagerProxy: add_adapter: mysensors-adapter
2019-06-15 00:02:13.546 ERROR : mysensors: Unexpected source: state=5 source=1 action=5 (src/transports/utils/streamhdr.c:306)
2019-06-15 00:02:13.552 INFO : Plugin: mysensors-adapter died, code = null restarting...
2019-06-15 00:02:15.847 INFO : mysensors: initialising adapter from class
2
Can someone help me with this error? I don't know what to even try.