Navigation

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

    Topics created by Mark Swift

    • Mark Swift

      Use battery_level to create an entity with a dynamic icon (avoid templates and save airspace noise!)
      Home Assistant • • Mark Swift  

      2
      0
      Votes
      2
      Posts
      719
      Views

      martinhjelmare

      I think it's a good idea. My todo list for mysensors is already very long and I have limited time, though, so I don't think I will code this up soon. It shouldn't be very difficult though, so anyone is welcome to have a go and make a pull request. I'll happily review.
    • Mark Swift

      How to enable OTA debug on Pi gateway?
      General Discussion • • Mark Swift  

      2
      0
      Votes
      2
      Posts
      652
      Views

      Mark Swift

      Trying it with the extra config command: --extra-cxxflags="-DMY_OTA_LOG_RECEIVER_FEATURE"
    • Mark Swift

      Incoming readings become 'corrupt' after sometime
      Troubleshooting • • Mark Swift  

      1
      0
      Votes
      1
      Posts
      512
      Views

      No one has replied

    • Mark Swift

      'getConfig' was not declared in this scope (V2.1.1) - FIXED
      Troubleshooting • • Mark Swift  

      7
      0
      Votes
      7
      Posts
      7096
      Views

      Madhias

      @Newzwaver If I remember correctly you have to change in your sketches from getConfig() to getControllerConfig()
    • Mark Swift

      Can the NodeMCU (ESP8266) be used as a node without an NRF24L01?
      General Discussion • • Mark Swift  

      6
      0
      Votes
      6
      Posts
      1951
      Views

      mfalkvidd

      It might be possible to put nodered between the gateways and your controller to aggregate the gateways. I don't know how to do that though.
    • Mark Swift

      Battery door sensor doesn't wake for the 1st time after approx 12 hours of sleep...
      Troubleshooting • • Mark Swift  

      7
      0
      Votes
      7
      Posts
      1399
      Views

      AWI

      @Mark-Swift You could try with remote debug with V_TEXT if your controller supports this or if you send it to a logging node.. Another option is to use different sensors to send debugging information, i.e. return values from the 'send()' and 'sleep()' functions.
    • Mark Swift

      Default RF24 PA level and data rate in latest dev branch...
      Development • • Mark Swift  

      2
      0
      Votes
      2
      Posts
      2084
      Views

      AWI

      @Mark-Swift default settings are in MyConfig.h and setting is "MAX" * @def MY_RF24_PA_LEVEL * @brief Default RF24 PA level. Override in sketch if needed. */ #ifndef MY_RF24_PA_LEVEL #define MY_RF24_PA_LEVEL RF24_PA_MAX #endif
    • Mark Swift

      Node sending same value multiple times, why?
      Development • • Mark Swift  

      7
      0
      Votes
      7
      Posts
      1328
      Views

      Mark Swift

      I'll try a debug when I'm home, but this is a remote node using MYS firmware... See MYS screenshots here: http://postimg.org/gallery/8ynl0jw/c4dcd695/
    • Mark Swift

      Super simple node to node, why doesn't it work?
      Troubleshooting • • Mark Swift  

      5
      0
      Votes
      5
      Posts
      1091
      Views

      hek

      No
    • Mark Swift

      Node does not present sketch info?
      Troubleshooting • • Mark Swift  

      5
      0
      Votes
      5
      Posts
      1269
      Views

      Mark Swift

      i'm using the latest development branch... I believe there's no void presentation? edit: crap, noob error, I missed my presentation loop!
    • Mark Swift

      Can it be done? (Countdown timer that survives wait or sleep)
      Development • • Mark Swift  

      21
      0
      Votes
      21
      Posts
      5969
      Views

      Mark Swift

      @TheoL With regards the LED's, I slightly changed the logic so they count down, rather than up, i.e. they extinguish as each hour passes until the 4th hour. I don't see an issue with the current rain sensor / moisture sensor logic, I'm ensuring a reading is taken, but not seeing it unless they've changed? The number you see there now is only because I was testing, normally they're either lastMoistureValue = moistureValue OR lastRainValue = rainValue The main issue I see is that I need to countdown to be in sync with if (lastMoistureValue == 0 || lastRainValue == 0) so if (lastMoistureValue == 0 || lastRainValue == 0) is true on each loop, then the countdown LED's are reset also. I'll no doubt change the loop wait to much longer once deployed.
    • Mark Swift

      Anything to be concerned about, or caused by MQTT gateway?
      Troubleshooting • • Mark Swift  

      8
      0
      Votes
      8
      Posts
      925
      Views

      Mark Swift

      I'll give it a shot, thank you!
    • Mark Swift

      Is this possible? MQTT & Node request...
      Development • • Mark Swift  

      5
      0
      Votes
      5
      Posts
      1448
      Views

      noelgeorgi

      @Mark-Swift check this for node-to-node communication http://forum.mysensors.org/topic/3467/basic-setup-network/2 as @hek said setup a database in nodered to save the values received from node-1 and you could request that from node-2
    • Mark Swift

      Can you help spot my sketch mistake? Why's it ignoring the delay?
      Troubleshooting • • Mark Swift  

      2
      0
      Votes
      2
      Posts
      620
      Views

      Boots33

      That code looks ok to me. You should get a 5 second delay with that. Perhaps add Serial.println("start delay"); // Wait between sensor readings, seems to help reliability of second reading delay(5000); Serial.println("finish delay"); and see if you get your delay in the serial monitor``` Insert Code Here
    • Mark Swift

      ESP8266 Gateway + nRF24L01+PA+LNB = Interference?
      Troubleshooting • • Mark Swift  

      10
      0
      Votes
      10
      Posts
      3549
      Views

      Mark Swift

      @noelgeorgi I've given up for now, I've ordered some new PA+LNB models with shielding!
    • Mark Swift

      Node will not connect unless #define MY_PARENT_NODE_ID
      Troubleshooting • • Mark Swift  

      4
      0
      Votes
      4
      Posts
      1650
      Views

      Mark Swift

      @mfalkvidd My gateway is an NodeMCU with a NRF PA + LNA, it seems to be resolved if I use #define MY_RF24_PA_LEVEL RF24_PA_MIN on the gateway. Strange, as the NodeMCU has a AMS1117 which I believe can handle 800ma, presuming the ESP8266 uses 300ma max, that leaves 500ma, surely it should be enough? I've tried shielding the radio as suggested but it doesn't make a difference.
    • Mark Swift

      Humidity repeater, easy question...?
      Troubleshooting • • Mark Swift  

      3
      0
      Votes
      3
      Posts
      808
      Views

      Mark Swift

      @mfalkvidd I currently have this, what do you suggest I change? /** * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2015 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * REVISION HISTORY * Version 1.0 - Henrik EKblad * * DESCRIPTION * This sketch provides an example how to implement a humidity/temperature * sensor using DHT11/DHT-22 * http://www.mysensors.org/build/humidity */ // Enable debug prints // #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 // Enabled repeater feature for this node #define MY_REPEATER_FEATURE #include <SPI.h> #include <MySensor.h> #include <DHT.h> #define CHILD_ID_HUM 0 #define CHILD_ID_TEMP 1 #define HUMIDITY_SENSOR_DIGITAL_PIN 3 unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds) DHT dht; float lastTemp; float lastHum; boolean metric = true; MyMessage msgHum(CHILD_ID_HUM, V_HUM); MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP); void setup() { dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); metric = getConfig().isMetric; } void presentation() { // Send the Sketch Version Information to the Gateway sendSketchInfo("Temperature + Humidity", "1.0"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID_HUM, S_HUM); present(CHILD_ID_TEMP, S_TEMP); } void loop() { delay(dht.getMinimumSamplingPeriod()); // Fetch temperatures from DHT sensor float temperature = dht.getTemperature(); if (isnan(temperature)) { Serial.println("Failed reading temperature from DHT"); } else if (temperature != lastTemp) { lastTemp = temperature; if (!metric) { temperature = dht.toFahrenheit(temperature); } send(msgTemp.set(temperature, 1)); #ifdef MY_DEBUG Serial.print("T: "); Serial.println(temperature); #endif } // Fetch humidity from DHT sensor float humidity = dht.getHumidity(); if (isnan(humidity)) { Serial.println("Failed reading humidity from DHT"); } else if (humidity != lastHum) { lastHum = humidity; send(msgHum.set(humidity, 1)); #ifdef MY_DEBUG Serial.print("H: "); Serial.println(humidity); #endif } // sleep(SLEEP_TIME); // Sleep (non repeater) // wait(SLEEP_TIME); // Wait (repeater) } Edit: Apologies, I see what you're advising to do, I missed that line. I've made the change now.
    • Mark Swift

      Robot mower ignores the rain, MySensors to the rescue!
      Domoticz • • Mark Swift  

      28
      0
      Votes
      28
      Posts
      7985
      Views

      chickey

      @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?