Navigation

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

    Topics created by alexeinz

    • alexeinz

      IR sender & Repeater combined help
      Troubleshooting • • alexeinz  

      9
      0
      Votes
      9
      Posts
      4524
      Views

      alexeinz

      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 } } }
    • alexeinz

      MQTT gateway - Openhab & Mosquitto
      OpenHAB • mqtt openhab mosquitto broker • • alexeinz  

      4
      0
      Votes
      4
      Posts
      5225
      Views

      alexeinz

      @alexeinz figured it out, apparently had to add experimental and get latest mosquitto for the conf file to work correctly , now the bridge is working perfectly --- broker.conf file in /etc/mosquitto/conf.d the topics coming from gw will appear under sensor/# on mosquitto connection MMQTTtoSensor address 192.168.1.234 <-gw ip clientid MyMQTT cleansession true notifications true topic # in 2 sensor/ MyMQTT/
    • alexeinz

      Help with communication and debug output
      Troubleshooting • nano communication debug mini pro • • alexeinz  

      1
      0
      Votes
      1
      Posts
      994
      Views

      No one has replied