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

switch 4: Is the State inverted? #15

Closed Icesory closed 10 years ago

Icesory commented 10 years ago

I have a Düwi Terminal to control some Lights. In pimatic this is the switch4 protocol. But for me the protocol is inverted. On is off and off is on. Can some one confirm this?

sweetpi commented 10 years ago

switch2 is the same like switch4 but with inverted state. So you should be able to use switch2 :)

Icesory commented 10 years ago

Hmm it is not exact the same. With switch2 i can only switch off and not on. It is realy strange

sweetpi commented 10 years ago

What hardware do you have?

Icesory commented 10 years ago

Arduino Nano with Homeduino and the cheap 433mhz kit (~2$)

And this switch http://www.intertechno.at/produkte/empfaenger/schalter/ITE-1000.html

Icesory commented 10 years ago

i dont know what is wrong but i have tested it again and switch4 works fine but inverse. switch2 can only switch off the lamp

    {
      "id": "lampeschalafzimmer",
      "name": "Deckenlicht",
      "class": "HomeduinoRFSwitch",
      "protocol": "switch4",
      "protocolOptions": {
        "id": 14,
        "unit": 31
      }
    },
    {
      "id": "lampeschalafzimmer2",
      "name": "Deckenlicht2",
      "class": "HomeduinoRFSwitch",
      "protocol": "switch2",
      "protocolOptions": {
        "houseCode": 31,
        "unitCode": 14
      }
    },

i have copied the buckets from switch4 to switch2 but it is the same. Is it possible, that the fixed in switch4 is the key.

sweetpi commented 10 years ago

You are right. Sorry I wasn't sure if switch 4 is really wrong, because I didn't know if you use it with the intertechno units. It was also strange that the pilight wiki seems to be inconsistent: http://wiki.pilight.org/doku.php/arctech_switch_old

Unit: 0 till 5 (inversed) ID: 6 till 10 (inversed) Fixed: 11 (always 0) State: 12 (inversed)

But:

Example: Unit: 0 ID: 4 Fixed: always 0 State: On 00000 00100 0 1

I fixed it. Still needs to be updated in homeduino...

Icesory commented 10 years ago

It's not the first time I see a inconsistent documentation on pilight.org

But is there not a other people who use the switch4 protocol?

sweetpi commented 10 years ago

Lets hope that it is inversed for all these people. :)