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
D

Dean

@Dean
About
Posts
67
Topics
6
Shares
0
Groups
0
Followers
0
Following
1

Posts

Recent Best Controversial

  • disappointed so far in VeraLite... have I chosen poorly?
    D Dean

    I don't have any experience with iPhone, but I can confirm that the Vera app is horribly slow. When my Vera 3 was on UI5, that app was heaps quicker. I've recently took the plunge and upgraded to UI7, but the app for that is just too slow to be useful I reckon. I have an android phone and use Autovera which is instantaneous. I also have Imperihome running on an android tablet and it too is quick.

    My experience too is that it has made very little difference between communicating with a zwave switch or a Mysensors switch with regards to speed.

    Vera

  • Need a little help to alter my sketch
    D Dean

    @rvendrame thanks for that mate! I will give that a go.

    So that I am clear on the understanding, I have it so that it is waiting for a change, and it needs to equal zero. So by removing the zero bit, it should just be waiting for a change. I suppose the reason for it to be waiting for both is to reduce the chance of it missing a change in value, which I could see happening, but it may not be a big deal, so I'll change the code and try it.

    Thanks again for your help :-)

    Troubleshooting

  • Need a little help to alter my sketch
    D Dean

    Hey everyone,

    I have a few on the Mini Rboards working very well for control of a few light switches, using Vera 3 as my controller. What is driving me and the family a little crazy is how the manual light switches have to work so that they operate the Mini Rboard.

    Here is my sketch:

    // Example sketch för a "light switch" where you can control light or something 
    // else from both vera and a local physical button (connected between digital
    // pin 14 and GND).
    // This node also works as a repeader for other nodes
    
    #include <MySensor.h>
    #include <SPI.h>
    #include <Bounce2.h>
    
    #define RELAY_PIN  4  // Arduino Digital I/O pin number for relay 
    #define BUTTON_PIN  14  // Arduino Digital I/O pin number for button -A0 which is D14
    #define CHILD_ID 1   // Id of the sensor child
    #define RELAY_ON 1
    #define RELAY_OFF 0
    
    Bounce debouncer = Bounce(); 
    int oldValue=0;
    bool state;
    MySensor gw;
    MyMessage msg(CHILD_ID,V_LIGHT);
    
    void setup()  
    {  
      gw.begin(incomingMessage, AUTO, true);
    
      // Send the sketch version information to the gateway and Controller
      gw.sendSketchInfo("Relay & Button", "1.0");
    
     // Setup the button
      pinMode(BUTTON_PIN,INPUT);
      // Activate internal pull-up
      digitalWrite(BUTTON_PIN,HIGH);
      
      // After setting up the button, setup debouncer
      debouncer.attach(BUTTON_PIN);
      debouncer.interval(5);
    
      // Register all sensors to gw (they will be created as child devices)
      gw.present(CHILD_ID, S_LIGHT);
    
      // Make sure relays are off when starting up
      digitalWrite(RELAY_PIN, RELAY_OFF);
      // Then set relay pins in output mode
      pinMode(RELAY_PIN, OUTPUT);   
          
      // Set relay to last known state (using eeprom storage) 
      state = gw.loadState(CHILD_ID);
      digitalWrite(RELAY_PIN, state?RELAY_ON:RELAY_OFF);
    }
    
    
    /*
    *  Example on how to asynchronously check for new messages from gw
    */
    void loop() 
    {
      gw.process();
      debouncer.update();
      // Get the update value
      int value = debouncer.read();
      if (value != oldValue && value==0) {
          gw.send(msg.set(state?false:true), true); // Send new state and request ack back
      }
      oldValue = value;
    } 
     
    void incomingMessage(const MyMessage &message) {
      // We only expect one type of message from controller. But we better check anyway.
      if (message.isAck()) {
         Serial.println("This is an ack from gateway");
      }
    
      if (message.type == V_LIGHT) {
         // Change relay state
         state = message.getBool();
         digitalWrite(RELAY_PIN, state?RELAY_ON:RELAY_OFF);
         // Store state in eeprom
         gw.saveState(CHILD_ID, state);
        
         // Write some debug info
         Serial.print("Incoming change for sensor:");
         Serial.print(message.sensor);
         Serial.print(", New status: ");
         Serial.println(message.getBool());
       } 
    }
    
    

    So to use mu current light switches, I have to turn them on and then off, for the light to operate. If I only turn the switch on, the light will operate, but to operate it again I have to turn the switch off and then on again.

    I have looked into a momentary switch, but to get the ones to fit are quite expensive...

    Is there a way to alter the sketch to make it work better? IE can I have the sketch open the relay when the binary switch is connected, and then close the relay when it is disconnected?

    thanks for your help :-)

    Troubleshooting

  • Sensebender Micro
    D Dean

    Thankyou @tbowmo

    Announcements

  • Relay Outlet + Button + OpenHab + Tasker + Android Wear = Freaking Awesome!
    D Dean

    @kunall said:

    @mikeones I apologize to get back to you so late. You might already have figured out a way but I wanted to let you know that after many days of testing my relay actuator with OpenHab, I'm very happy to tell you that it's working flawless. No issues with the stuffing inside the gand box whatsoever. I have not seen any other option to power the arduino thru 110V - 240V. Using a cellphone charger seems to be common.

    Please let me know if you have any other solution, I would certainly give it a try.

    Thanks!

    Edit : gang box

    Mate, I like what you have done!

    I have a similar set up as you, with the only big difference being that I use Vera 3 and you use Openhab. I also use Autovoice and have that going all the time on a couple spare phones and tablets, and they are always listening. I have named my automation set up, so when I say its name and then a command, it goes and does it. I was using Ok Google, but I wanted to feel more futuristic lol so instead of asking google to do something for me, the 'person' in my home automation does it lol

    Anyways, I actually have a question about your specific example here... I have the exact same relay, but I was never able to get it to work. I see that for this example you were only using one of the relays, which I admit I never tried, but can you share as to whether you have ever got both relays to work? I would love to know, because the stupid thing almost sent me crazy! I have two of them and could never get either of them to work.

    My Project tasker nano autovoice relay openhab

  • Sensebender Micro
    D Dean

    Hope this isn't too silly a question.... The temp/humidity sensing, that works 'out of the box' without requiring me actually connecting these sensors, right?

    And another question, would it be possible to turn the temp/hum function off and just have a motion sensor connected which would never do anything unless it sensed movement and then send a message to the gateway?

    I've been flat out at work for a couple months so I've been away from this for a while... :-)

    Announcements

  • Bluetooth Proximity Sensor
    D Dean

    I was thinking about going this route, but until last weekend I was using Tasker and having it tell Vera that I am here when my phone connects to my Wifi. I bought a new phone and I can't get it to stay connected when it hasn't been used in a while, so I have to rethink...

    While a Mysensors option could be good, what I am going to do is use my many Android tablets that I have throughout my home and have them always searching my my mobile. With them all throughout my home, I won't have to worry about bluetooth range.

    Sorry it isn't a Mysensors option, but I thought I would share what I am going to do :-)

    Development bluetooth presence

  • only 1 device found while including sensor
    D Dean

    What I always do is I keep the sensor connected to my macbook with the serial monitor running. I start the Gateway on the Vera dashboard and I reset the sensor. I watch the serial monitor to see what is "ok" and at the same time watch what the Gateway found in the way of devices.when it goes through the devices in the serial monitor and not all the devices have been found by the Gateway, I then reset the sensor again.

    I keep doing this until all the executed devices are found. This has been working for me :-)

    Troubleshooting

  • all the gear, no idea
    D Dean

    I concur with the above... I could never get a serial gateway working on my Vera 3 so I built the Ethernet version and it's been going great.

    Maybe it's just me, but help seemed to be more available when I first started here, but that's not to say you won't learn stuff... like I said, it could just be me :-)

    What board are you using to make your relay and your gateway? If I remember right, they could only get one type of board to work as a serial gateway...

    And Arduino is for you :-) If I can get these little boards to work, then anyone can :-)

    General Discussion vera gateway newbie help

  • Humidity/Temp Sensor Issues
    D Dean

    Mine was doing the same thing when I had it plugged into my laptop while viewing the serial monitor. Once I connected it to my Gateway and into Vera, all is working. I got really frustrated at this, but it just seemed like it wanted to be connected to something first.
    Sorry, probably not much help, but thought I would share my experience.

    Troubleshooting dht22 nrf24l01 mini pro

  • Actioning switch is far from instant
    D Dean

    @hek said:

    Does the repeater send any sensor data itself? The dashboard "last update" only reflect data coming from the repeater.

    No, all it is is a repeater. The only node that could send its signal through it is my doorbell which won't send anything until the doorbell is pressed, so I guess that all makes sense.

    I only have one sensor that is communicating all the time, which is my garage door switch which also sends temp values. The funny thing is that it is this switch that is the most reliable and ALWAYS works the instant I ask it to. the relay switches that I have turning operating some lights, that is the only thing I have them doing and there are times that I am having to repeatedly press there button on the dashboard to finally get the relay to work.

    Vera vera relay ui7

  • Actioning switch is far from instant
    D Dean

    @hek can you have a look at the RepeaterNode sketch just to make sure it's correct, because I have one of them running as it is in the example and it appears to be sleeping; according to the dashboard it hasn't updated for 8 hours...

    Vera vera relay ui7

  • Actioning switch is far from instant
    D Dean

    I've noticed that almost all of my repeater nodes are falling asleep. Only one is staying awake all the time. I am almost certain that all of my sensors were programmed the same way ensuring that they all stayed awake, because they are all mains powered.

    Could this be the issue? The sketch that is staying awake has this : gw.begin(NULL, AUTO, true);

    The ones sleeping say this : gw.begin(incomingMessage, AUTO, true);

    If that isn't the issue, is there some way in Vera that I can change a configuration to stay awake, or do I have to change ands upload new sketches again?

    Vera vera relay ui7

  • Mysensors, Vera and UI7
    D Dean

    Thanks

    I was running UI5 for a while but thought I would take a stab at UI7 again. I'm now back to UI5.

    Vera vera mysensor 1.4 ui7

  • Mysensors, Vera and UI7
    D Dean

    I guess there must be something going on with me hardware if I'm the only one with this issue..

    Vera vera mysensor 1.4 ui7

  • Mysensors, Vera and UI7
    D Dean

    I'm still having problems with communication between my sensors and my Vera 3. I have no issues with updates coming from the sensor, but when I send a message to a sensor it doesn't always work. The wife is getting a title frustrated when lights won't turn on at night.....

    I seem to be having this issue around the same time i upgraded from UI5 to UI7.. So my question is, do we have anyone here who has actually found UI7 to work just as well for them as UI5?

    Vera vera mysensor 1.4 ui7

  • [contest] My 4-in1 LED-dimmer/motion/temp-hum sensor
    D Dean

    Nice work! Thanks for sharing all that you've done.

    My Project contest

  • Actioning switch is far from instant
    D Dean

    OK, tried turning on my lights using Vera and one worked pretty quickly, as in the second try, but the other one took about 15 tries.

    None of my sensors or the Ethernet Gateway are using a capacitor across the power input so I might give that a go. It just seems weird because I haven't required these before.

    Vera vera relay ui7

  • Actioning switch is far from instant
    D Dean

    Hi all,

    I have a couple arduino relays which I am using for my lights in my home. They work really well, but if they haven't been used for a while, they won't respond until I try them a couple times. It is like they go to sleep and need a couple messages sent to them before they actually work.

    Is that possible? I am using the Relay with Button Actuator pretty much as it is set up in the example. To me it doesn't look like it sleeps, as they are also repeaters. Am I right?

    Some help as to what the problem might be would be great :-)

    Vera vera relay ui7

  • Motion Sensing sketch which is also a repeater
    D Dean

    @hek said:

    What does the serial monitor say? Is it spewing out debug prints?

    It crashes. That was my first indication that someone was wrong... I always have my sensors connected to my computer when I put them through their initial inclusion with Vera, and when I did this the monitor brought up a couple lines and then froze. Even after resetting the board nothing would come up. It also only brought up one device on Vera rather than two... I did forget to write "Repeater Node" in line 18 originally, so could that be the whole reason to my issue maybe?

    Anyways, I'm off to work now but will test again when I get home tonight :-)

    Troubleshooting motion repeater sketch sensor
  • Login

  • Don't have an account? Register

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