• E
    ExelJ

    Thank you very much for your help.

    I used the Chrome record function to get the curl commando. At the moment it seems to be ok. Detailed test will follow…

    posted in Feature Requests read more
  • E
    ExelJ

    Hi,

    is there any possibility to use pimatic to click a button on a website.
    I use a wifi-cam which needs a reboot after some time. The webgui of the cam has a button to do this.

    I found no suitable plugin. Any idea?

    Otherwise the shell plugin could be used to start a script (bash or perl, …). Anybody with a suitable script?

    posted in Feature Requests read more
  • E
    ExelJ

    I did some tests with thr PIR. The protocol works but the PIR has only a small range for rf. Behind one wall and a distance of 5 m the signal can be detected only sporadically. Using an antenna outside of the pir cover leads to higher possible distances. The results are not really satisfying…

    Of course the code for PIR detection via homeduino is not very smart. I only use one PIR so it works. I’m sure one can find out more about the RFcode using more than one device. It should be possible to find IDs and so on…

    Caused by the low rf distance, i wont use any other device of this PIR…

    posted in RF Protocols read more
  • E
    ExelJ

    Hello,

    the PIR is not tested in detail. It should be mounted outside, then i can see how good it works. Unfortunatly i only can work on implementation on weekend…

    First tests showed that the Pir reacts on movement. It has a red LED which shows that movement was detected…

    I can give details when the Pir was mounted…

    @leader21 The link could be helpful for creating new protocols. I solved the problem by try and error ;)

    posted in RF Protocols read more
  • E
    ExelJ

    I solved the problem. Here is the code for the PIR:

    module.exports = function(helper) {
      var binaryToPulse, protocolInfo, pulsesToBinaryMapping;
      pulsesToBinaryMapping = {
        '10': "1",
        '01': "0",
        '21': "",
        '13' : ""
      };
      binaryToPulse = {
        '0': '01',
        '1': '10'
      };
      return protocolInfo = {
        name: 'pir7',
        type: 'pir',
        values: {
          id: {
            type: "number"
          },
          presence: {
            type: "boolean"
          }
        },
        brands: ["Koenig electronics SEC-ASMS10"],
        pulseLengths: [664, 1360, 4008,62320],
        pulseCounts: [136],
        decodePulses: function(pulses) {
          var binary, result;
          binary = helper.map(pulses, pulsesToBinaryMapping);
          return result = {
            id: 1,
            presence: true
          };
        }
      };
    };
    

    The name of the RF-Pir is SEC-ASMS10 of Koenig electronics. For use edit a known pirX.js or insert pir7.js in the controller.js. The id is set to 1 strict…

    posted in RF Protocols read more
  • E
    ExelJ

    Hello,
    a have a PIR-RF device. The rf-signal is recognized by the Homeduino. The code is:

    13:57:09.064 [pimatic-homeduino] debug: received: [ 664, 1360, 4008, 61660 ] 2110211010101001 1001010110101001 0101100110010101 01010110010101011 0101001010101010 1101010100101011 0101001100101011 0100110100101010 1010113
    13:57:09.654 [pimatic-homeduino] debug: received: [ 664, 1360, 4024, 61660 ] 2110211010101001 1001010110101001 0101100110010101 01010110010101011 0101001010101010 1101010100101011 0101001100101011 0100110100101010 1010113
                                              
    13:57:34.146 [pimatic-homeduino] debug: received: [ 664, 1360, 4008, 61672 ] 2110211010101001 1001010110101001 0101100110011001 01011001010101101 0100101010101010 1101001100110101 0101001100101011 0100110100101010 1010113
    13:57:34.790 [pimatic-homeduino] debug: received: [ 664, 1360, 4024, 61668 ] 2110211010101001 1001010110101001 0101100110011001 01011001010101101 0100101010101010 1101001100110101 0101001100101011 0100110100101010 1010113
    

    I tried to change a protocol. So a contact sensor (pir sends status with moving true/false) is used:

    module.exports = function(helper) {
      var binaryToPulse, protocolInfo, pulsesToBinaryMapping;
      pulsesToBinaryMapping = {
        '10': '1',
        '01': '0',
        '21': ''
      };
      binaryToPulse = {
        '0': '10',
        '1': '01'
      };
      return protocolInfo = {
        name: 'contact4',
        type: 'contact',
        values: {
          id: {
            type: 'number'
          },
          contact: {
            type: 'boolean'
          },
          lowBattery: {
            type: 'boolean'
          }
        },
        brands: ['GS-IWDS07'],
        pulseLengths: [664, 1360, 4008, 61672],
        pulseCount: 135,
        decodePulses: function(pulses) {
          var binary, result;
          binary = helper.map(pulses, pulsesToBinaryMapping);
          return result = {
            id: "1",
            contact: true,  --> I will change this later to the correct binary position...
            lowBattery: false
          };
        }
      };
    };
    

    The pulse length and pulse count was changed according the pulse image above. But homeduino could not recongnize the protocol. I looked at controller.js. The protocol should be recognized. The pulse count is ok and for the pulse lengths 40% deviation is allowed.

    What is wrong? Anything to change?

    posted in RF Protocols read more

Looks like your connection to pimatic forum was lost, please wait while we try to reconnect.