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

Add WB-MIR v3 template, update WB-MIR v2 template #825

Merged
merged 50 commits into from
Jan 15, 2025

Conversation

ad7718
Copy link
Contributor

@ad7718 ad7718 commented Oct 24, 2024

-Старый шаблон задепрекейтил
-Добавил новый шаблон v.2 с поддержкой нажатий на jinja
-Добавил новый шаблон v.3 на jinja
-Добавил поддержку кнопок
-Убрал subdevice, 1wire/input часть сделал как в шаблоне "config-wb-m1w2-buttons.json.jinja", имена каналов 1wire/discrete input оставил такими же как в MIR v.2

Summary by CodeRabbit

  • New Features
    • Introduced new templates for WB-MIR v.2 with button support and WB-MIR v.3.
  • Deprecation
    • Deprecated the WB-MIR v.2 template.
  • Configuration Updates
    • Added a deprecated property to the WB-MIR v.2 configuration.
    • New configuration templates for WB-MIR v.2 with buttons and WB-MIR v.3 are now available.

@ad7718 ad7718 requested review from a team, KraPete and sikmir as code owners October 24, 2024 03:10
debian/changelog Outdated Show resolved Hide resolved
Copy link
Contributor

@pgasheev pgasheev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Рановато аппрув

  1. имена топиков новых шаблонов должны быть в соответствии с инструкцией
  2. тесты не проходят

@KraPete
Copy link
Contributor

KraPete commented Oct 24, 2024

Рановато аппрув

1. имена топиков новых шаблонов должны быть в соответствии с инструкцией

2. тесты не проходят
  1. Мы сломаем обратную совместимость со старым шаблоном. У людей уже завязано всё на старые имена топиков, они выбрали новый шаблон, всё развалилось

@pgasheev
Copy link
Contributor

  1. Мы сломаем обратную совместимость со старым шаблоном. У людей уже завязано всё на старые имена топиков, они выбрали новый шаблон, всё развалилось

Обсудили в чатике, решили имена топиков оставить текущими, т.к. это новая версия устройства, а не не новое устройство

@ad7718 ad7718 requested a review from pgasheev October 24, 2024 11:24
Copy link
Contributor

@pgasheev pgasheev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У меня ещё есть глобальный вопрос. Тут я не увидел, чтобы было указано, что новые функции (нажатия) доступны с версии такой-то. И для v2 её надо указывать, а для v3 - нет. Может, всё-таки, для них сделать разные шаблоны? Обсуди с документацией и примите решение

templates/config-wb-mir_buttons.json.jinja Outdated Show resolved Hide resolved
@ad7718 ad7718 requested a review from KraPete January 15, 2025 07:20
@ad7718
Copy link
Contributor Author

ad7718 commented Jan 15, 2025

для MIR v.2 и v.3 упрощены названия элементов управления имена каналов осталис прежними. Для v.3 убрана функция включения редактирования ROM, отключены каналы записи и воспроизведения из RAM, добавлен регистр для отображения размера команды в RAM

debian/changelog Outdated
@@ -27,6 +35,7 @@ wb-mqtt-serial (2.152.1) stable; urgency=medium
* WB-MAI6: add Internal 5V Bus Voltage channel

-- Ilia Skochilov <ilia.skochilov@wirenboard.com> Fri, 20 Dec 2024 17:13:00 +0300
>>>>>>> origin/master
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лишняя строка

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

убрал

templates/config-wb-mir_v2_buttons.json.jinja Show resolved Hide resolved
templates/config-wb-mir_v2_buttons.json.jinja Outdated Show resolved Hide resolved
templates/config-wb-mir_v3.json.jinja Outdated Show resolved Hide resolved
@ad7718 ad7718 requested a review from KraPete January 15, 2025 12:42
@ad7718 ad7718 merged commit 06fd185 into master Jan 15, 2025
13 checks passed
@ad7718 ad7718 deleted the feature/add_wb-mir-v3_template branch January 15, 2025 13:14
This was referenced Jan 17, 2025
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

Successfully merging this pull request may close these issues.

4 participants