Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. George Laynes
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    George Laynes

    @George Laynes

    3
    Reputation
    7
    Posts
    485
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    George Laynes Follow

    Best posts made by George Laynes

    • RE: Can't add sensor to gateway - problems with two-way communication

      Domoticz doesn't matter here at this point.

      The logs I posted are from Arduino IDE Serial Monitor.

      However, this can be closed without me yet again understanding what happened.

      I made a mistake of changing two things at the same time.

      I disconnected everything and left it for an hour or so.
      I reconnected and launched MYSController - and the damned thing just started working at one. I didn't have to change any settings, include, click anything. It just worked.

      Now, Domoticz works too, of course. All that's left is to start soldering on a proper board instead of the bread board I was using.

      Thanks for trying @AWI 🙂

      posted in Troubleshooting
      George Laynes
      George Laynes
    • OpenHAB 2.1 keeps showing light level as 0 with BH1750 and V_LEVEL

      I've been seeing a funny thing for a while and finally got down to try to figure this thing out.

      I have built a couple sensors with the BH1750 light sensor.
      I know the sensor works and that the lux value is transferred to the gateway and read into OpenHAB, as seen here (this is pulled from debug logging from Karaf in OH2.1):

      4;1;1;0;0;24.0
      0;255;3;0;9;TSF:MSG:READ,4-4-0,s=0,c=1,t=1,pt=7,l=5,sg=0:52.3
      4;0;1;0;1;52.3
      0;255;3;0;9;TSF:MSG:READ,4-4-0,s=2,c=1,t=37,pt=3,l=2,sg=0:30
      4;2;1;0;37;30
      0;255;3;0;9;TSF:MSG:READ,4-4-0,s=255,c=3,t=0,pt=1,l=1,sg=0:31
      4;255;3;0;0;31
      0;255;3;0;9;TSF:MSG:READ,4-4-0,s=3,c=1,t=16,pt=0,l=1,sg=0:0
      4;3;1;0;16;0
      

      Light level is child sensor 2.

      What bugs me is that each value gets transferred into an appropriate item, except for light level, as seen here:

      22:28:38.347 [DEBUG] [rsAbstractConnection$MySensorsReader] - 4;1;1;0;0;24.0
      22:28:38.349 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 4 found in gateway
      22:28:38.350 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 1 found in node 4
      22:28:38.352 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: temp(0) value to: 24.0
      22:28:38.383 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/1 to 2017-07-09T22:28:38.000+0200
      22:28:38.384 [DEBUG] [rsAbstractConnection$MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,4-4-0,s=0,c=1,t=1,pt=7,l=5,sg=0:52.3
      22:28:38.386 [DEBUG] [rsAbstractConnection$MySensorsReader] - 4;0;1;0;1;52.3
      22:28:38.387 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 4 found in gateway
      22:28:38.395 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 4
      22:28:38.397 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: hum(1) value to: 52.3
      22:28:38.405 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3TemperatureLC changed from 2017-07-09T22:26:26.000+0200 to 2017-07-09T22:28:38.000+0200
      22:28:38.430 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/0 to 2017-07-09T22:28:38.000+0200
      22:28:38.431 [DEBUG] [rsAbstractConnection$MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,4-4-0,s=2,c=1,t=37,pt=3,l=2,sg=0:30
      22:28:38.437 [DEBUG] [rsAbstractConnection$MySensorsReader] - 4;2;1;0;37;30
      22:28:38.437 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3Humidity changed from 52.9 to 52.3
      22:28:38.447 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 4 found in gateway
      22:28:38.448 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3HumidityLC changed from 2017-07-09T22:26:26.000+0200 to 2017-07-09T22:28:38.000+0200
      22:28:38.449 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 2 found in node 4
      22:28:38.453 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: level(37) value to: 30
      22:28:38.462 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/2 to 2017-07-09T22:28:38.000+0200
      22:28:38.464 [DEBUG] [rsAbstractConnection$MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,4-4-0,s=255,c=3,t=0,pt=1,l=1,sg=0:31
      22:28:38.465 [DEBUG] [rsAbstractConnection$MySensorsReader] - 4;255;3;0;0;31
      22:28:38.469 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Battery percent for node 4 update to: 31%
      22:28:38.470 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: battery value to: 31
      22:28:38.472 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3LightLevelLC changed from 2017-07-09T22:26:26.000+0200 to 2017-07-09T22:28:38.000+0200
      22:28:38.482 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/0 to 2017-07-09T22:28:38.000+0200
      22:28:38.483 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: battery value to: 31
      22:28:38.495 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3Battery changed from 99 to 31
      22:28:38.496 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/2 to 2017-07-09T22:28:38.000+0200
      22:28:38.496 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: battery value to: 31
      22:28:38.513 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/3 to 2017-07-09T22:28:38.000+0200
      22:28:38.514 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: battery value to: 31
      22:28:38.524 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/1 to 2017-07-09T22:28:38.000+0200
      22:28:38.530 [DEBUG] [rsAbstractConnection$MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,4-4-0,s=3,c=1,t=16,pt=0,l=1,sg=0:0
      22:28:38.530 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3MotionLC changed from 2017-07-09T22:26:26.000+0200 to 2017-07-09T22:28:38.000+0200
      22:28:38.534 [DEBUG] [rsAbstractConnection$MySensorsReader] - 4;3;1;0;16;0
      22:28:38.536 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 4 found in gateway
      22:28:38.537 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 3 found in node 4
      22:28:38.538 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: tripped(16) value to: CLOSED
      22:28:38.547 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/3 to 2017-07-09T22:28:38.000+0200
      

      It looks like the value for light just gets ignored.

      I added light sensors via PaperUI by manually adding a thing and then an item from that (not using Simple mode).

      The code for the sensor is pulled directly out of the example and in Arduino debug, the value is properly given.

      Does anyone else have this problem?

      posted in Troubleshooting
      George Laynes
      George Laynes
    • RE: OpenHAB 2.1 keeps showing light level as 0 with BH1750 and V_LEVEL

      @TimO - I live to serve 😉 and find bugs.

      Any idea on how soon it'll be available for general public?

      posted in Troubleshooting
      George Laynes
      George Laynes

    Latest posts made by George Laynes

    • RE: [SOLVED] Problems with ESP8266 and NRF24L01+

      This thread has been a life saver for me.
      Just wanted to drop a line for anyone else who might be despairing why despite numerous tests, the radio would still not work on the NodeMCU.

      In my case, it was NodeMCU v3 from Lolin and I had two traces not workingbetween GPIO13 and GPIO12 - there was no continuity of the trace between the ESP-12E chip and the board pins. I had to solder those two traces together and now - everything works!

      Thank you for inspiring me to look for this problem.

      posted in Hardware
      George Laynes
      George Laynes
    • RE: OpenHAB 2.1 keeps showing light level as 0 with BH1750 and V_LEVEL

      @TimO - I live to serve 😉 and find bugs.

      Any idea on how soon it'll be available for general public?

      posted in Troubleshooting
      George Laynes
      George Laynes
    • OpenHAB 2.1 keeps showing light level as 0 with BH1750 and V_LEVEL

      I've been seeing a funny thing for a while and finally got down to try to figure this thing out.

      I have built a couple sensors with the BH1750 light sensor.
      I know the sensor works and that the lux value is transferred to the gateway and read into OpenHAB, as seen here (this is pulled from debug logging from Karaf in OH2.1):

      4;1;1;0;0;24.0
      0;255;3;0;9;TSF:MSG:READ,4-4-0,s=0,c=1,t=1,pt=7,l=5,sg=0:52.3
      4;0;1;0;1;52.3
      0;255;3;0;9;TSF:MSG:READ,4-4-0,s=2,c=1,t=37,pt=3,l=2,sg=0:30
      4;2;1;0;37;30
      0;255;3;0;9;TSF:MSG:READ,4-4-0,s=255,c=3,t=0,pt=1,l=1,sg=0:31
      4;255;3;0;0;31
      0;255;3;0;9;TSF:MSG:READ,4-4-0,s=3,c=1,t=16,pt=0,l=1,sg=0:0
      4;3;1;0;16;0
      

      Light level is child sensor 2.

      What bugs me is that each value gets transferred into an appropriate item, except for light level, as seen here:

      22:28:38.347 [DEBUG] [rsAbstractConnection$MySensorsReader] - 4;1;1;0;0;24.0
      22:28:38.349 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 4 found in gateway
      22:28:38.350 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 1 found in node 4
      22:28:38.352 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: temp(0) value to: 24.0
      22:28:38.383 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/1 to 2017-07-09T22:28:38.000+0200
      22:28:38.384 [DEBUG] [rsAbstractConnection$MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,4-4-0,s=0,c=1,t=1,pt=7,l=5,sg=0:52.3
      22:28:38.386 [DEBUG] [rsAbstractConnection$MySensorsReader] - 4;0;1;0;1;52.3
      22:28:38.387 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 4 found in gateway
      22:28:38.395 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 4
      22:28:38.397 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: hum(1) value to: 52.3
      22:28:38.405 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3TemperatureLC changed from 2017-07-09T22:26:26.000+0200 to 2017-07-09T22:28:38.000+0200
      22:28:38.430 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/0 to 2017-07-09T22:28:38.000+0200
      22:28:38.431 [DEBUG] [rsAbstractConnection$MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,4-4-0,s=2,c=1,t=37,pt=3,l=2,sg=0:30
      22:28:38.437 [DEBUG] [rsAbstractConnection$MySensorsReader] - 4;2;1;0;37;30
      22:28:38.437 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3Humidity changed from 52.9 to 52.3
      22:28:38.447 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 4 found in gateway
      22:28:38.448 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3HumidityLC changed from 2017-07-09T22:26:26.000+0200 to 2017-07-09T22:28:38.000+0200
      22:28:38.449 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 2 found in node 4
      22:28:38.453 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: level(37) value to: 30
      22:28:38.462 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/2 to 2017-07-09T22:28:38.000+0200
      22:28:38.464 [DEBUG] [rsAbstractConnection$MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,4-4-0,s=255,c=3,t=0,pt=1,l=1,sg=0:31
      22:28:38.465 [DEBUG] [rsAbstractConnection$MySensorsReader] - 4;255;3;0;0;31
      22:28:38.469 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Battery percent for node 4 update to: 31%
      22:28:38.470 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: battery value to: 31
      22:28:38.472 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3LightLevelLC changed from 2017-07-09T22:26:26.000+0200 to 2017-07-09T22:28:38.000+0200
      22:28:38.482 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/0 to 2017-07-09T22:28:38.000+0200
      22:28:38.483 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: battery value to: 31
      22:28:38.495 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3Battery changed from 99 to 31
      22:28:38.496 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/2 to 2017-07-09T22:28:38.000+0200
      22:28:38.496 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: battery value to: 31
      22:28:38.513 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/3 to 2017-07-09T22:28:38.000+0200
      22:28:38.514 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: battery value to: 31
      22:28:38.524 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/1 to 2017-07-09T22:28:38.000+0200
      22:28:38.530 [DEBUG] [rsAbstractConnection$MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,4-4-0,s=3,c=1,t=16,pt=0,l=1,sg=0:0
      22:28:38.530 [INFO ] [marthome.event.ItemStateChangedEvent] - iUS3MotionLC changed from 2017-07-09T22:26:26.000+0200 to 2017-07-09T22:28:38.000+0200
      22:28:38.534 [DEBUG] [rsAbstractConnection$MySensorsReader] - 4;3;1;0;16;0
      22:28:38.536 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 4 found in gateway
      22:28:38.537 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 3 found in node 4
      22:28:38.538 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: tripped(16) value to: CLOSED
      22:28:38.547 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 4/3 to 2017-07-09T22:28:38.000+0200
      

      It looks like the value for light just gets ignored.

      I added light sensors via PaperUI by manually adding a thing and then an item from that (not using Simple mode).

      The code for the sensor is pulled directly out of the example and in Arduino debug, the value is properly given.

      Does anyone else have this problem?

      posted in Troubleshooting
      George Laynes
      George Laynes
    • RE: Can't add sensor to gateway - problems with two-way communication

      Domoticz doesn't matter here at this point.

      The logs I posted are from Arduino IDE Serial Monitor.

      However, this can be closed without me yet again understanding what happened.

      I made a mistake of changing two things at the same time.

      I disconnected everything and left it for an hour or so.
      I reconnected and launched MYSController - and the damned thing just started working at one. I didn't have to change any settings, include, click anything. It just worked.

      Now, Domoticz works too, of course. All that's left is to start soldering on a proper board instead of the bread board I was using.

      Thanks for trying @AWI 🙂

      posted in Troubleshooting
      George Laynes
      George Laynes
    • RE: Can't add sensor to gateway - problems with two-way communication

      I forgot to add (just in case).

      My radios do have capacitors soldered onto them (but communication works flawlessly with sketches that do not use MySensors libs at all).

      My old version of MySensors was the release version, but I also tried the very latest beta - to no avail.

      Again, this worked just fine, before I started playing around with sketches.

      posted in Troubleshooting
      George Laynes
      George Laynes
    • Can't add sensor to gateway - problems with two-way communication

      Hi,

      I am at the end of my rope here and I have no ideas where to go anymore.

      The story is as follows.

      I had a working MySensors setup with a serial gateway hooked up to Domoticz. It worked like a charm (I had temp, humidity, light, battery meter).

      I wanted to add a motion sensor - and this worked just fine too... until I noticed I made a mistake and my motion sensor got registered under the temperature ID (only on one of the nodes though).

      I tried rolling back the changes, but this effectively broke everything.

      Now, both my sensors won't communicate with the gateway at all.
      I tried erasing the eeprom, reflashing multiple versions of MySensors. Nothing.

      Communication between the gateway and sensors works just fine (using GettingStarted from RF24_master) and a simple rx/tx sketch.

      I see that my sensor keeps pinging the gateway, the gateway notices it but does not respond. At this point, I've no clue anymore what to do.

      The funny thing is - adding a sensor to the gateway has always been painful. I had to first make the communication work using GettingStarted (RF24) and only then, communication between the gateway and sensors would work. Here - it didn't.

      Please help!

      Gateway is an Arduino Nano, sensors work off a Pro Mini 3.3V.

      Logs from gateway each time a sensor pings it:

      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0-beta)
      0;255;3;0;9;write register, reg=0, value=14
      0;255;3;0;9;write register, reg=3, value=3
      0;255;3;0;9;write register, reg=4, value=95
      0;255;3;0;9;write register, reg=5, value=76
      0;255;3;0;9;write register, reg=6, value=35
      0;255;3;0;9;read register, reg=6, value=35
      0;255;3;0;9;write register, reg=16, value=115
      0;255;3;0;9;write register, reg=29, value=6
      0;255;3;0;9;write register, reg=2, value=2
      0;255;3;0;9;write register, reg=1, value=0
      0;255;3;0;9;write register, reg=28, value=3
      0;255;3;0;9;RF24_flushRX
      0;255;3;0;9;RF24_flushTX
      0;255;3;0;9;write register, reg=7, value=112
      0;255;3;0;9;Radio init successful.
      0;255;3;0;14;Gateway startup complete.
      0;255;3;0;9;write register, reg=2, value=3
      0;255;3;0;9;write register, reg=1, value=1
      0;255;3;0;9;start listening
      0;255;3;0;9;write register, reg=0, value=15
      0;255;3;0;9;write register, reg=10, value=0
      0;255;0;0;18;2.0.0-beta
      0;255;3;0;9;Init complete, id=0, parent=0, distance=0
      0;255;3;0;9;Data available on pipe 0
      0;255;3;0;9;read message, len=7
      0;255;3;0;9;write register, reg=7, value=64
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      255;255;3;0;3;
      0;255;3;0;9;Data available on pipe 0
      0;255;3;0;9;read message, len=7
      0;255;3;0;9;write register, reg=7, value=64
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      255;255;3;0;3;
      0;255;3;0;9;Data available on pipe 0
      0;255;3;0;9;read message, len=7
      0;255;3;0;9;write register, reg=7, value=64
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      255;255;3;0;3;
      0;255;3;0;9;Data available on pipe 0
      0;255;3;0;9;read message, len=7
      0;255;3;0;9;write register, reg=7, value=64
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      255;255;3;0;3;
      0;255;3;0;9;Data available on pipe 0
      0;255;3;0;9;read message, len=7
      0;255;3;0;9;write register, reg=7, value=64
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      255;255;3;0;3;
      

      Logs from sensor:

      req id
      start listening
      write register, reg=0, value=15
      stop listening
      write register, reg=0, value=14
      open writing pipe, recipient=0
      write register, reg=10, value=0
      write register, reg=16, value=0
      send message to 0, len=7
      RF24_flushTX
      write register, reg=7, value=48
      start listening
      write register, reg=0, value=15
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      
      posted in Troubleshooting
      George Laynes
      George Laynes