Skip to content

Commit

Permalink
WB-LED template: fixes around switch mode (#861)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Nikolay Korotkiy <sikmir@disroot.org>
  • Loading branch information
pgasheev and sikmir authored Jan 31, 2025
1 parent 4b9342b commit d296e71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
wb-mqtt-serial (2.154.2) stable; urgency=medium

* WB-LED template: fix default value for switch mode actions ('off' for switch off; 'on' for switch on)
* WB-LED template: fix missed W4 channel in switch mode actions for RGB+W mode

-- Pavel Gasheev <pavel.gasheev@wirenboard.com> Thu, 30 Jan 2025 09:46:39 +0300

wb-mqtt-serial (2.154.1) stable; urgency=medium

* WB-MAP6S fw2: add peaks registers
Expand Down
6 changes: 3 additions & 3 deletions templates/config-wb-led.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
"order": {{in_num}},
"address": {{736 + (loop.index0 * 16) + in_num - 1}},
"reg_type": "holding",
"default": 0,
"default": {{ (off_on == "on") | int }},
"condition": "(input_{{in_num}}_mode==1)",
"enum": [0, 1, 2],
"enum_titles": [
Expand All @@ -377,7 +377,7 @@
[0, 1, 2, 9, 100],
[0, 5, 9, 100],
[0, 8, 9, 100],
[0, 10, 100],
[0, 10, 4, 100],
[0, 7, 100]
] -%}
{% set enum_switch_non_all = [
Expand All @@ -390,7 +390,7 @@
[0, 1, 2, 9],
[0, 5, 9],
[0, 8, 9],
[0, 10],
[0, 10, 4],
[0, 7]
] -%}
{% set action_switch_code = [0, 100, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] -%}
Expand Down

0 comments on commit d296e71

Please sign in to comment.