Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Matt Pitts
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by Matt Pitts

    • RE: How To: Make a Simple/Cheap Scene Controller (with video)

      @rechin304 said:

      @Matt-Pitts on 3 is short press and in code is scene on and on long press is 7 scene off

      MyMessage scene(KEYPAD_CHILD_ID, V_SCENE_ON); //scene ON
      MyMessage scene2(KEYPAD_CHILD_ID, V_SCENE_OFF); //scene OFF
      
      
              send(scene2.set(keyInt));
            } else {
            send(scene.set(keyInt));```
      

      Hi Not sure if that helps me, I'm struggling to understand how this actually works? as I said the only button doing anything is 3, do I need to modify the sketch to get the other buttons working?

      posted in My Project
      Matt Pitts
      Matt Pitts
    • RE: How To: Make a Simple/Cheap Scene Controller (with video)

      Hi Guys,

      I'm so glad that have updated the sketch which i have now been able to compile and get running 🙂

      But this is the message I get in the serial monitor and I only get these messages when I press button 3?? I am using a single row of four buttons as in the original sketch.

      Am I missing something here? I was assuming the message with either be a 1 for a short press and 0 for a long press? I would be really grateful if someone who knows more about this than me is able to help me figure out what's going on?

      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:3
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:7
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:7
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:3
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:7
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:7
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:7
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:3
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:3
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:3
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:7
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:7
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:7
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:7
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:3
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:3
      TSP:MSG:SEND 11-11-0-0 s=95,c=1,t=19,pt=2,l=2,sg=0,ft=0,st=ok:3
      
      
      posted in My Project
      Matt Pitts
      Matt Pitts
    • RE: How To: Make a Simple/Cheap Scene Controller (with video)

      Hi Guys,

      I've been trying to compile this sketch without any success. I keep getting the following error when compiling

      #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
      

      Can anyone help? thanks

      posted in My Project
      Matt Pitts
      Matt Pitts
    • RE: LM393 Light Sensor Readings

      @mfalkvidd so what your saying is it's working correctly?

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • LM393 Light Sensor Readings

      Hi There,

      I have just setup the mysensors LM393 Light Sensor in the hope I can use the readings it generates to control when my house light switch on and off.

      I'm a little unclear about the readings that the sensor is currently generating. I have setup exactly as described in the mysensors Light Sensor example.

      Initally I only got these reading in the serial monitor, then I shone a torch into the sensor and got the higher readings, It is my understanding that the sensor should read high in the dark and low in the light? is that correct? so I don't really understand why it read higher when I shone the torch on it, can someone explain, or is something wrong with my sensor?

      0
      0
      0
      96
      TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:96
      96
      96
      96
      96
      43
      TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:43
      96
      TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:96
      0
      TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:0
      
      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: IR Sensor How to Use Manual codes

      Thanks @blacey I'll give that a go tomorow and report back, really appreciate you pointing me in the right direction

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: IR Sensor How to Use Manual codes

      OK I used the sketch directly from Github and got these values, but not sure what to do with them now? There seem to be little in the way of instructions for how to set this up?

      power on - UNKONWN C75375AC
      power off - UNKONWN 52E87F1D
      source up - UNKONWN 5E467F07
      source down - UNKONWN 5299205C
      vol up - UNKONWN 8086D9D7
      vol up - UNKONWN 8086D9D7

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: IR Sensor How to Use Manual codes

      Hi I've just tried recording one button press IR value from my remote and this if what I get in the serial monitor, which does make much sense to me, can someone help out here??

      Decoded Unknown: Value:0 (0 bits)
      Raw samples(100): Gap:34750
      Head: m450 s3500
      0:m250 s3450 1:m250 s3450 2:m250 s3450 3:m200 s3500
      4:m200 s3500 5:m200 s3500 6:m150 s3500 7:m200 s3500
      8:m200 s3500 9:m200 s3500 10:m200 s3500 11:m200 s3500
      12:m200 s3450 13:m250 s3450 14:m250 s3450 15:m200 s3550

      16:m200 s3500 17:m200 s3500 18:m200 s3500 19:m250 s3500
      20:m200 s3500 21:m250 s3450 22:m250 s3500 23:m200 s3500
      24:m200 s3500 25:m250 s3500 26:m200 s3500 27:m250 s3450
      28:m250 s3500 29:m250 s3450 30:m250 s3450 31:m250 s3500

      32:m250 s3450 33:m250 s3450 34:m250 s3500 35:m200 s3500
      36:m250 s3450 37:m250 s3500 38:m250 s3450 39:m250 s3500
      40:m250 s3450 41:m250 s3500 42:m250 s3450 43:m250 s3500
      44:m200 s3500 45:m250 s3500 46:m250 s3450 47:m250 s3500

      48:m250
      Extent=182350
      Mark min:150 max:250
      Space min:3450 max:3550

      TSP:MSG:SEND 4-4-0-0 s=3,c=1,t=24,pt=0,l=8,sg=0,ft=0,st=ok:00000000
      Decoded Unknown: Value:0 (0 bits)
      Raw samples(2): Gap:5750
      Head: m300 s3500

      Extent=3800
      Mark min:32767 max:0
      Space min:32767 max:0

      TSP:MSG:SEND 4-4-0-0 s=3,c=1,t=24,pt=0,l=8,sg=0,ft=0,st=ok:00000000

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • IR Sensor How to Use Manual codes

      Hi There,

      I'm planning to use the IR sketch to try and control my NAD Amp. I have found the the IR codes for the Amp on their website http://nadelectronics.com/download-agree/131121131849-D3020_remote_codes.pdf|D 3020 Remote Codes

      But I'm unclear how I translate this into the sketch, as they look somewhat different to the examples that are already in the IR Sensor sketch.

      If anyone is able to point me in the right direction that would be much appreciated, Thanks

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: W5100 MQTT gateway fails to connect to broker

      It was a silly mistake, I have forgotten to uncomment the username and password, its working now 🙂

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • W5100 MQTT gateway fails to connect to broker

      I have always found everyone on this forum generally really helpful, so I'm hoping some will be able to help me solve my problem. I have recently been testing Home Assistant and I'm now trying to get mysenors up and running with it.

      I already have the latest verison of mosquitto up and running on my RPI without any problems and I've been able to publish and subcribe to topics, so I know its working OK.

      I have just compiled and uploaded the default W5100 MQTT gateway sketch and altered the various settings and when I restart the arduino I get the following in the serial monitor

      IP: 192.ting MQTT connection...
      IP: 192.168.0.87
      0;255;3;0;9;Attempting MQTT connection...
      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:RADIO:OK
      0;255;3;0;9;TSM:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.0.87
      0;255;3;0;9;No registration required
      0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
      IP: 192.168.0.87
      0;255;3;0;9;Attempting MQTT connection...
      IP: 192.168.0.87
      

      So the gateway is never able to connect to the MQTT broker. I have double checked everything and restarted, recomplied and still no luck. Am I missing something obvious, Any help would be very much appreciated

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: Relay Help - Nothing Happens

      @martinhjelmare Thanks for your input, I have finally got the relay working based on your example 🙂

      Thanks for your explanation of the topic structure? I'm still struggling to understand the mqtt topic structre is there somewhere I can read a good explanation?

      I can see how you work out the prefix node_id and child_id but how do I know or work out message type ack and message_subtype?

      I just want to understand this better for future reference.

      Switch mqttsw1               "Test Switch"   (Bedroom)    {mqtt=">[matt_broker:mygateway1-in/40/1/1/0/2:command:ON:1],>[matt_broker:mygateway1-in/40/1/1/0/2:command:OFF:0]"}
      
      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: Relay connection with MQTT?

      @George-Whitehouse I've just seen your post about getting the correct message from openhab, I'm also having the same problem getting the relay to switch from within openhab.

      Could you share the openhab item you actually got working? Thanks very much

      posted in OpenHAB
      Matt Pitts
      Matt Pitts
    • RE: Relay Help - Nothing Happens

      Hi @Boots33 This is starting to drive my a little crazy, I've managed to get lots of other mysenors working without this much trouble!! I feel like a bit of a failure at this point.

      Yes I tried @hek simple sketch which makes the relay switch on and off contiunously, so it must be wired up correctly.

      I'm not sure what the debug lines should look like?? The following appears in the serial monitor as soon as I switch on the nano

      send: 40-40-0-0 s=255,c=3,t=15,pt=2,l=2,sg=0,st=ok:0
      send: 40-40-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=fail:1.5.4
      send: 40-40-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
      repeater started, id=40, parent=0, distance=1
      send: 40-40-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay
      send: 40-40-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
      send: 40-40-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
      

      I was expecting the last send to have a something after the ok: or is that normal?

      I'm not clear as to which topic I need to send the commands to, which I think is part of the problem?

      Here's the code I have been using in my openhab items file which defiantly sends the commands to the broker as I see them appear in MQTT fx,

      Switch Testlight               "Test switch"   (Bedroom)    {mqtt=">[matt_broker:mygateway1-in/40/1/0/0/3:command:ON:1],>[matt_broker:mygateway1-in/40/1/0/0/3:command:OFF:0]"} 
      

      but as to which topic they need to go to I'm still stuck. Although I have tried all the ones that appear in the broker and none of them will switch the relay. Am I missing something really obvious here!!

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: Relay Help - Nothing Happens

      @hek sorry I don't really understand what you mean? I'm using openhab and my messages are being send to the topic from openhab via my mosquito broker.

      I have mqtt fx subscribed to all topics so I can see incoming and outgoing messages.

      The messages in my previous post came from the relay node when I powered it on.

      The question is which of those topics should I be sending my on off commands to? I also want to understand the messages.

      The 1st message from the node is just stating 'node' which I assume just confirms that node is there?

      The second message just states '1.0' I assume this is the sketch version?

      The third message is blank but I assume this should show the state of the relay ie either 0 or 1. Is that correct?

      So based in that logic I have been sending my commands to the last tooic, but I also tried all the others just in case. But none will switch the relay.

      Is this correct

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: Relay Help - Nothing Happens

      I'm still struggling with my relay just thought i would share the serial monitor output

      YoU will see the last 4 messages are me sending on off commands

      send: 40-40-0-0 s=255,c=3,t=15,pt=2,l=2,sg=0,st=ok:0
      send: 40-40-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=fail:1.5.4
      send: 40-40-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
      repeater started, id=40, parent=0, distance=1
      send: 40-40-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay
      send: 40-40-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
      send: 40-40-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
      read: 0-0-40 s=1,c=0,t=3,pt=0,l=1,sg=0:1
      read: 0-0-40 s=1,c=0,t=3,pt=0,l=1,sg=0:0
      read: 0-0-40 s=1,c=0,t=3,pt=0,l=1,sg=0:1
      read: 0-0-40 s=1,c=0,t=3,pt=0,l=1,sg=0:0
      

      Also when I try the simple sketch from @hek the relay works, so I'm stuck

      Here are the messa0_1456999660383_Screen Shot 2016-03-03 at 10.06.30.png gaes I get when I first power up the nano

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: Relay Help - Nothing Happens

      Thanks @Boots33 and @hek I will give all those things a try in the morning.

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: Relay Help - Nothing Happens

      @Boots33 thanks, I'm using the sketch unaltered. When I check the serial monitor I can see the messages coming in 0 and 1 so I know the connection to the broker and therefore the radio must be working right? otherwise the messages wouldn't show up on the serial monitor right? also I see st:OK in the monitor which means messages are being delivered, is that right?

      Weirdly though I thought that once I connected 5v from the arduino to VCC and GND to GND the relay would power up, but this doesn't happen?? The relay only powers up when I connect the pin 3 to the relay. In fact it I connect the 5V from the arduino to the +IN that also powers the relay. Sorry I'm relatively new to all this and only have a very basic understanding so apologies for so many questions.

      I'm wondering if I need to alter the sketch in some way?? My current pin connections are show below in the photo. If I remove the jumper the relay doesn't work at all??

      0_1456917851573_relay-pins.jpg

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: Relay Help - Nothing Happens

      @Boots33 Thanks for your input, its much appreciated. I have connected 5v from the nano to VCC GND to GND pin on the nano and my arduino digital pin 3 to +IN

      When I do the above the LED on the relay lights up to I know its getting power and I hear it click when I initially power the whole thing up. I have also tested plugging into the power outlet and the light is on, so I know that power is getting through.

      But when I send the on off command from within my openhab setup I see the messages being published on my broker but they do not switch the relay on or off

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: Relay Help - Nothing Happens

      Here are the pins on my relay, because there are multiple pins and the jumper i'm rather confused

      @Matt-Pitts 0_1456905894062_relay.jpg

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: Relay Help - Nothing Happens

      @Nuubi thanks I got the replay from eBay. The only markings are vcc gnd and -in+. However there are 6 pins. Which makes it a little more confused.

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • Relay Help - Nothing Happens

      Hi I have just put together my first relay to test, based on the relay mysensors sketch.

      I have connected up the relay as shown in the photo below, but I'm a little unclear about the connections to the arduino. I have it connected to a nano for testing, GND and 5V seem obvious but there are three other pins on the relay, plus a jumper?? so I don't know which to connect the digital pin to. I have also tried all the options, but there relay does not seem to work, although I can see messages coming into my broker just fine. I assumed I would hear the relay switch on and off even if it's not connected into the mains outlet, is that correct?

      Regardless of this even when I plug in wall socket for the bulb in it still does not work so I'm at a loss as to what is wrong 😞

      Maybe I'm missing something really obvious here so an support would be much appreciated.

      0_1456872137519_relay.jpg

      0_1456872257508_wiring.jpg

      0_1456872324055_plug.jpg

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • RE: Motion Sensor triggering on its own

      thanks @hek the sensor is currently stuck half way up a wall, where would you recommend installing it? wall or ceiling? I was also a little unclear about the jumper settings which is best?

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • Motion Sensor triggering on its own

      Hi, I build a mysensors motion sensor with a nano a couple of weeks ago, and initially it appeared to be working very well and has been switching on my lights when motion is detected for the last few weeks perfectly happily

      However I have noticed over the last few days it has been triggering on its own without any motion.

      I was watching the mqtt messages earlier today and it was appearing to be triggered with motion every few minutes, even though nothing was there. I have not tried swapping the sensor for another one in case its a problem with the sensor, but I was wondering if there is any other possible reason for these false triggers??

      I do have the sensor powered directly from the nano via the 5v pin, is that likely to cause any problems?

      I've also just rememebered that there is a radiator in the hall way where the sensor is placed, so I'm wondering if when the heating comes on it detects that heat and triggers the sensor?

      posted in Troubleshooting
      Matt Pitts
      Matt Pitts
    • ESP8266 node mcu sensor sending messages directly to broker

      Hi there,

      I have several ESP8266 node's which i have successfully used, but I'm wondering if it's possible to set them up to communicate directly with my mqtt broker over wifi rather than adding the radio and going via a gateway??

      I have found many sketches with will allow connecting to online services, but I haven't been able to find one which does the above.

      I realise that it would mean combining various elements of sketches together, but I'm sure that someone has already done this so I'm hoping they would be able to share their sketch with me.

      I would like to build stand alone temp and motion sensor which reports directly to the mqtt broker over wifi. Any help would be much appreciated.

      posted in Hardware
      Matt Pitts
      Matt Pitts
    • Suitable Relay for UK 240v Use

      Hi There,

      I'm trying to figure which relay I should buy for use in the UK to switch a lighting circuit on and off. I'm finding it all a little confusing so I would appreciate some recommendations from anymore here who has successfully setup a suitable relay in the UK.

      Looking in the mysensor store [http://www.mysensors.org/store/#relays](link url) there are quite a few options, but I'm still unclear as to which relay would be best for connecting into our 240v UK power?

      I'm using 9 watt LED bulbs in my lights, so they are very low power, but I'm not clear as to which relay's are still suitable. Obviously I want to make sure I purhcase the correct ones and don't cause any danger.

      posted in Hardware
      Matt Pitts
      Matt Pitts
    • RE: My Slim 2AA Battery Node

      Hi I'm just about to start ording parts of the slim node. Looking through the thread I'm thinking based on my limited knowledge of arduino, I might be better off buying chips which already have a bootloader installed?

      Can people advise, how difficult is it to upload the boot loader? Thanks

      posted in My Project
      Matt Pitts
      Matt Pitts
    • RE: Motion Sensor Setup in OpenHAB

      Thanks @mbj for your reply, I managed to get it working with this very basic rule and item

      Item entry:

      Number hall_motion_raw          "Hall motion is [%d]" {mqtt="<[matt_broker:mygateway1-out/3/1/1/0/16:state:default]"}
      

      Rule:

         rule "hallLightOn"
          when   
              Item hall_motion_raw changed 
          then   
          if((hall_motion_raw.state as DecimalType) ==1) {
              sendCommand(Toggle_2,ON)    
              } 
          end
      
         rule "hallLightOff"
          when   
                  Time cron "0 * * * * ?"
          then   
                 if((hall_motion_raw.state as DecimalType) ==0) {
              sendCommand(Toggle_2,OFF)  
                  }
          end
      

      If anyone has any better ways of writing a rule or suggestions for how to improve this one I would be grateful.

      Thanks Matt

      posted in OpenHAB
      Matt Pitts
      Matt Pitts
    • Motion Sensor Setup in OpenHAB

      Hi Heys,

      I've just completed my third mysensor which is the motion sensor, which is working perfectly and sending messages thought to my mosquito mqtt server.

      I've been trying to figure out how to set it up in openhab, so far I'm having no luck with the following

      I have created the following items

      Number hall_motion_raw          "Hall motion is [%d]" {mqtt="<[matt_broker:mygateway1-out/3/1/1/0/16:state:default]"}
      Number hall_motion "Hall Motion [MAP(motion.map):%s]"{mqtt="<[matt_broker:mygateway1-out/3/1/1/0/16:state:default]"} 
      

      I have also set these up in my sitemap just to double check they are working, and I can see their states change from on to off, which is great.

      I have tried to alter a rule from here to switch on my hall light https://github.com/openhab/openhab/wiki/Samples-Rules#how-to-turn-on-light-when-motion-detected-and-is-dark but i obvouisly have something wrong, any pointers would be much appreciated.

      thanks

      var Number counter = 0
      var Number lastCheck = 0
      
          rule "hallLightOn"
          when   
              counter = counter + 1
              Item hall_motion changed from OFF to ON 
          then   
              sendCommand(Toggle_1,ON)    
          end
      
          rule "hallLightOff"
          when   
                  Time cron "0 * * * * ?"
          then   
                  if(lastCheck == counter) {
                          counter = 0
                          lastCheck = -1;
                          sendCommand(Toggle_1,OFF)
                          sendCommand(hall_motion,OFF)
                  } else {
                          lastCheck = counter
                  }
          end
      
      posted in OpenHAB
      Matt Pitts
      Matt Pitts
    • RE: My Slim 2AA Battery Node

      Thanks @GertSanders for showing me the BOM I hadn't realised it was there, but do I need everything listed there to get it working properly?

      posted in My Project
      Matt Pitts
      Matt Pitts
    • RE: My Slim 2AA Battery Node

      Hi

      I've just ordered a set of the PCB boards and looking forward to putting these together mainly into reed switches and motion sensors

      I have scanned the whole thread and there doesn't seem to be a comprehensive list of exactly which components are required anywhere here, well not all in one place at least.

      Can I just confirm exactly what is required to build a senor node.

      1 x PDB board
      1 x ATMega328p 28pin PDIP
      1 x NRF24L01+ radio module
      1 x 4.7uF Decoupling-Capacitor for radio (I assume these are still required??)
      1 x right angle pin header for connecting to program and connect batteries
      1 x Length of cable ducting for housing
      2 x AA batteries
      Cables for connecting batteries
      Battery connector
      1 x senor of choice
      I notice there seem to be an assortment of capacitors/regulators in most of the photos on this thread, but no definitive list of which are needed. (I am very new to all this so please excuse my ignorance)

      Extras needed
      1 x FTDI USB to TTL Serial Adapter

      Have I missed anything of my list? Also I would be really grateful for links to some of the above components.

      Sorry these are very basic noob questions, but I feel it would really helpful for people such as myself to have everything clearly listed in one place, as the main mysensors build pages do. So people know exactly what is needed.

      posted in My Project
      Matt Pitts
      Matt Pitts
    • RE: Switching from v1.5 MQTT gateway to ESP8266 MQTT Client gateway

      @mbj now worries, thanks for helping me out, I'm running openHAB as a serivce my my rpi2 along with mosquitto.

      I have noticed these occasional messages in the event.log:

      2016-02-13 20:36:25.823 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - store(lounge_Temp), state = 23.0

      I also checked by subscribing with mosquitto _sub client and get the following.

      mosquitto_sub -d -t mygateway1-out/3/0/1/0/1
      Client mosqsub/14104-raspberry sending CONNECT
      Client mosqsub/14104-raspberry received CONNACK
      Client mosqsub/14104-raspberry sending SUBSCRIBE (Mid: 1, Topic: mygateway1-out/3/0/1/0/1, QoS: 0)
      Client mosqsub/14104-raspberry received SUBACK
      Subscribed (mid: 1): 0
      Client mosqsub/14104-raspberry sending PINGREQ
      Client mosqsub/14104-raspberry received PINGRESP
      Client mosqsub/14104-raspberry sending PINGREQ
      Client mosqsub/14104-raspberry received PINGRESP
      Client mosqsub/14104-raspberry sending PINGREQ
      Client mosqsub/14104-raspberry received PINGRESP
      Client mosqsub/14104-raspberry received PUBLISH (d0, q0, r0, m0, 'mygateway1-out/3/0/1/0/1', ... (4 bytes))
      37.0
      Client mosqsub/14104-raspberry sending PINGREQ
      Client mosqsub/14104-raspberry received PINGRESP
      

      I don't really know what this should look like, but from my very basic understanding it looks like messages are at least being published. Otherwise OpenHab wouldn't be able to do this 0_1455404904338_Screen Shot 2016-02-13 at 23.07.46.png

      posted in OpenHAB
      Matt Pitts
      Matt Pitts
    • RE: Switching from v1.5 MQTT gateway to ESP8266 MQTT Client gateway

      @mbj Thanks again, I had figured out the item binding which are working fine, although I don't see any messages in the openhab log when they get a status update?? although they are obviously updating

      So I setup the openhab.cfg with the following, I think that's correct, but I still don't see any MQTT messages when running tail -f /var/log/openhab/openhab.log

      I was a little confused by your setting because your topic was the same as your clientid, I assume that was just coincidence?

      I have used the topic ID's for the eventbus broker from the mysenors sketch in the bindings in the openhab.cfg which are below.

      ################################# MQTT Transport ######################################
      #
      # Define your MQTT broker connections here for use in the MQTT Binding or MQTT
      # Persistence bundles. Replace <broker> with a id you choose.
      #
      
      # URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
      mqtt:matt_broker.url=tcp://localhost:1883
      
      # Optional. Client id (max 23 chars) to use when connecting to the broker.
      # If not provided a default one is generated.
      mqtt:matt_broker.clientId=openhabmqtt
      
      # Optional. User id to authenticate with the broker.
      mqtt:matt_broker.user=mattpitts74
      
      # Optional. Password to authenticate with the broker.
      mqtt:matt_broker.pwd=landy90
      
      # Optional. Set the quality of service level for sending messages to this broker. 
      # Possible values are 0 (Deliver at most once),1 (Deliver at least once) or 2 
      # (Deliver exactly once). Defaults to 0.
      #mqtt:<broker>.qos=<qos>
      
      # Optional. True or false. Defines if the broker should retain the messages sent to
      # it. Defaults to false.
      #mqtt:<broker>.retain=<retain>
      
      # Optional. True or false. Defines if messages are published asynchronously or
      # synchronously. Defaults to true.
      #mqtt:<broker>.async=<async>
      
      # Optional. Defines the last will and testament that is sent when this client goes offline
      # Format: topic:message:qos:retained <br/>
      #mqtt:<broker>.lwt=<last will definition>
      
      
      
      #######################################################################################
      #####                        Binding configurations                               #####
      #######################################################################################
      mqtt-eventbus:broker=matt_broker
      mqtt-eventbus:stateSubscribeTopic=mygateway1-out/stateUpdates/${item}/state
      mqtt-eventbus:commandSubscribeTopic=mygateway1-in/commandUpdates/${item}/command
      

      Should I be seeing the mqtt messages in the log as they come in?? as currently they don't seem to be showing up???

      posted in OpenHAB
      Matt Pitts
      Matt Pitts
    • RE: Switching from v1.5 MQTT gateway to ESP8266 MQTT Client gateway

      Thanks, that's really helpful, sorry for my ignorance but where do you setup the client ID? Am i right in assuming the client ID is the one from the mqtt client sketch??

      posted in OpenHAB
      Matt Pitts
      Matt Pitts
    • RE: Switching from v1.5 MQTT gateway to ESP8266 MQTT Client gateway

      @mbj Great to see you have this working, I have also been trying to get the W5100 MQTT Client up and running with OpenHAB. I think I'm also there.

      Would you mind posting your openhab.cfg binding configs?? as I'm struggling with this too.

      Thanks
      Matt

      posted in OpenHAB
      Matt Pitts
      Matt Pitts
    • GatewayW5100MQTTClient - Setup Best Practice

      Hi There,

      I have been getting up and running with OpenHAB and mysensors over last few months and I just wanted to check with more experienced people my setup, as I have a few questions about connecting to openHAB. I've already spent a quite a few hours trawling through other posts on the forum and not found the answers to my questions.

      My setup is as follows:
      I have OpenHAB running nicely on a raspberrypi2
      I have two mysenors measureing temp and humidity working nicely
      I have Mosquitto up and running on the pi2 which is getting messages from my sensor nodes quite nicely too
      I have setup the mqtt binding with OpenHAB and I have been able to get my temp and humidity data into OpenHAB, which is great.

      My questions relate to topics and subscribing in OpenHAB? When I uploaded the GatewayW5100MQTTClient sketch I left everything as default but I see that it's possible to change publish and subscribe prefixes,

      1. What prefixes do people recommend to use??
      2. If I have added MQTT items in my items file Do I also still need to setup my binding configuration in the openhah.cfg file??

      Having read carefully through the MQTT binding wiki, I'm still a little unclear about these??

      #######################################################################################
      #####                        Binding configurations                               #####
      #######################################################################################
      mqtt-eventbus:broker=tcp://localhost:1883
      mqtt-eventbus:stateSubscribeTopic=/mygateway1-out/${item}/state
      
      

      I'm not even sure if these bindings are correct??

      When I loaded up the humidity sketch I defined the node ID as 3 and I get the following as my default topic mygateway1-out/3/0/1/0/1 for that node

      This isn't that meaningful and I was wondering how I make them more meaningful???

      Any guidance on the best practice for all of these setting would be very much appreciated.

      posted in OpenHAB
      Matt Pitts
      Matt Pitts
    • RE: Simple battery options for mysensors

      Thanks guys, I have just placed a order for some of these.

      posted in Hardware
      Matt Pitts
      Matt Pitts
    • Simple battery options for mysensors

      Hi, I've just started putting together my sensor network based on all the very helpful info here. I'm planning to follow the my sensor guides as closely as possible, unless people have other suggestions.

      I'm struggling to find a simple guide to battery powering senors. I'm sure this subject has been done many times before.

      I would like to put sensors in the garden and in various locations around the house and batteries are an obvious solution. However I'm unclear about which is the best and longest lasting battery option for temperature sensor, door and motion sensors.

      I was planning to base them on either a ardino nano or the newer wifi modules, however I'm assuming the wifi will use far more power that the NRF24L01+ 2.4GHz Wireless Transceiver based sensors.

      I'm a complete beginner at this, so I'm looking for simple step by step guides.

      I would really appreciate some help and best practice recommendations. I obviously would like to build something self contained and as small as possible with the longest battery life. I'm guessing this is a fairly normal requirement. Any help would be very much appreciated from more experienced people here.

      posted in Hardware
      Matt Pitts
      Matt Pitts