Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • IR sender & Repeater combined help

    9
    0 Votes
    9 Posts
    5k Views
    A
    yes I am I also replaced libs to Iremote and have same problem basically as long as there is sendRaw command and incomingMessage in the same sketch, it will not work.... this seems like something wrong with incommingMessage, because send raw on itself works and I have tried both IRlibraries any suggestion? // Example sketch showing how to control physical relays. // This example will remember relay state even after power failure. #include <MySensor.h> #include <SPI.h> #include <IRLib.h> #define RELAY_1 3 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) unsigned int Signal_0_0[] = {4372,4416,528,1636,528,1640,524,1640,528,1640,524,560,524,556,524,1640,528,556,524,556,524,560,524,556,524,556,528,1636,528,1640,528,556,524,1640,528,556,524,556,524,556,528,556,524,556,528,552,528,1636,528,1640,528,1636,528,1640,528,1640,524,1640,528,1640,524,1640,528,556,524,556,528,556,524,556,524,560,524,556,528,552,528,552,528,556,524,1640,528,1636,528,1644,524,556,524,556,528,556,524,556,524,556,528,556,524,556,524,560,524,556,524,556,528,556,524,1640,524,1640,528,1640,528,556,524,556,524,560,524,556,524,556,528,556,524,556,524,556,528,1636,528,1640,528,556,524,556,528,552,528,1640,524,1640,528,556,524,5288,4376,4412,528,1640,524,1640,528,1640,524,1640,528,556,524,556,528,1636,528,556,524,560,524,556,524,556,528,556,524,1636,528,1640,528,556,524,1640,528,556,524,556,528,556,524,556,524,556,528,556,524,1640,528,1636,528,1640,528,1640,524,1640,528,1636,528,1640,528,1640,524,556,528,556,524,556,524,556,528,556,524,556,528,552,528,556,524,556,528,1636,528,1640,528,1636,528,556,528,556,524,556,524,556,528,556,524,556,528,556,524,556,524,556,528,556,524,556,528,1636,528,1640,528,1636,528,556,524,556,528,556,524,556,528,552,528,556,524,556,528,556,524,1640,528,1636,532,552,528,556,524,556,524,1640,528,1640,524,556,528}; //AnalysIR Batch Export (IRremote) - RAW unsigned int Signal_1_1[] = {4372,4416,524,1640,528,1640,528,1636,528,1640,528,556,524,556,524,1640,528,556,528,552,528,556,524,556,524,556,528,1636,528,1640,528,560,520,1640,528,556,524,556,524,556,528,556,524,556,524,560,524,1640,524,1640,528,1636,528,1640,528,1640,524,1640,528,1640,524,1640,528,556,524,556,532,552,524,556,524,556,528,556,524,556,528,552,528,556,524,1640,528,1640,524,1640,528,556,524,556,528,556,524,556,528,552,528,556,524,556,528,556,524,556,524,556,528,556,524,556,528,1636,528,1640,528,556,524,556,524,556,528,556,524,556,528,552,528,556,524,556,528,1636,528,1640,528,556,524,556,524,556,528,556,524,1640,528,556,524,5404,4372,4412,528,1640,528,1636,528,1640,528,1636,528,556,528,556,524,1640,524,556,528,556,524,556,528,556,524,556,524,1640,528,1636,528,556,528,1636,528,556,528,556,524,556,524,556,528,556,524,556,528,1636,528,1640,528,1636,528,1640,528,1636,528,1640,528,1636,528,1640,528,556,524,556,524,556,528,556,524,556,528,552,528,556,524,556,528,556,524,1640,528,1636,528,1640,528,552,528,556,524,556,528,556,524,556,528,556,524,556,524,556,528,556,524,556,528,552,528,556,524,1640,528,1636,528,556,528,552,528,556,524,556,528,556,524,556,528,552,528,556,524,1640,528,1640,524,556,528,556,524,556,528,552,528,1636,528,556,528}; //AnalysIR Batch Export (IRremote) - RAW int khz=38; int longs=295; IRsend irsend; MySensor gw; void setup() { // Initialize library and add callback for incoming messages gw.begin( incomingMessage , 30, true); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("IR Sensor", "1.0"); gw.present(RELAY_1, S_LIGHT); } void loop() { // Alway process incoming messages whenever possible gw.process(); } void incomingMessage(const MyMessage &message) { // We only expect one type of message from controller. But we better check anyway. if (message.type==V_LIGHT && message.sensor == 3) { int incomingRelayStatus = message.getInt(); if (incomingRelayStatus == 1) { irsend.IRsendRaw::send(Signal_1_1, longs, khz); // Vol up yamaha ysp-900 } else { irsend.IRsendRaw::send(Signal_0_0, longs, khz); // Vol down yamaha ysp-900 } } }
  • "req node id"

    13
    0 Votes
    13 Posts
    5k Views
    hekH
    @Ghydda Thanks for the feedback. Agree, hard to create a good navigation. Open for suggestions.
  • Servo issues - Weird things happening!!

    mysensors servo
    5
    0 Votes
    5 Posts
    5k Views
    M
    Just to let you know that I solved the issue. I found a library where you can control the speed and make sure it get to it's position. You can find it here: https://github.com/netlabtoolkit/VarSpeedServo I incorporated it in the Mysensor sketch and it works eventhoug it looks like it only goes like 90 degrees but it's enough for me : #include <MySensor.h> #include <SPI.h> #include <VarSpeedServo.h> // #include <Servo.h> #define SERVO_DIGITAL_OUT_PIN 3 #define SERVO_MIN 0 // Fine tune your servos min. 0-180 #define SERVO_MAX 180 // Fine tune your servos max. 0-180 #define DETACH_DELAY 900 // Tune this to let your movement finish before detaching the servo #define CHILD_ID 10 // Id of the sensor child MySensor gw; MyMessage msg(CHILD_ID, V_DIMMER); VarSpeedServo myservo; // create servo object to control a servo // a maximum of eight servo objects can be created // Servo myservo; // create servo object to control a servo // a maximum of eight servo objects can be created Sensor gw(9,10); unsigned long timeOfLastChange = 0; bool attachedServo = false; void setup() { // Attach method for incoming messages gw.begin(incomingMessage); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Servo", "1.0"); // Register all sensors to gw (they will be created as child devices) gw.present(CHILD_ID, S_COVER); // Request last servo state at startup gw.request(CHILD_ID, V_DIMMER); } void loop() { gw.process(); if (attachedServo && millis() - timeOfLastChange > DETACH_DELAY) { myservo.detach(); attachedServo = false; } } void incomingMessage(const MyMessage &message) { myservo.attach(SERVO_DIGITAL_OUT_PIN); attachedServo = true; if (message.type==V_DIMMER) { // This could be M_ACK_VARIABLE or M_SET_VARIABLE int val = message.getInt(); myservo.write(SERVO_MAX + (SERVO_MIN-SERVO_MAX)/100 * val,255,true); // sets the servo position 0-180 // Write some debug info Serial.print("Servo changed. new state: "); Serial.println(val); } else if (message.type==V_UP) { Serial.println("Servo UP command"); myservo.write(SERVO_MIN,255,true); gw.send(msg.set(100)); } else if (message.type==V_DOWN) { Serial.println("Servo DOWN command"); myservo.write(SERVO_MAX,255,true); gw.send(msg.set(0)); } else if (message.type==V_STOP) { Serial.println("Servo STOP command"); myservo.detach(); attachedServo = false; } timeOfLastChange = millis(); }
  • ethernet gateway compile problem

    5
    0 Votes
    5 Posts
    2k Views
    ferpandoF
    @hek version 1.0.6 ok, I added the include and compiled correctly. Thank you
  • 0;0;3;0;9;read: 10-10-0 s=1,c=1,t=0,pt=7,l=5:21.6 => Explanations

    3
    0 Votes
    3 Posts
    1k Views
    N
    I also see that message when I startup my gateway. It seems to be a log message : the gateway just ask the controller to log "hey, I'm ready !"
  • "req node id" problem

    nodeid
    2
    0 Votes
    2 Posts
    1k Views
    HeinzH
    I got it running again by clearing the eeprom of the gateway and downloading the sketch of the gateway again.
  • 1 Node with 2 Names Resolved !

    4
    0 Votes
    4 Posts
    2k Views
    5546dug5
    By implementing this eeprom fix my node issues were resolved. : )
  • Motion Sensing sketch which is also a repeater

    motion repeater sketch sensor
    5
    0 Votes
    5 Posts
    3k Views
    jeylitesJ
    Hey guys, I was justing wondering, is there a way to deactivate the motion sensor if not being used? Eg: My motion sensors are connected to Homeseer and they show up as sensors but I was wondering if I could have an ON / OFF control to deactivate or active the motion as needed.
  • Wiring Help

    mqtt broker gat gateway
    4
    0 Votes
    4 Posts
    2k Views
    hekH
    You're right. Updated codebender library just now to the most recent on github/master Not sure if codebender autodetects this if you already cloned it to your local account.
  • Vera to relays not working

    8
    0 Votes
    8 Posts
    4k Views
    tbowmoT
    I want a rigol too. But better not buy one, I have my trusty 60mhz Tektronix scope which is enough at the moment
  • Ethernet shield help

    ethernet wiznet check wires wiznet ethernetgateway help
    4
    0 Votes
    4 Posts
    3k Views
    B
    Ive also just tried it on an arduino Uno and im still getting check wires.
  • Switch on sensor locking/freezing Gateway!!

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Repeater and blinking leds [SOLVED]

    13
    0 Votes
    13 Posts
    5k Views
    ChaoticC
    @HarryDutch The comic is actually from XKCD if you click the image it should take you to the actual site.
  • Stabile Controller

    mqtt openhab serial
    9
    0 Votes
    9 Posts
    4k Views
    C
    @celonunes generally raspberry pi with serial usb but also you can see some mqtt logs. Same problem with mac os with serial usb. I also tried rpi uart pins for serial bu there is no logs for it. Maybe someone gives his Openhab dir i can understand better problem isnt related with hardware
  • Nothing on serial monitor on MySensor sketches

    18
    0 Votes
    18 Posts
    8k Views
    H
    Ok. My primary problem was the radios I purchased form Ebay weren't the correct type. I've purchased new ones. Still got some problems to work through but I'll put in a seperate thread. For others reading later: Other references to these radios: http://forum.mysensors.org/topic/878/no-debug-data-from-sensors-or-gateway-bad-radios http://forum.mysensors.org/topic/728/radio-setup-give-check-wires/17 And specifically mentioned on the troubleshooting page as well.
  • 0 Votes
    8 Posts
    4k Views
    A
    And dont forget to enable SPI in the PI config tool.
  • VeraEdge/UI7 and Gateway

    10
    0 Votes
    10 Posts
    4k Views
    K
    It's a bit strange, because my relay works fine when I have the Ethernet gateway terminal window open from the IDE. Before I open the window the relay did not work, but just open it - ask Vera to send command, and the relay works!
  • compiling issue with MYSBootloader.

    6
    0 Votes
    6 Posts
    3k Views
    tekkaT
    @vikasjee Moving CSN and CE to PORTA should work - do not forget to set DDRA accordingly.
  • Gateway on Arduino Mega 2560

    mega 2560
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Newbie question : how to toggle a led with MQTT

    2
    0 Votes
    2 Posts
    2k Views
    XanderX
    at 1) The RelaisActor sketch works out of the box. There is nothing to add. (I think :-) ) at 2) You are right. I don't know "MQTTLens" (I use MQTTfx) but it should be another Input Field for the payload. "1" means Relais on, "0" means off.

14

Online

11.7k

Users

11.2k

Topics

113.2k

Posts