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
  1. Home
  2. Controllers
  3. Domoticz
  4. Robot mower ignores the rain, MySensors to the rescue!

Robot mower ignores the rain, MySensors to the rescue!

Scheduled Pinned Locked Moved Domoticz
28 Posts 6 Posters 8.0k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Mark SwiftM Offline
    Mark SwiftM Offline
    Mark Swift
    wrote on last edited by Mark Swift
    #19

    @sundberg84 @TheoL I understand, no hard feelings, I'm also pretty busy (currently a week away from launching my startup) so I know how it feels :)

    The code for the mower node I've got so far is

    // Enable debug prints to serial monitor
    #define MY_DEBUG
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    // #define MY_RADIO_RFM69
    
    // Enable repeater functionality for this node
    // #define MY_REPEATER_FEATURE
    
    #include <SPI.h>
    #include <MySensor.h>
    
    #define CHILD_ID1 1
    #define CHILD_ID2 2
    #define RELAY_PIN 3
    #define RELAY_ON 1  // GPIO value to write to turn on attached relay
    #define RELAY_OFF 0 // GPIO value to write to turn off attached relay
    
    MyMessage MowerMsg(CHILD_ID2, V_TEXT);      // message for Sending Text to Controller
    
    void before() {
      // Then set relay pins in output mode
      pinMode(RELAY_PIN, OUTPUT);
      // Set relay to last known state (using eeprom storage)
      digitalWrite(RELAY_PIN, loadState(CHILD_ID1) ? RELAY_ON : RELAY_OFF);
      // Fetch mower run status
    }
    
    void setup() {
    }
    
    void presentation() {
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo("Relay", "1.0");
    
      // Register all sensors to gw (they will be created as child devices)
      present(CHILD_ID1, S_LIGHT);
      present(CHILD_ID2, S_CUSTOM);
    }
    
    
    void loop() {
    }
    
    void receive(const MyMessage &message) {
      // We only expect one type of message from controller. But we better check anyway.
      if (message.type == V_LIGHT) {
        // Change relay state;
        digitalWrite(message.sensor, message.getBool() ? RELAY_ON : RELAY_OFF);
        // Store state in eeprom
        saveState(message.sensor, message.getBool());
        // Write some debug info
        Serial.print("Incoming change for sensor:");
        Serial.print(message.sensor);
        Serial.print(", New status: ");
        Serial.println(message.getBool());
      }
    }
    
    

    I've no idea if I'm on the right lines or not, I have however managed to get the V_TEXT to show in Domoticz and update it to '1', it's currently living under utility sensors?

    Now, if I can just figure out how to update the utility sensor based on my moisture / rain sensors and retrieve it, once that's done I'm sure I can add the logic for if V_TEXT = 1.

    1 Reply Last reply
    0
    • TheoLT Offline
      TheoLT Offline
      TheoL
      Contest Winner
      wrote on last edited by
      #20

      It's a bit too late over here, will look at it tomorrow. Your own startup cool!! What is your business?

      1 Reply Last reply
      1
      • Mark SwiftM Offline
        Mark SwiftM Offline
        Mark Swift
        wrote on last edited by
        #21

        @TheoL Yes, we've been building our product for a year; we're due to launch in a month or so. We're looking to revolutionise the recruitment industry :-)

        I hope you can help point me in the right direction regarding this predicament, it's the last thing I need to complete.

        Cheers,

        Mark

        TheoLT C 2 Replies Last reply
        0
        • Mark SwiftM Mark Swift

          @TheoL Yes, we've been building our product for a year; we're due to launch in a month or so. We're looking to revolutionise the recruitment industry :-)

          I hope you can help point me in the right direction regarding this predicament, it's the last thing I need to complete.

          Cheers,

          Mark

          TheoLT Offline
          TheoLT Offline
          TheoL
          Contest Winner
          wrote on last edited by
          #22

          @Mark-Swift I'll see what I can do. But as said before. I haven't tested the V_TEXT. And since I'm on an old version of Domoticz, I won't be able to.

          1 Reply Last reply
          0
          • Mark SwiftM Mark Swift

            @TheoL Yes, we've been building our product for a year; we're due to launch in a month or so. We're looking to revolutionise the recruitment industry :-)

            I hope you can help point me in the right direction regarding this predicament, it's the last thing I need to complete.

            Cheers,

            Mark

            C Offline
            C Offline
            chickey
            wrote on last edited by
            #23

            @Mark-Swift Random one here, you didn't happen to work for a company called ABS in the past did you?

            Mark SwiftM 1 Reply Last reply
            0
            • C chickey

              @Mark-Swift Random one here, you didn't happen to work for a company called ABS in the past did you?

              Mark SwiftM Offline
              Mark SwiftM Offline
              Mark Swift
              wrote on last edited by
              #24

              @chickey Sadly I did, I remember OSG ;)

              1 Reply Last reply
              0
              • C Offline
                C Offline
                chickey
                wrote on last edited by
                #25

                Small world lol OSG is a nearly distant memory now, disbanded in the UK a few years ago nearly now, remember seeing you'd got the robot mower and when i saw your name i put 2 and 2 together and got the right number for a change lol. Been tinkering with the mysensors stuff and Domoticz lately. Only got a few sensors going so far but working well. Not to go too far off topic which mower did you go for BTW been looking at them myself.

                1 Reply Last reply
                0
                • Mark SwiftM Offline
                  Mark SwiftM Offline
                  Mark Swift
                  wrote on last edited by Mark Swift
                  #26

                  I've actually got 2 (don't ask!). I have the Worx Landroid, it's great with exception of the rain sensor...

                  I've just completed building a garage for it - complete with automatic door, rain and moisture sensors and some exterior neopixel indicators showing it's status. It saves me a ton of time cutting the grass; I'd thoroughly recommend it!

                  C 2 Replies Last reply
                  0
                  • Mark SwiftM Mark Swift

                    I've actually got 2 (don't ask!). I have the Worx Landroid, it's great with exception of the rain sensor...

                    I've just completed building a garage for it - complete with automatic door, rain and moisture sensors and some exterior neopixel indicators showing it's status. It saves me a ton of time cutting the grass; I'd thoroughly recommend it!

                    C Offline
                    C Offline
                    chickey
                    wrote on last edited by
                    #27

                    @Mark-Swift I was looking at the Worx Landroid as it seemed pretty good value.

                    1 Reply Last reply
                    0
                    • Mark SwiftM Mark Swift

                      I've actually got 2 (don't ask!). I have the Worx Landroid, it's great with exception of the rain sensor...

                      I've just completed building a garage for it - complete with automatic door, rain and moisture sensors and some exterior neopixel indicators showing it's status. It saves me a ton of time cutting the grass; I'd thoroughly recommend it!

                      C Offline
                      C Offline
                      chickey
                      wrote on last edited by
                      #28

                      @Mark-Swift

                      Well i got myself a Worx Landroid 794E from ebay, just looking for a base station and boundary wire now and i'll be up and running. Did you ever sort your issue to stop it going out in the rain?

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      17

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

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