Navigation

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

    foggy

    @foggy

    1
    Reputation
    10
    Posts
    335
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    foggy Follow

    Best posts made by foggy

    • RE: Using a Gateway as a node?

      Many thanks. I can wait till it is published for newbies. Just wanted to know if it was possible.

      Best wishes.

      posted in Development
      foggy
      foggy

    Latest posts made by foggy

    • RE: Using a Gateway as a node?

      Many thanks. I can wait till it is published for newbies. Just wanted to know if it was possible.

      Best wishes.

      posted in Development
      foggy
      foggy
    • RE: Using a Gateway as a node?

      Hi all,

      Any comments would be appreciated.

      Best wishes.

      posted in Development
      foggy
      foggy
    • Using a Gateway as a node?

      Hi All,

      I am not really sure if I have misunderstood, but I think I read somewhere that it is possible to do the above with a single Arduino.

      I have created an IR sensor with two individual Arduino's one acting as the Gateway and one acting as the IR Sensor node.

      As this is all I want at the moment - would it be possible to integrate this functionality into one Arduino.

      Questions:
      Is this possible?

      I am using 1.5 at the moment from the forum. Can this be used or do I need to move up to 2.0?

      I am not a natural programmer. Could any one point me to an "easy" sketch so I can understand how to combine the two sketches - possibly some thing easy like a simple button LED example.

      For info. I am using an Uno for my project.

      Best wishes.

      James.

      posted in Development
      foggy
      foggy
    • RE: IRSensor

      I thought I would close this. Just as well that my Google skills are better than my programming skills.

      This sketch helped me out and resolved my issues.

      https://www.domoticz.com/forum/viewtopic.php?f=42&t=7648&start=20#p53663
      by gizmocuz. Thank you.

      Best wishes.

      James.

      posted in My Project
      foggy
      foggy
    • RE: IRSensor

      @sundberg84
      Thank you. I thought that might be the case. Hence my second original question

      I can see that some of the code has been commented out. Do I need to uncomment some of this (or all of it) in order for it to decode the IR button. I notice that some of it has // and some of it has /.../ Not really sure if I am supposed to uncomment all of it or just some.

      // Dumps out the decode_results structure.
      // Call this after IRrecv::decode()
      // void * to work around compiler issue
      //void dump(void *v) {
      //  decode_results *results = (decode_results *)v
      /*void dump(decode_results *results) {
        int count = results->rawlen;
        if (results->decode_type == UNKNOWN) {
          Serial.print("Unknown encoding: ");
        } 
        else if (results->decode_type == NEC) {
          Serial.print("Decoded NEC: ");
        } 
        else if (results->decode_type == SONY) {
          Serial.print("Decoded SONY: ");
        } 
        else if (results->decode_type == RC5) {
          Serial.print("Decoded RC5: ");
        } 
        else if (results->decode_type == RC6) {
          Serial.print("Decoded RC6: ");
        }
        else if (results->decode_type == PANASONIC) {	
          Serial.print("Decoded PANASONIC - Address: ");
          Serial.print(results->panasonicAddress,HEX);
          Serial.print(" Value: ");
        }
        else if (results->decode_type == JVC) {
           Serial.print("Decoded JVC: ");
        }
        Serial.print(results->value, HEX);
        Serial.print(" (");
        Serial.print(results->bits, DEC);
        Serial.println(" bits)");
        Serial.print("Raw (");
        Serial.print(count, DEC);
        Serial.print("): ");
      
        for (int i = 0; i < count; i++) {
          if ((i % 2) == 1) {
            Serial.print(results->rawbuf[i]*USECPERTICK, DEC);
          } 
          else {
            Serial.print(-(int)results->rawbuf[i]*USECPERTICK, DEC);
          }
          Serial.print(" ");
        }
        Serial.println("");
      }
      */
      

      Can you advise what I should uncomment?
      I presume once I have got the correct code from the serial monitor and running above. I can then enter it here

      void incomingMessage(const MyMessage &message) {
        // We only expect one type of message from controller. But we better check anyway.
        if (message.type==V_LIGHT) {
           int incomingRelayStatus = message.getInt();
           if (incomingRelayStatus == 1) {
            irsend.send(NEC, 0x1EE17887, 32); // Vol up yamaha ysp-900
           } else {
            irsend.send(NEC, 0x1EE1F807, 32); // Vol down yamaha ysp-900
           }
           // Start receiving ir again...
          irrecv.enableIRIn(); 
        }
      }
      

      This will then allow Domoticz to create the device switch.

      Thank you for any help you can give.

      Best wishes.

      James

      posted in My Project
      foggy
      foggy
    • RE: IRSensor

      Yes - The gateway is shown under Hardware. I am using it with other nodes Temp sensors.

      I can also see the IR sensor in the Domoticz log

      2016-02-05 07:51:23.671 MySensors: Node: 14, Sketch Name: IR Sensor
      2016-02-05 07:51:23.702 MySensors: Node: 14, Sketch Version: 1.0
      

      I just can't find a device I can add.

      Best wishes.

      James.

      posted in My Project
      foggy
      foggy
    • RE: IRSensor

      Thank you. I don't think it is broken. If I press a key on the remote I can see some output in the serial monitor. I just don't see any device in domoticz.

      posted in My Project
      foggy
      foggy
    • IRSensor

      Hi All,

      I may have misunderstood the use case here.
      Following the build http://www.mysensors.org/build/ir

      I have connected only an IR Receive Sensor to Power 5V Grnd & Pin 8.
      IR Transmitter is not connected

      What I am trying to achieve is to press a button on a remote and then have domoticz act upon it through a script.

      The Sensor serial monitor appears to be telling me that it is communicating with the Gateway, at least I don't see "Fail" anywhere. I can also see reference to IRSensor in the Domoticz log. So far so good.

      A couple of questions
      However I don't appear to see any device in the Domoticz list that I can add. Have I missed a step?

      I can see that some of the code has been commented out. Do I need to uncomment some of this (or all of it) in order for it to decode the IR button. I notice that some of it has // and some of it has /.../ Not really sure if I am supposed to uncomment all of it or just some.

      Any help is greatly appreciated.

      Best Wishes.

      James.

      posted in My Project
      foggy
      foggy
    • RE: Matrix Membrane keypad

      @sundberg84

      Thank you. That makes sense.

      For the moment I'll use the timer in Domoticz as a quick fix. My programming skills are 0 at the moment. However I will google to see if I can figure your way out.

      Best wishes.

      James

      posted in Domoticz
      foggy
      foggy
    • Matrix Membrane keypad

      Hi All,

      New to both Domoticz and MySensors.
      I have set up a node using http://forum.mysensors.org/topic/2001/how-to-make-a-simple-cheap-scene-controller-with-video
      All appears to working well.
      I can see the new node in Domoticz logs and when I press each key I can see an entry.

      2016-01-31 19:17:41.201 New sensors allowed for 5 minutes...
      2016-01-31 19:17:50.916 MySensors: Node: 14, Sketch Name: Scene Controller
      2016-01-31 19:17:50.948 MySensors: Node: 14, Sketch Version: 1.0
      2016-01-31 19:17:58.917 (MySensors) Lighting 2 (Unknown)
      2016-01-31 19:18:03.023 (MySensors) Lighting 2 (Unknown)
      2016-01-31 19:18:07.279 (MySensors) Lighting 2 (Unknown)
      2016-01-31 19:18:12.338 (MySensors) Lighting 2 (Unknown)
      

      I then add them as devices and change the names Scene1, Scene2, etc.

      However from then onwards nothing happens when I press the keypad. I don't see any activity in the log.

      I suspect that Lighting 2 AC On, Level: 100 % are not the correct parameters for what I am using as I would not have thought that an Off/On switch was appropriate for a press switch.

      However I have tried some other types of switches, tried changing from On/Off to "Push On" but I don't appears to making any progress.

      Can any one help guide me?

      What I am trying to do is - Once Domoticz registers the appropriate switch being pressed I will have it call a script.

      Best wishes.

      James.

      posted in Domoticz
      foggy
      foggy