Navigation

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

    Topics created by ThomasDr

    • ThomasDr

      WiFi Gateway (ESP8266) - reconnect to controller
      Troubleshooting • esp8266 nrf24l01+ gateway • • ThomasDr  

      3
      0
      Votes
      3
      Posts
      944
      Views

      ThomasDr

      Hello, there is a possibility to check the connection. I will test with receive command from controller to the gateway and write a timeout to reset the ESP with ESP.reset or ESP.restart. regards ThomasD
    • ThomasDr

      Connenct a RS485 Network to a NodeMCU Gateway?
      Troubleshooting • • ThomasDr  

      6
      0
      Votes
      6
      Posts
      4138
      Views

      ThomasDr

      @rejoe2 I'm assuming the Wifi is the best solution, but if RF868 would be better I'll look at it again. I also have a couple Xbee module Series 1, could you start something else? Perhaps also an idea add Xbee to the Mysensor API. regards ThomasD
    • ThomasDr

      Gateway in Client Mode and 2 Controller?
      General Discussion • • ThomasDr  

      7
      0
      Votes
      7
      Posts
      1633
      Views

      FotoFieber

      @LastSamurai As long as the veras don't try to be the main controller at the same time.
    • ThomasDr

      Error after upload new sketch.
      Troubleshooting • • ThomasDr  

      6
      0
      Votes
      6
      Posts
      1739
      Views

      ThomasDr

      Hello, I think I have found the error. I use a 15sec. loop in the sketch and i thing a intern watchdog reset the Node. regards Thomas
    • ThomasDr

      IO Broker Comprehension problem.
      IOBroker • • ThomasDr  

      2
      0
      Votes
      2
      Posts
      1232
      Views

      ThomasDr

      Hello, I found the mistake, I had to set the gateway as a client. regards ThomasD
    • ThomasDr

      Relay skech API 2.0 Port?
      Development • • ThomasDr  

      2
      0
      Votes
      2
      Posts
      915
      Views

      Boots33

      @ThomasDr The updated relay sketch is included as an example with the MySensors V2 install I have copied it and pasted it below /** * 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 * Example sketch showing how to control physical relays. * This example will remember relay state after power failure. * http://www.mysensors.org/build/relay */ // 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 <MySensors.h> #define RELAY_1 3 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) #define NUMBER_OF_RELAYS 1 // Total number of attached relays #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 void before() { for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) { // Then set relay pins in output mode pinMode(pin, OUTPUT); // Set relay to last known state (using eeprom storage) digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF); } } void setup() { } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Relay", "1.0"); for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) { // Register all sensors to gw (they will be created as child devices) present(sensor, S_LIGHT); } } 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-1+RELAY_1, 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()); } }
    • ThomasDr

      Burglary and tamper detector for door and window
      My Project • • ThomasDr  

      1
      2
      Votes
      1
      Posts
      978
      Views

      No one has replied

    • ThomasDr

      No reconnect after power down.
      Troubleshooting • • ThomasDr  

      4
      0
      Votes
      4
      Posts
      1299
      Views

      mfalkvidd

      Great news. Thanks for reporting back.