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

проблемы с wb-rules на bullseye/testing #9

Open
goosecrew opened this issue Mar 1, 2023 · 1 comment
Open

проблемы с wb-rules на bullseye/testing #9

goosecrew opened this issue Mar 1, 2023 · 1 comment
Assignees

Comments

@goosecrew
Copy link
Contributor

Добрый день!
Сегодня обновился на bullseye/testing, отвалилось управление wb-led с кнопки.
В логах вижу такое:

мар 01 19:00:14 wirenboard-AFYS6PYF wb-rules[1791]: ERROR: control wb-led_25/Channel 2 SetValue() error: can't convert control value 'true' (type bool) to datatype '0'
мар 01 19:00:14 wirenboard-AFYS6PYF wb-rules[1791]: ERROR: [rule error] failed to SetValue for unexisting control wb-led_25/Channel 3: true

для управления использую wb-rules и wb-press-actions.js, до обновления всё работало

вот как пользуюсь:


var commands = [

    /* тёмный туалет снаружи */
    //вертикаль + душ
    { btnControl: "wb-mr6c_129/Input 6 Single Press Counter", actionControl: "wb-led_25/Channel 2", actionType: "toggle" }, 
    { btnControl: "wb-mr6c_129/Input 6 Single Press Counter", actionControl: "wb-led_25/Channel 3", actionType: "toggle" },  
  ];

pa.init(commands);

mqtt-топики на месте, вручную управляются норм.
а также этим модулем спокойно управляю модулями wb-mrgbw, то есть проблема только с wb-led.

@goosecrew
Copy link
Contributor Author

goosecrew commented Mar 1, 2023

также не работает яркость, вот как матерится:

мар 01 19:27:50 wirenboard-AFYS6PYF wb-rules[1791]: ERROR: [rule error] failed to SetValue for unexisting control wb-led_25/Channel 2 Brightness: 1
мар 01 19:27:50 wirenboard-AFYS6PYF wb-rules[1791]: ERROR: [rule error] failed to SetValue for unexisting control wb-led_25/Channel 3 Brightness: 1
мар 01 19:27:50 wirenboard-AFYS6PYF wb-rules[1791]: ERROR: [rule error] failed to SetValue for unexisting control wb-led_25/Channel 2 Brightness: 1
мар 01 19:27:50 wirenboard-AFYS6PYF wb-rules[1791]: ERROR: [rule error] failed to SetValue for unexisting control wb-led_25/Channel 3 Brightness: 1

а вот как настроено:
{ btnControl: "wb-mr6c_129/Input 6 Long Press Counter", stateControl: "wb-mr6c_129/Input 6", actionControl: "wb-led_25/Channel 2 Brightness", actionType: "inc", maxValue: 100 },
    { btnControl: "wb-mr6c_129/Input 6 Long Press Counter", stateControl: "wb-mr6c_129/Input 6", actionControl: "wb-led_25/Channel 3 Brightness", actionType: "inc", maxValue: 100 },
    { btnControl: "wb-mr6c_129/Input 6 Shortlong Press Counter", stateControl: "wb-mr6c_129/Input 6", actionControl: "wb-led_25/Channel 2 Brightness", actionType: "dec", minValue: 0 },
    { btnControl: "wb-mr6c_129/Input 6 Shortlong Press Counter", stateControl: "wb-mr6c_129/Input 6", actionControl: "wb-led_25/Channel 3 Brightness", actionType: "dec", minValue: 0 },```

@aadegtyarev aadegtyarev self-assigned this Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants