-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/int 192 add bht 006 template (#841)
* add template * add tests * format tabulation * add on_value\off_value to type switch * add changelog * add units to channel * fix translations
- Loading branch information
1 parent
79b5993
commit a026e37
Showing
3 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
"device_type": "BHT-006 Series", | ||
"group": "g-thermostat", | ||
"device": { | ||
"name": "BHT-006 Series", | ||
"id": "bht-006-series", | ||
"channels": [ | ||
{ | ||
"name": "power_status", | ||
"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": "value", | ||
"units": "deg C", | ||
"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", | ||
"units": "deg C", | ||
"format": "s16", | ||
"scale": 0.1, | ||
"min": 5, | ||
"max": 35 | ||
}, | ||
{ | ||
"name": "weekly_program_setting_temperature", | ||
"reg_type": "holding", | ||
"address": "0x05", | ||
"format": "s16", | ||
"type": "range", | ||
"units": "deg C", | ||
"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": { | ||
"en": { | ||
"power_status": "Power Status", | ||
"temperature_from_internal_sensor": "Temperature From Internal Sensor", | ||
"manual_mode": "Manual Mode", | ||
"heating_status": "Heating Status", | ||
"setting_temperature": "Setting Temperature", | ||
"weekly_program_setting_temperature": "Weekly Program Setting Temperature", | ||
"lock_buttons": "Lock Buttons" | ||
}, | ||
"ru": { | ||
"BHT-006 Series": "Термостат BHT-006 Series", | ||
"power_status": "Включение", | ||
"temperature_from_internal_sensor": "Температура внутреннего датчика", | ||
"manual_mode": "Ручной режим", | ||
"heating_status": "Статус нагрева", | ||
"setting_temperature": "Настройка температуры", | ||
"weekly_program_setting_temperature": "Установка температуры для недельной программы", | ||
"lock_buttons": "Блокировка кнопок" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters