Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homeduino rolling1 value wrong. #78

Open
WimUtTwente opened this issue Jan 26, 2017 · 2 comments
Open

Homeduino rolling1 value wrong. #78

WimUtTwente opened this issue Jan 26, 2017 · 2 comments

Comments

@WimUtTwente
Copy link

WimUtTwente commented Jan 26, 2017

After filling in the data #edit-device-page

rolling1
codeOn 100101111011010000010010,100111001110101110010010,100101100000111110100010,100100110011000000100010
codeOff 100110000010101000110010,100110101101010101000010,100100101001001001110010,100111101000000110110010

Value wrong:

    {
      "class": "HomeduinoRFSwitch",
      "protocols": [
        {
          "name": "rolling1",
          "options": {
            "codeOn": "100101111011010000010010,100111001110101110010010,100101100000111110100010,100100110011000000100010",
            "codeOff": "100110000010101000110010,100110101101010101000010,100100101001001001110010,100111101000000110110010"
          }
        }
      ],
      "id": "quigg3-4",
      "name": "quigg3-4"
    }

Must be:

    {
      "class": "HomeduinoRFSwitch",
      "protocols": [
        {
          "name": "rolling1",
          "options": {
            "codeOn": [
              "100101111011010000010010",
              "100111001110101110010010",
              "100101100000111110100010",
              "100100110011000000100010"
            ],
            "codeOff": [
              "100110000010101000110010",
              "100110101101010101000010",
              "100100101001001001110010",
              "100111101000000110110010"
            ]
          }
        }
      ],
      "id": "quigg3-4",
      "name": "Camara noord"
    }

Already thanks for the adjustment.
Wim.

@mwittig
Copy link
Contributor

mwittig commented Jan 26, 2017

I think this is an issue with protocolInfo as part of the rolling1 protocol. See https://github.com/pimatic/rfcontroljs/blob/master/src/protocols/rolling1.coffee which defines codeOn and codeOff as string. @Icesory has implemented this, but he hasn't been around for a long time. I can perhaps look into this in about two weeks from now.

@Icesory
Copy link
Contributor

Icesory commented Jan 27, 2017

I think @mwittig is right. I was not involved in the Development of the Device editing system. So there can be some more failures across the protocols. For validation checks a string was also a array of strings. I don´t know the new systems at all, because a haven´t run a pimatic instance since a year or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants