Skip to content

Commit

Permalink
add translation and order channels (#842)
Browse files Browse the repository at this point in the history
* add translation and order channels

* add changelog

* fix changelog
  • Loading branch information
AndreyKsenofontov authored Dec 5, 2024
1 parent 8488a6a commit 79b5993
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 68 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wb-mqtt-serial (2.149.2) stable; urgency=medium

* Add translations for template BHT-6000

-- Andrey Ksenofontov <andrey.ksenofontov@wirenboard.com> Thu, 05 Dec 2024 14:15:00 +0300

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

* Add port name to logs
Expand Down
155 changes: 87 additions & 68 deletions templates/config-bht-6000-series.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,88 @@
{
"device_type": "BHT-6000 Series",
"group": "g-thermostat",
"device": {
"name": "BHT-6000 Series",
"id": "bht-6000-series",
"channels": [
{
"name": "Power",
"reg_type": "holding",
"address": "0x00",
"type": "switch",
"format": "s16"
},
{
"name": "Lock buttons",
"reg_type": "holding",
"address": "0x06",
"type": "switch",
"format": "s16"
},
{
"name": "Temperature from internal sensor",
"reg_type": "holding",
"address": "0x01",
"type": "temperature",
"format": "s16",
"scale": 0.1,
"readonly": true
},
{
"name": "Weekly program setting temperature",
"reg_type": "holding",
"address": "0x05",
"type": "temperature",
"format": "s16",
"type": "range",
"scale": 0.1,
"min": 5,
"max": 35
},
{
"name": "Heating status",
"reg_type": "holding",
"address": "0x03",
"type": "switch",
"format": "s16",
"readonly": true
},
{
"name": "Manual mode",
"reg_type": "holding",
"address": "0x02",
"type": "switch",
"format": "s16"
},
{
"name": "Setting temperature",
"reg_type": "holding",
"address": "0x04",
"type": "range",
"format": "s16",
"scale": 0.1,
"min": 5,
"max": 35
}
]
}
}
"device_type": "BHT-6000 Series",
"group": "g-thermostat",
"device": {
"name": "BHT-6000 Series",
"id": "bht-6000-series",
"channels": [
{
"name": "Power",
"reg_type": "holding",
"address": "0x00",
"type": "switch",
"format": "s16",
"on_value": 1,
"off_value": 0
},
{
"name": "Temperature from internal sensor",
"reg_type": "holding",
"address": "0x01",
"type": "temperature",
"format": "s16",
"scale": 0.1,
"readonly": true
},
{
"name": "Manual mode",
"reg_type": "holding",
"address": "0x02",
"type": "switch",
"format": "s16",
"on_value": 1,
"off_value": 0
},
{
"name": "Heating status",
"reg_type": "holding",
"address": "0x03",
"type": "switch",
"format": "s16",
"readonly": true,
"on_value": 1,
"off_value": 0
},
{
"name": "Setting temperature",
"reg_type": "holding",
"address": "0x04",
"type": "range",
"format": "s16",
"scale": 0.1,
"min": 5,
"max": 35
},
{
"name": "Weekly program setting temperature",
"reg_type": "holding",
"address": "0x05",
"format": "s16",
"type": "range",
"scale": 0.1,
"min": 5,
"max": 35
},
{
"name": "Lock buttons",
"reg_type": "holding",
"address": "0x06",
"type": "switch",
"format": "s16",
"on_value": 1,
"off_value": 0
}
],
"translations": {
"ru": {
"BHT-6000 Series": "Термостат BHT-6000 Series",
"Power": "Включение",
"Temperature from internal sensor": "Температура внутреннего датчика",
"Manual mode": "Ручной режим",
"Heating status": "Статус нагрева",
"Setting temperature": "Настройка температуры",
"Weekly program setting temperature": "Установка температуры для недельной программы",
"Lock buttons": "Блокировка кнопок"
}
}
}
}

0 comments on commit 79b5993

Please sign in to comment.