Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Node stops working and does not recover if communication fails

    9
    0 Votes
    9 Posts
    2k Views
    Boots33B
    @abmantis Always more than one way to fix a problem :smiley:
  • Humidity Sketch causes Vera App to crash

    15
    0 Votes
    15 Posts
    5k Views
    ThomasDrT
    Hello, i see this is a old posting, but i have the same problem. But i found an error. I use send(summsg.set(sum)); but this work: send(summsg.set(sum,5)); regards ThomasD
  • How to create a fake local sensor on Ethernet Gateway

    5
    0 Votes
    5 Posts
    3k Views
    Silviu NegoitaS
    Hi, I tried to create an ethernet gateway + one dummy sensor , like in above exemple. My controller is domoticz for windows. I tried this code : /** * 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 * Contribution by a-lurker and Anticimex, * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de> * Contribution by Tomas Hozza <thozza@gmail.com> * * * DESCRIPTION * The EthernetGateway sends data received from sensors to the ethernet link. * The gateway also accepts input on ethernet interface, which is then sent out to the radio network. * * The GW code is designed for Arduino 328p / 16MHz. ATmega168 does not have enough memory to run this program. * * LED purposes: * - To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly * - ERR (red) - fast blink on error during transmission error or recieve crc error * * See http://www.mysensors.org/build/ethernet_gateway for wiring instructions. * */ // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached //#define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 // Enable gateway ethernet module type #define MY_GATEWAY_W5100 // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal) //#define MY_W5100_SPI_EN 4 // Enable Soft SPI for NRF radio (note different radio wiring is required) // The W5100 ethernet module seems to have a hard time co-operate with // radio on the same spi bus. #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD) #define MY_SOFTSPI #define MY_SOFT_SPI_SCK_PIN 14 #define MY_SOFT_SPI_MISO_PIN 16 #define MY_SOFT_SPI_MOSI_PIN 15 #endif // When W5100 is connected we have to move CE/CSN pins for NRF radio #ifndef MY_RF24_CE_PIN #define MY_RF24_CE_PIN 5 #endif #ifndef MY_RF24_CS_PIN #define MY_RF24_CS_PIN 6 #endif // Enable to UDP //#define MY_USE_UDP #define MY_IP_ADDRESS 192,168,0,125 // If this is disabled, DHCP is used to retrieve address // Renewal period if using DHCP //#define MY_IP_RENEWAL_INTERVAL 60000 // The port to keep open on node server mode / or port to contact in client mode #define MY_PORT 5003 // Controller ip address. Enables client mode (default is "server" mode). // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. #define MY_CONTROLLER_IP_ADDRESS 192, 168, 0, 100 // The MAC address can be anything you want but should be unique on your network. // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use. // Note that most of the Ardunio examples use "DEAD BEEF FEED" for the MAC address. #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED // Flash leds on rx/tx/err #define MY_LEDS_BLINKING_FEATURE // Set blinking period #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Enable inclusion mode //#define MY_INCLUSION_MODE_FEATURE // Enable Inclusion mode button on gateway //#define MY_INCLUSION_BUTTON_FEATURE // Set inclusion mode duration (in seconds) //#define MY_INCLUSION_MODE_DURATION 60 // Digital pin used for inclusion mode button //#define MY_INCLUSION_MODE_BUTTON_PIN 3 // Uncomment to override default HW configurations //#define MY_DEFAULT_ERR_LED_PIN 7 // Error led pin //#define MY_DEFAULT_RX_LED_PIN 8 // Receive led pin //#define MY_DEFAULT_TX_LED_PIN 9 // the PCB, on board LED #include <SPI.h> #if defined(MY_USE_UDP) #include <EthernetUdp.h> #endif #include <Ethernet.h> #include <MySensors.h> #define CHILD_ID 1 unsigned long SLEEP_TIME = 1000; // Sleep time between sends (in milliseconds) MyMessage msg(CHILD_ID, V_TEMP); unsigned int seconds = 0; void setup() { } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Dummy sensor", "1.0"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID, S_TEMP); } void loop() { seconds = seconds + 1; Serial.print("Seconds since start: "); Serial.println(seconds); send(msg.set(seconds, 1)); sleep(SLEEP_TIME); } Controller seems to connect to gateway but no devices were found: [image: domoticz_connected.png] Also, serial monitor gives: [image: serial.png] Any ideas why my dummy sensor is not recognized ? UPDATE: I managed to make above code run by removing #define MY_CONTROLLER_IP_ADDRESS 192, 168, 0, 100 Regards
  • Gateway ESP8266 Wifi resets after connecting to router

    34
    0 Votes
    34 Posts
    14k Views
    Harry van der WolfH
    It is not necessary for any esp8266 having a usb port as you program these directly via that usb port. So. indeed: the nodemcu doesn't need it and neither does the Wemos. The esp-07, also available, does need that setup to flash/program it.
  • Problems dallas tempsensor

    5
    0 Votes
    5 Posts
    2k Views
    S
    @Boots33 said: @stingone That is a known issue with the latest dallas library. See this post for the fix Many thanks.. works all fine now :) had indeed the wrong datasheet...
  • nRF24L01 - Interference

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Newbe error question: #error No forward link or gateway feature activated

    9
    0 Votes
    9 Posts
    3k Views
    hekH
    Nothing to worry about.
  • Verify fail error after upgrading to Mysensors 2 and adding signing

    12
    0 Votes
    12 Posts
    2k Views
    AnticimexA
    @LastSamurai serial number is only used for whitelisting. If you use soft signing you need to configure the personalizer to store it and it should be unique for every sensor board. If any node (or gateway) require whitelisting, your node will use the serial as salt for the signature and the receiver will look up the serial in its local whitelist if it finds a match for the node ID of your node and do the responding salting to verify the signature. I'm other words, if you use whitelisting, you have to match the whitelists with the serials of the nodes that communicate. The signing documentation describes how to do this. From your logs, however, I would say it is a hmac mismatch. The verbose debug will show if serials could have been the problem. Typically by asking if the sender is in the whitelist.
  • !TSM:CHKID:FAIL (ID=255)

    5
    0 Votes
    5 Posts
    2k Views
    jmmorgan83J
    Great! That worked. I was just trying to get it to work between the node and gateway, and the motion example didn't have the MY_NODE_ID in the example.
  • MyMessage::getInt() (v1.5) gives wrong value

    1
    0 Votes
    1 Posts
    396 Views
    No one has replied
  • [Solved] Undefined reference to own class used in Arduino sketch .cpp

    2
    0 Votes
    2 Posts
    5k Views
    DerTommD
    Finally I found a solution for the described situation. PlatformIO did not compile all dependend files in a library due to a wrong folder layout. After correcting this it works now. For people experiencing the same issue I recommend visiting the connected PlatformIO community thread: https://community.platformio.org/t/pio-does-not-compile-all-included-library-classes-which-leads-to-linker-errors/1034
  • DHT11 locally on a ESP8266 MQTT Gateway

    4
    0 Votes
    4 Posts
    2k Views
    YeitsoY
    Yeah im gonna try to switch to adafruits lib. Atm im using the one from mysensors.
  • DHT22 on Arduino Pro Mini 8Mhz 3.3V - Failed

    23
    0 Votes
    23 Posts
    9k Views
    Puneit ThukralP
    @TimO Thanks, it's finally working! Time to add more nodes.
  • I can't get it to work (Nano V3.0, NRF24L01+Z)

    5
    0 Votes
    5 Posts
    1k Views
    blaceyB
    @mfalkvidd said: However, it looks like the header pins have not been soldered to the Nano. Good eyes and nice catch ;)
  • Gateway seems to keep resetting

    2
    0 Votes
    2 Posts
    1k Views
    rejoe2R
    Had a similar problem using FHEM as controller. A downgrade of the board-definitions within the Arduino-IDE to version <=1.6.11 helped to some extend: The rebooting issue is gone, but the status within FHEM no longer goes to "connected" but sticks in "startup complete". Additionally: Someone in the FHEM forum reported lost messages using FHEM as a controller and a serial GW. According to this report (https://forum.fhem.de/index.php/topic,60917.0.html) he used two computers and two GWs to compare the messages he received (other controller was MYSController). In my setup, I may also have some problems that could be related to that: One of my nodes has (amongst other things) 6 DS18B20 attached. When using a loop to read all the 6 and send the temps immediately, I do not get reasonable values for the 5th and no temp at all for the 6th. But this can also be related to other reasons (wiring, power source, NRF), I have to do some more testing on this to be sure. (Using 2.0.1-beta and Arduino-IDE 1.6.12 with board-def for Nano 1.6.11)
  • Wemos D1 Mini ESP8266 GW Homeassistant connection problem with sensor node

    10
    0 Votes
    10 Posts
    4k Views
    hekH
    Nope, we don't screw with any pin mapping. https://github.com/esp8266/Arduino/blob/master/variants/d1_mini/pins_arduino.h#L40-L50
  • Upgrading to 2.0 with whitelisting: !TSP:MSG

    1
    0 Votes
    1 Posts
    472 Views
    No one has replied
  • 0 Votes
    3 Posts
    1k Views
    DerTommD
    Thanks - that solved the problem!
  • Radio reception issue

    2
    0 Votes
    2 Posts
    657 Views
    F
    Try to angle the antenna in different directions try with another nRF try to have the nRF outside the box when you close it
  • 0 Votes
    3 Posts
    1k Views
    Meshx86M
    by hek: This PR was merged a few days ago: https://github.com/mysensors/MySensors/pull/633

22

Online

11.7k

Users

11.2k

Topics

113.1k

Posts