Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
mark_vennM

mark_venn

@mark_venn
About
Posts
31
Topics
6
Shares
0
Groups
0
Followers
0
Following
1

Posts

Recent Best Controversial

  • openHAB binding
    mark_vennM mark_venn

    @hek @bkl
    Just want to say a REAL BIG THANKS for this binding and for the whole mysensors system.

    I have been trying to use openhab 1.8 for my PhD project and I initially setup insteon and had so many headaches I gave up in disgust. I was pointed in the direction of mysensors as a possibility and I thought I had nothing to lose.
    Not only is the binding a success, I have two motion sensors running, one on a pro mini with 2xAA batteries running it as a test and one on a uno, I have persistence running and successfully logging the status of my devices on each and every update! I am using mongodb for the persistence methods as I love nosql, even though I have to teach relational databases at the moment, (trying to turn the Uni onto the light side).

    Anyway, for those interested, here is a log from the db:
    {
    "_id" : ObjectId("574acbe1e4b0cd9ed18ada26"),
    "item" : "DiningRoom",
    "realName" : "DiningRoom",
    "timestamp" : ISODate("2016-05-29T11:00:49.761Z"),
    "value" : "ON"
    }
    {
    "_id" : ObjectId("574acbe3e4b0cd9ed18ada27"),
    "item" : "DiningRoom",
    "realName" : "DiningRoom",
    "timestamp" : ISODate("2016-05-29T11:00:51.136Z"),
    "value" : "OFF"
    }
    {
    "_id" : ObjectId("574acc25e4b0cd9ed18ada2a"),
    "item" : "DiningRoom",
    "realName" : "DiningRoom",
    "timestamp" : ISODate("2016-05-29T11:01:57.823Z"),
    "value" : "ON"
    }

    the .items file looks like this, (so you can see the naming strategy)

    Switch DiningRoom "DiningSensor [%s]" <motion> (GF_Dining) {mysensors="1;1;V_TRIPPED"}
    Switch LivingRoom "LivingSensor [%s]" <motion> (GF_Living) {mysensors="2;1;V_TRIPPED"}

    .All in a brilliant success. Now to play with the rules and add lots of new sensors.
    THANKS AGAIN!!!!!

    OpenHAB

  • openHAB binding
    mark_vennM mark_venn

    Found it! I had the .items entries wrong and if I had read things properly I would have worked it out before :disappointed_relieved:

    2016-05-28 18:22:35.565 [INFO ] [c.internal.ModelRepositoryImpl] - Refreshing model 'test.items'
    2016-05-28 18:22:35.649 [DEBUG] [ySensorsGenericBindingProvider] - New Item "Motion (Type=SwitchItem, State=Uninitialized)" based on configuration "1;1;V_TRIPPED"
    2016-05-28 18:22:46.463 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
    2016-05-28 18:22:46.488 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion = OFF
    2016-05-28 18:22:46.504 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion,OFF) is called!
    2016-05-28 18:22:52.541 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
    2016-05-28 18:22:52.552 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion,ON) is called!
    2016-05-28 18:22:52.562 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion = ON
    2016-05-28 18:23:11.590 [DEBUG] [.b.m.internal.MySensorsBinding] - Gateway Version: 1.5.4
    2016-05-28 18:23:58.676 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
    2016-05-28 18:23:58.688 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion,OFF) is called!
    2016-05-28 18:23:58.698 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion = OFF
    2016-05-28 18:24:05.045 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
    2016-05-28 18:24:05.058 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion,ON) is called!
    2016-05-28 18:24:05.067 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion = ON
    2016-05-28 18:24:08.746 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read and forward: 4-4-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    2016-05-28 18:24:09.134 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: send: 0-0-4-4 s=255,c=3,t=8,pt=1,l=1,sg=0,st=fail:0
    2016-05-28 18:24:11.594 [DEBUG] [.b.m.internal.MySensorsBinding] - Gateway Version: 1.5.4
    2016-05-28 18:25:11.141 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
    2016-05-28 18:25:11.155 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion,OFF) is called!
    2016-05-28 18:25:11.165 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion = OFF

    OpenHAB

  • Bathwater temperature sensor
    mark_vennM mark_venn

    Nice. I am likely to need something like this for my project. Nice idea.

    My Project

  • openHAB binding
    mark_vennM mark_venn

    Hi
    I have setup openhab on my pi 2 and I can see the gateway and a motion sensor with the following output in the openhab log:

    2016-05-28 16:13:05.519 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.8.3).
    2016-05-28 16:13:23.624 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
    2016-05-28 16:13:24.471 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
    2016-05-28 16:13:29.131 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'test.items'
    2016-05-28 16:13:56.064 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
    2016-05-28 16:14:02.165 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /classicui/openhab.app
    2016-05-28 16:14:09.952 [DEBUG] [ySensorsGenericBindingProvider] - New Item "Motion (Type=SwitchItem, State=Uninitialized)" based on configuration "3; 2;V_TRIPPED"
    2016-05-28 16:14:10.139 [DEBUG] [.b.m.internal.MySensorsBinding] - activate
    2016-05-28 16:14:10.456 [DEBUG] [.o.b.m.internal.gateway.Serial] - Serial port '/dev/ttyUSB0' has been found.
    2016-05-28 16:14:10.530 [INFO ] [.service.AbstractActiveService] - MySensors Refresh Service has been started
    2016-05-28 16:14:12.181 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: gateway started, id=0, parent=0, distance=0
    2016-05-28 16:14:12.194 [INFO ] [.b.m.internal.MySensorsBinding] - Gateway Ready
    2016-05-28 16:14:35.120 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
    2016-05-28 16:14:35.136 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "1;1;V_TRIPPED"
    2016-05-28 16:14:49.747 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
    2016-05-28 16:14:49.760 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "1;255;I_REQUEST_SIGNING"
    2016-05-28 16:14:49.771 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=255,c=0,t=18,pt=0,l=5,sg=0:1.5.4
    2016-05-28 16:14:49.836 [INFO ] [.b.m.internal.MySensorsBinding] - New MySensor node found: node-id=1 ( REPEATER )

    • Example item: 1;255;I_BATTERY_LEVEL - Use this to report the battery level 0-100 (%)
    • Example item: 1;255;I_SKETCH_NAME - Sketch name that can be used to identify sensor
    • Example item: 1;255;I_SKETCH_VERSION - Sketch version that can be reported to keep track of the version of sensor
      2016-05-28 16:14:49.851 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
      2016-05-28 16:14:50.016 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: send: 0-0-1-1 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M
      2016-05-28 16:14:51.780 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=255,c=3,t=11,pt=0,l=13,sg=0:Motion Sensor
      2016-05-28 16:14:51.792 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "1;255;I_SKETCH_NAME"
      2016-05-28 16:14:51.806 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
      2016-05-28 16:14:51.821 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "1;255;I_SKETCH_VERSION"
      2016-05-28 16:14:51.832 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=1,c=0,t=1,pt=0,l=0,sg=0:
      2016-05-28 16:14:51.847 [INFO ] [.b.m.internal.MySensorsBinding] - New MySensor sensor found (Motion sensor): node-id=1, sensor-id=1 with type S_MOTION
    • Example item: 1;1;V_TRIPPED - Tripped status of a security sensor. (Tripped/Untripped)
    • Example item: 1;1;V_ARMED - Armed status of a security sensor. (Armed/Bypassed)
      2016-05-28 16:14:51.861 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
      2016-05-28 16:14:51.868 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "1;1;V_TRIPPED"
      2016-05-28 16:15:10.721 [DEBUG] [.b.m.internal.MySensorsBinding] - Gateway Version: 1.5.4
      2016-05-28 16:15:43.284 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 1-1-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
      2016-05-28 16:15:43.298 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "1;1;V_TRIPPED"

    "no item configured fo "1;1;V_TRIPPED" seems to be confusing me. I have entered the motion sensor into the items file as in the example so can you point me in the direction to correct this please?
    I am very impressed so far, easier to get to this stage than it was using insteon!

    OpenHAB

  • MyController - 0.0.3-Alpha2 pre-release - volunteers required to test
    mark_vennM mark_venn

    @jkandasa
    I have had a look at the demo site; what kind of rules can you set up with your project? I am looking for a suitable controller for my project and at the moment I am looking at openhab as the rules system is quite wide ranging.

    MyController.org alpha pre-release mycontroller.org

  • please help me to find a controller for arduino serial gateway (usb)
    mark_vennM mark_venn

    You might find Vera is a good choice for you:
    https://www.mysensors.org/controller/vera

    Controllers

  • question about serial data
    mark_vennM mark_venn

    Thanks! Should have searched a bit more. Sorry

    General Discussion

  • question about serial data
    mark_vennM mark_venn

    Just a quick question; can someone tell me what the serial outputs mean in this?

    0;0;3;0;9;read: 1-1-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1

    s=1 I is sensor number and s:g=0:1 is when my motion sensor has been tripped. But what about the others? I am trying to work out what openHAB needs to read in to tell that something has happened.

    Thanks

    General Discussion

  • [SOLVED] No communication between node and gateway - NRF24
    mark_vennM mark_venn

    Are you using a controller? I had the problem with find parent a few days ago. If you are testing with only the gateway you need to manually give the nodes unique node id. In the sensor sketch, look for gw.begin in the setup function. You need to put the ID in as a parameter. I have

    gw.begin(NULL,1,true);

    to set the sensor value to 1. @mfalkvidd helped me out with this problem today. have a look at

    https://forum.mysensors.org/topic/3885/where-do-i-set-the-sensor-id/5

    for the thread that I asked about node id in.
    Mark

    Troubleshooting radio arduino pro mini nrf24l01+

  • nano serial gateway behaviour
    mark_vennM mark_venn

    Well, it is working with a new nrf with a 10 uf cap soldered on. Can't understand why swapping for a known good one didn't work but puting in a new one did. The annoyances of building your own stuff I suppose. I will use the original one in something else and see if I can persuade it to work.

    Troubleshooting

  • Where do I set the sensor ID?
    mark_vennM mark_venn

    @mfalkvidd
    Thanks! I have now set a value of 1 and lo and behold sensor 1 is now talking to the gateway. I vaguely remeber testing eeprom storing values by using a button that advanced a value by one and then stored it. It must have been this Uno I did it on and I must have hit the button 105 times :-)

    General Discussion

  • Where do I set the sensor ID?
    mark_vennM mark_venn

    @sundberg84
    Thanks. I don't know where the motion sensor is picking up 105 then as the gw.begin() is just that with no parameters at all. :unamused:

    General Discussion

  • Where do I set the sensor ID?
    mark_vennM mark_venn

    I am going to use openHAB as my controller and as for as I can tell I need to manually set sensor IDs for each bit of kit in my network. I am using a serial gateway, well, was but am currently faultfinding it, and I have a motion sensor that seems to have picked up id 105, I am assuming from the sketch. I can't find 105 anywhere in the sketch for the moion sensor so where is this likely to have come from and how do I set the id for other sensors?
    Cheers

    General Discussion

  • nano serial gateway behaviour
    mark_vennM mark_venn

    @mfalkvidd
    I have swapped it amd still no good. The one that I swapped with has been working in the past as part of a motion sensor. Bit annoying, going to set another one up with a new capacitor. I don't have any more 4.7, will try a 10, not because I think that is an issue, just because I have to try something and that is the closest to 4.7 i have at the moment. I have a new bag on the way from HK. Will let you know what happens!

    Troubleshooting

  • nano serial gateway behaviour
    mark_vennM mark_venn

    Hi
    I had a previously working serial gateway that no longer works, fails radio init fail. all the connections are the same, a capacitor is soldered onto the radio across gnd and 3v3 but the odd thing is that the led is flashing until i connect either putty or serial moniot in which case it goes off. Power led stays on ok and I get the annoying

    0;0;3;0;9;radio init fail

    on which ever I am connecting with. As soon as I disconnect the serial connection the led flashes again. I am waiting for a couple of new nanos so I can't swap over to another one. Any ideas? Is this something that always happens but I haven't noticed it?

    Troubleshooting

  • Microwave Radar Module as PIR replacement.
    mark_vennM mark_venn

    There are units that are fitted into light fittings that are being used as fall detectors; a PIR knows someone is in the room but something measuring the height of the person moving around that suddenly notices an increase in the distance can trigger an alarm. An increase in distance can mean that the person is now on the floor and no longer vertical. Something like this could be used maybe?

    Hardware

  • openHAB binding
    mark_vennM mark_venn

    I am going to give this a try with the serial gateway. I am not sure whether to use mqtt or serial; this might help me make up my mind!
    :smile:

    OpenHAB

  • I am a bit confused over wiring ethernet gateway
    mark_vennM mark_venn

    @hek
    Does this include not needing the softspi fix?

    General Discussion

  • I am a bit confused over wiring ethernet gateway
    mark_vennM mark_venn

    @sundberg84
    I am going to hok the whole system up to openHAB or possibly Domoticz once I have more sensors working. I am most likely to use MQTT as the final gateway but wanted to get something working, the ethernet gateway would not work properly. I think MQTT will give me more data space to pass messages around. I am going to tyr the ethernet gw again tonight once I get back from uni

    General Discussion

  • I am a bit confused over wiring ethernet gateway
    mark_vennM mark_venn

    @sundberg84
    I am not attached to a controller at the moment; the traces on the gateway with a motion sensor have worked differently then. I assume the code for the motion sensor has a hard coded value in then?

    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    0;0;3;0;14;Gateway startup complete.
    0;0;3;0;9;read: 105-105-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
    105;255;3;0;15;0
    0;0;3;0;9;read: 105-105-0 s=255,c=0,t=17,pt=0,l=5,sg=0:1.5.4
    105;255;0;0;17;1.5.4
    0;0;3;0;9;read: 105-105-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
    105;255;3;0;6;0
    0;0;3;0;9;read: 105-105-0 s=255,c=3,t=11,pt=0,l=13,sg=0:Motion Sensor
    105;255;3;0;11;Motion Sensor

    ...
    ...
    ...
    0;0;3;0;9;read: 105-105-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
    105;1;1;0;16;1
    0;0;3;0;9;read: 105-105-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
    105;1;1;0;16;0
    0;0;3;0;9;read: 105-105-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
    105;1;1;0;16;1
    0;0;3;0;9;read: 105-105-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
    105;1;1;0;16;0

    The gateway I am using is the serial gateway running on a nano

    General Discussion
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular