pimatic / homeduino

Arduino library for home control
GNU General Public License v3.0
47 stars 40 forks source link

pir recognized as switch #9

Closed xCite1986 closed 9 years ago

xCite1986 commented 9 years ago

Hello.

My Name is Alex and i use a raspberry Pi B+ with 433mhz sender & reciever with pimatic and homeduino-plugin.

I'm now getting pilight-less with your plugin and my old+new intertechnos and weathersensors works fine. many thanks for your awesome work ;)

ill see your homeduino-plugin has 2 pir-protocolls (pir1, pir2) included and i would use one of them with this PIR-sensor:

http://www.importe-uzman.de//funkalarmanlagen-bewegungsmelder-kompatibel-zonen-anlage-p-4476.html?osCsid=0cd6b4f19f537ee2fd0a0afcf6a33f30

my problem was the rfcontroljs recognized the device as two-protocoll-switch, but i need them as pir

debug [pimatic-homeduino]: switch8: { systemcode: 18, programcode: 'A4', state: false } debug [pimatic-homeduino]: switch6: { systemcode: 9, programcode: 28, state: true } debug [pimatic-homeduino]: received: [ 170, 514, 5318 ] 01010110011001010110011001100101101010100101010102 debug [pimatic-homeduino]: data: "RF receive 170 514 5318 0 0 0 0 0 01010110011001010110011001100101101010100101010102"

I try to add following lines in my config - but useless and give me error outputs

{
  "id": "homeduino-pir",
  "name": "PIR",
  "class": "HomeduinoRFPir",
  "protocols": [
    {
      "name": "switch6",
      "options": {
        "systemcode": 9,
        "programcode": 28
      }
    }
  ],
  "resetTime": 6000
}

Debuglog: error [pimatic]: Error loading device homeduino-pir: "switch6" is not a pir protocol.

{
  "id": "homeduino-pir2",
  "name": "PIR2",
  "class": "HomeduinoRFSwitch",
  "protocols": [
    {
      "name": "switch6",
      "options": {
        "systemcode": 9,
        "programcode": 28
      }
    }
  ],
  "resetTime": 6000
}

Makes me a Switch in pimatic and Debuglog: error [pimatic]: Error loading device homeduino-pir: "switch6" is not a pir protocol.

Maybe you could help me with a new plugin for this type PIR-sensor?

Many thanks in advance and sorry for my bad english. -Greedings from Austria - Alex