pimatic / rfcontroljs

nodejs modul with protocol support for different 433mhz switches and weather stations for the RFControl Arduino library.
GNU General Public License v3.0
49 stars 54 forks source link

Flamingo ABR400R #9

Closed incmve closed 10 years ago

incmve commented 10 years ago

Hi,

I used this device under pilight with the protocol elro_hc, in pimatic it doens't seem to work. here is a piece of the log http://pastebin.com/PA1j0v3K

and my device

{
      "id": "beneden-buitenlicht",
      "name": "Buitenlamp",
      "class": "HomeduinoRFSwitch",
      "protocol": "switch3",
      "protocolOptions": {
        "houseCode": 8,
        "unitCode": 27
      }
sweetpi commented 10 years ago

In the output it is: houseCode: 17, unitCode: 16 Did you try with that?

incmve commented 10 years ago

Lol I should have mentioned that I used a different remote thats why the house and unit code don't match the config.

The receivers work in pilight with the house and unit codes so I used the same codes in pimatic, what I find strange is that I get all protocols in the debug log.

18:45:33.689 [pimatic-homeduino] debug: received: [ 300, 995, 10145 ] 01010110011001100101010101100110011001100101011002
18:45:33.723 [pimatic-homeduino] debug: switch2:  { houseCode: 17, unitCode: 16, state: true }
18:45:33.756 [pimatic-homeduino] debug: switch3:  { houseCode: 17, unitCode: 16, state: false }
18:45:33.788 [pimatic-homeduino] debug: switch4:  { unit: 17, id: 16, state: false }
18:45:33.821 [pimatic-homeduino] debug: switch5:  { id: 962474, unit: 0, all: true, state: false }
18:45:33.852 [pimatic-homeduino] debug: pir1:  { unit: 17, id: 16, presence: true }
incmve commented 10 years ago

I changed the dipswitches to another housecode and that seems to work..

sweetpi commented 10 years ago

I don't know if the houseCode in homeduino is the same as the houseCode in pilight.

You get all matching protocols in the output, switch2 - switch5 are all very similar because they use the same cips. Just the encoding of the information is different and so all possible ways to decode are emitted.

incmve commented 10 years ago

Got it, codes aren't the same as pilight that was my assumption ;)

Switch2 is the right one and is working as it should :+1: Switch3 also works but is inverted.