Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Humidity repeater, easy question...?

    3
    0 Votes
    3 Posts
    878 Views
    Mark SwiftM
    @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.
  • LEDs not blinking in my Ethernet Gateway

    5
    0 Votes
    5 Posts
    1k Views
    TiasT
    Hi ! Thanks, but as I mentioned in my OP, it is not working with that configuration neither so that's why I am trying to get help figuring out why it doesn't work in my case. :) Cheers ! /T
  • Just starting SerialGateway & Temp/RTC Node Not getting Node ID.

    4
    0 Votes
    4 Posts
    2k Views
    F
    Hey there @Chaotic ! This is Fay from codebender.cc Thank you for using codebender! I just wanted to let you know that one of the sketches you are using in this comment has been deleted and so it is not available for users to view it. Let me know if you have any question. :)
  • 0 Votes
    11 Posts
    18k Views
    R
    @oscarc said: @Reza that is correct thank you <3
  • #error No forward link or gateway feature activated.

    18
    0 Votes
    18 Posts
    11k Views
    SkysoftS
    On development, I've this problem too...
  • Signing (Hardware) not working, don't know it anymore

    1
    0 Votes
    1 Posts
    707 Views
    No one has replied
  • Door Sensor / Mini Pro Clone Interrupt

    4
    0 Votes
    4 Posts
    1k Views
    TakeroT
    Thanks for help. . . i dont now why but it works now. I Think i had an Hardware issues :( Thanks!
  • I am not able to stop the blinds motor once the first command is sent.

    12
    0 Votes
    12 Posts
    5k Views
    oscarcO
    @Suresh-Mali @mfalkvidd Thank you for your help ,I'll be trying it tonight and I let you know Thanks
  • Newby Question: compiler warnings and capacitor size on NRF+

    14
    0 Votes
    14 Posts
    5k Views
    F
    Can the SMD cap be like this? http://www.aliexpress.com/item/Free-shipping-0603-SMD-capacitor-4-7UF-50V-475Z-100PCS/32621037834.html?spm=2114.01010208.3.11.IfcuOj&ws_ab_test=searchweb201556_0,searchweb201602_5_10017_10005_10006_10034_10021_507_10022_10020_10018_10019,searchweb201603_6&btsid=87ae8cba-1bfa-4fdf-9c3c-02524011e44a I have tried and it works but isn't to small?
  • Pimatic doesnt receive any signal

    3
    0 Votes
    3 Posts
    925 Views
    OitzuO
    This can probably marked as solved in http://forum.mysensors.org/topic/797/pimatic-mysensors-controller-plugin/85 ?
  • Has anyone made a 2 or 4 channel relay , and is that worked correct ?

    40
    0 Votes
    40 Posts
    10k Views
    TheoLT
    @Reza Glad that I could help. I was just thinking. I've added a wait in between the presentation of the relays childs to the gateway. Maybe that made the difference. Anyway good luck and enjoy the greatness of MySensors and it's wonderful community.
  • Sensor Floods Gateway every few days.

    1
    0 Votes
    1 Posts
    532 Views
    No one has replied
  • Question about sleep until interrupt

    7
    0 Votes
    7 Posts
    2k Views
    TheoLT
    @mfalkvidd at the moment only the muting state of the doorbell chime. But once my digital potentionometer arrives I'll be sending a volume level as well. Update: I also want to trigger to chime remotely. My thinking is that I can solder a second one (but without switch) as a doorbell extender. I can mount that one in my living room.
  • This topic is deleted!

    5
    0 Votes
    5 Posts
    3 Views
  • 2.0.0beta RBoard (4 relays 4 switches, pir) with IBoard Eth. GW problem

    3
    0 Votes
    3 Posts
    715 Views
    pitP
    @pit said: @pit said: RF24L01 network without SIGNING, OTA feature. My RBoard hangs if it receives a message from gw before reaching the process loop. After some resets it finishes his setup and I get states from my buttons and I can switch my relays in fhem. With small mini, nano sensors and only 2 or 3 values (temp, hum, pressure) there are no problems. Here are 3 logs from my RBoard (id 30) starting sensor (RNNNA-, 2.0.0) Radio init successful send: 30-30-0-0 s=2 c=2 t=3 pt=0 l=0 sg=0 st=ok: Node ready to receive messages... send: 30-30-0-0 s=255 c=3 t=15 pt=0 l=2 sg=0 st=ok: send: 30-30-0-0 s=255 c=0 t=17 pt=0 l=5 sg=0 st=ok:2.0.0 send: 30-30-0-0 s=255 c=3 t=6 pt=1 l=1 sg=0 st=ok:0 read: 0-0-30 s=255 c=3 t=15 pt=0 l=2 sg=0: // ??? // hanging starting sensor (RNNNA-, 2.0.0) Radio init successful send: 30-30-0-0 s=2 c=2 t=3 pt=0 l=0 sg=0 st=ok: Node ready to receive messages... send: 30-30-0-0 s=255 c=3 t=15 pt=0 l=2 sg=0 st=ok: send: 30-30-0-0 s=255 c=0 t=17 pt=0 l=5 sg=0 st=ok:2.0.0 send: 30-30-0-0 s=255 c=3 t=6 pt=1 l=1 sg=0 st=ok:0 send: 30-30-0-0 s=255 c=3 t=11 pt=0 l=13 sg=0 st=ok:Itlead RBoard send: 30-30-0-0 s=255 c=3 t=12 pt=0 l=3 sg=0 st=ok:1.0 send: 30-30-0-0 s=1 c=0 t=1 pt=0 l=0 sg=0 st=ok: send: 30-30-0-0 s=2 c=0 t=4 pt=0 l=0 sg=0 st=ok: send: 30-30-0-0 s=10 c=0 t=3 pt=0 l=8 sg=0 st=ok:Switch 0 send: 30-30-0-0 s=11 c=0 t=3 pt=0 l=8 sg=0 st=ok:Switch 1 send: 30-30-0-0 s=12 c=0 t=3 pt=0 l=8 sg=0 st=ok:Switch 2 send: 30-30-0-0 s=13 c=0 t=3 pt=0 l=8 sg=0 st=ok:Switch 3 send: 30-30-0-0 s=20 c=0 t=3 pt=0 l=7 sg=0 st=ok:Relay 0 send: 30-30-0-0 s=21 c=0 t=3 pt=0 l=7 sg=0 st=ok:Relay 1 send: 30-30-0-0 s=22 c=0 t=3 pt=0 l=7 sg=0 st=ok:Relay 2 send: 30-30-0-0 s=23 c=0 t=3 pt=0 l=7 sg=0 st=ok:Relay 3 Init complete, node id=30 parent=0 distance=1 // ok :smile: motion: 1 send: 30-30-0-0 s=1 c=1 t=16 pt=0 l=1 sg=0 st=ok:1 motion: 0 send: 30-30-0-0 s=1 c=1 t=16 pt=0 l=1 sg=0 st=ok:0 send: 30-30-0-0 s=10 c=1 t=2 pt=1 l=1 sg=0 st=ok:1 Now the node works. Could it be a timing problem? Also the received message has type: text. but gw sends 2 bytes in "signerPresentation(_msg)" if I am not wrong. Has anyone an idea? read: 0-0-30 s=10 c=1 t=2 pt=1 l=1 sg=0:1
  • Changing from serial to ethernet gateway

    30
    0 Votes
    30 Posts
    12k Views
    petewillP
    @jlieffort :thumbsup:
  • What am I missing here?

    25
    0 Votes
    25 Posts
    7k Views
    AWIA
    @Apocrathia I am happy for you that it is finally working. :+1: The "fake" radio's should not frustrate the MySensors project. Until now I haven't had problems with the SMD versions..
  • Senserbender Humidity Value Error

    4
    0 Votes
    4 Posts
    1k Views
    hdrider465H
    Dwalt - you hit the nail on the head. I was not able to get the dev branch of the ESP Wifi gateway to build per the link you sent. but I modified the senserbendermicro example to change the all of the "int" to "float" for the humidity readings and I am getting the correct readings now. In the example the Temperature variables are all float types so the temp readings were working correctly. +1 to you. Hek - i have a 5v 2A wall wart powering the esp. it was reporting the high value right from the start due to the 2 byte int to 4 byte int conversion in the ESP.
  • Dallas temp sensor in Fahrenheit, must be celsius

    11
    0 Votes
    11 Posts
    4k Views
    PetjepetP
    I agree. It is very hard/difficult to keep a consistent set of libraries operational in a broader scope of elements to be managed.
  • 0 Votes
    5 Posts
    9k Views
    F
    Hey there @Chaotic ! This is Fay from codebender.cc Thank you for using codebender! I just wanted to let you know that one of the sketches you are using in this comment has been deleted and so it is not available for users to view it. Let me know if you have any question. :)

11

Online

11.7k

Users

11.2k

Topics

113.2k

Posts