Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • 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. :)
  • How to deal with a request for information from controller?

    20
    1 Votes
    20 Posts
    12k Views
    rollercontainerR
    I dont see openHAB requesting any state, so maybe its a better idea to read the state of the output pin immediately after setting the relay and publish this and bind it to a control lamp. If this isnt toggling, the command wasnt received.
  • ESP8266 MySensors Gateway Crashes when Node Connects

    22
    0 Votes
    22 Posts
    11k Views
    Mark SwiftM
    @hek Grrrrr, figured it out after a whole day wasted! My board manager had updated the ESP8266 version to 2.1, rolled back to 2.0
  • Front Doorbell Sensor lithium battery draining too quickly

    1
    0 Votes
    1 Posts
    700 Views
    No one has replied
  • S_GAS child device with V_VOLUME shows as kWh

    2
    0 Votes
    2 Posts
    694 Views
    tomdewinterT
    Ah, i found it. I had to edit the device in Domoticz and change the type to gas :-) awesome!
  • No reconnect after power down.

    4
    0 Votes
    4 Posts
    1k Views
    mfalkviddM
    Great news. Thanks for reporting back.
  • nrf24l01+ with antenna not working

    9
    0 Votes
    9 Posts
    6k Views
    OitzuO
    @kr0815 yes, tmrh20 confirmed this. https://github.com/TMRh20/RF24/issues/233 Did you already tried the other recommendations?
  • UI7 and Mysensors - lots of problems

    4
    0 Votes
    4 Posts
    2k Views
    R
    @hek I am seeing a lot of st=fail on my nodes. I have added a 4.7uF capacitor between ground and VCC but that did not help. What should I try next? a bigger capacitor? I am using an iphone wall charger as power source. Thanks!
  • How to test gateway?

    2
    0 Votes
    2 Posts
    2k Views
    F
    I don't think there is a way to test it if you don't have sensors. Something needs to send data to it otherwise it will not do anything
  • Server disconnected

    1
    0 Votes
    1 Posts
    654 Views
    No one has replied
  • Dallas Temperature Sensor - compiling error

    18
    0 Votes
    18 Posts
    13k Views
    Peter MietlowskiP
    I had the same error and it turned out that for some reason it was finding the library in a folder in My Documents and also in the Arduino install folder. I renamed the copy in My Documents (I don't remember putting it there so maybe it was older version?) and all was well.
  • st=fail since mysensors 1.5.4 update

    4
    0 Votes
    4 Posts
    1k Views
    mrcrabsM
    Hi, Thank you for your help. It is already upgraded :-( Sincerely,
  • Sensor doesn't ask for nodeid

    6
    0 Votes
    6 Posts
    1k Views
    F
    MySensors writes 0xff(255) and the sketch you used writes 0(zero)
  • Can't reprogram my pro mini

    14
    0 Votes
    14 Posts
    5k Views
    mfalkviddM
    Great news! Thanks for reporting back.
  • Relay_Actuator add second relay?

    9
    0 Votes
    9 Posts
    3k Views
    Michel - ItM
    solution vera http://forum.mysensors.org/topic/799/my-relay-module
  • Codebender compilation error with Relay Actuator sketch

    3
    0 Votes
    3 Posts
    950 Views
    C
    @hek Thanks for fixing this. I just used the arduino ide on my computer but plan to use codebender for future projects.
  • Reiving an unexpected command during the startup of the sensor

    1
    0 Votes
    1 Posts
    608 Views
    No one has replied
  • Binary switch project

    3
    0 Votes
    3 Posts
    1k Views
    mikeg291M
    Sorry for the lack of clarity . I have used your tips to and update the sketch to no avail . What I am trying to do is use the switch to activate the time and use the time the switch was activated ( lastSwitchTime ) to compare to the (alarmTime ) and send the new (value ). ? . Once I resolve the current issues : I haven't gotten to it yet but , Once the alarmTime alarm is met I would like to have locked in requiring a reset are possible button push to clear it . [code] #include <MySensor.h> #include <SPI.h> #include <Bounce2.h> #include <Time.h> #define CHILD_ID 3 #define BUTTON_PIN 3 // Arduino Digital I/O pin for button/reed switch int alarmTime = 15; MySensor gw; Bounce debouncer = Bounce(); int oldValue = -1; time_t lastSwitchTime = 0; void receiveTime(unsigned long controllerTime); bool timeReceived = false; // Change to V_LIGHT if you use S_LIGHT in presentation below MyMessage msg(CHILD_ID, V_TRIPPED); void setup() { gw.begin(); // Serial.begin(9600); // Setup the button pinMode(BUTTON_PIN, INPUT); // Activate internal pull-up digitalWrite(BUTTON_PIN, HIGH); // After setting up the button, setup debouncer debouncer.attach(BUTTON_PIN); debouncer.interval(5); // Register binary input sensor to gw (they will be created as child devices) // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. // If S_LIGHT is used, remember to update variable type you send in. See "msg" above. gw.present(CHILD_ID, S_DOOR); // Make sure we get the system time, repeat request every 5 seconds until we have a valid time gw.requestTime(receiveTime); unsigned long lastRequest = millis(); if ((millis() - lastRequest) > 5000) { gw.wait(100); gw.requestTime(receiveTime); lastRequest = millis(); } lastSwitchTime = now(); } // Check if digital input has changed and send in new value void loop() { debouncer.update(); // Get the update value int value = debouncer.read(); if (value != oldValue) { Serial.print("Switch was "); Serial.print(oldValue ? "ON" : "OFF"); Serial.print(" for: "); Serial.print(now() - lastSwitchTime); Serial.println(" seconds"); lastSwitchTime = now(); // Send in the new value if (alarmTime <= lastSwitchTime ); { gw.send(msg.set(value == HIGH 1));} else { gw.send(msg.set(value = LOW 0)); oldValue = value; } } // This is called when a new time value was received void receiveTime(unsigned long controllerTime) { // OK, set incoming time Serial.print(F("Time value received: ")); Serial.println(controllerTime); setTime(controllerTime); timeReceived = true; } Arduino: 1.6.7 (Windows 7), Board: "Arduino Nano, ATmega328" C:\Users\repair\AppData\Local\Temp\arduino_9fa690567122ca1856b95eff67fbf9b8\pump_cycle_time_2.5.ino: In function 'void loop()': pump_cycle_time_2.5:67: error: expected ')' before numeric constant { gw.send(msg.set(value == HIGH 1));} ^ pump_cycle_time_2.5:68: error: expected '}' before 'else' else ^ pump_cycle_time_2.5:69: error: expected ')' before numeric constant { gw.send(msg.set(value = LOW 0)); ^ exit status 1 expected ')' before numeric constant This report would have more information with "Show verbose output during compilation" enabled in File > Preferences. [/code]
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • This topic is deleted!

    5
    0 Votes
    5 Posts
    44 Views

15

Online

11.9k

Users

11.2k

Topics

113.3k

Posts