{
	"title": "turkov_zenit_template_title",
	"device_type": "Turkov Zenit",
	"group": "g-climate-control",

	"device": {
		"name": "Turkov Zenit",
		"id": "turkov_zenit",

		"poll_interval": 1000,
		"guard_interval_us": 5000,

		"parameters": {
			"modbus_address": {
				"title": "ModBus Address",
				"description": "modbus_address_desc",
				"reg_type": "holding",
				"address": "0x0010",
				"default": 1,
				"min": 1,
				"max": 247,
				"group": "settings",
				"order": 1
			},
			"modbus_speed": {
				"title": "ModBus Speed",
				"description": "modbus_speed_desc",
				"reg_type": "holding",
				"address": "0x0009",
				"default": 0,
				"enum": [0, 1, 2, 3, 4],
				"enum_titles": ["9600", "19200", "38400", "57600", "115200"],
				"group": "settings",
				"order": 2
			},
			"parity_and_stopbits": {
				"title": "Parity and Stop Bits",
				"reg_type": "holding",
				"address": "0x0011",
				"default": 0,
				"enum": [0, 1, 2, 3, 4],
				"enum_titles": ["no parity - 1 bit", "even parity - 1 bit", "odd parity - 1 bit", "even parity - 2 bit", "odd parity - 2 bit"],
				"group": "settings",
				"order": 3
			},
			"version": {
				"title": "Firmware version",
				"enum": [26, 29],
				"enum_titles": ["2.6", "2.9"],
				"default": 26,
				"readonly": true,
				"required": true,
				"group": "settings",
				"order": 4
			}
		},

		"channels": [
			{
				"name": "Power",
				"id": "on_off",
				"reg_type": "holding",
				"address": "0x0001",
				"type": "switch",
				"group": "climate"
			},
			{
				"name": "Heater temperature",
				"id": "temp_setpoint",
				"reg_type": "holding",
				"address": "0x0002",
				"type": "range",
				"min": 0,
				"max": 50,
				"group": "climate"
			},
			{
				"name": "Fan speed",
				"id": "fan_speed",
				"reg_type": "holding",
				"address": "0x0003",
				"type": "range",
				"min": 1,
				"max": 4,
				"group": "climate"
			},
			{
				"name": "Current mode",
				"id": "sezon",
				"reg_type": "holding",
				"address": "0x0004",
				"type": "range",
				"min": 0,
				"max": 2,
				"group": "climate"
			},
			{
				"name": "Mode indication",
				"id": "mode_activity",
				"reg_type": "input",
				"address": "0x010E",
				"type": "switch",
				"group": "climate"
			},
			{
				"name": "Outdoor air temperature (D1)",
				"id": "d1",
				"reg_type": "input",
				"address": "0x0101",
				"type": "value",
				"format": "s16",
				"scale": 0.1,
				"units": "°C",
				"group": "climate"
			},
			{
				"name": "Supply air temperature (D2)",
				"id": "d2",
				"reg_type": "input",
				"address": "0x0102",
				"type": "value",
				"format": "s16",
				"scale": 0.1,
				"units": "°C",
				"group": "climate"
			},
			{
				"name": "Water heater return temperature (D3)",
				"id": "d3",
				"reg_type": "input",
				"address": "0x0103",
				"type": "value",
				"format": "s16",
				"scale": 0.1,
				"units": "°C",
				"enabled": false,
				"group": "climate"
			},
			{
				"name": "Water heater surface temperature (D4)",
				"id": "d4",
				"reg_type": "input",
				"address": "0x0104",
				"type": "value",
				"format": "s16",
				"scale": 0.1,
				"units": "°C",
				"enabled": false,
				"group": "climate"
			},
			{
				"name": "Exhaust air temperature (D5)",
				"id": "d5",
				"reg_type": "input",
				"address": "0x0105",
				"type": "value",
				"format": "s16",
				"scale": 0.1,
				"units": "°C",
				"group": "climate"
			},
			{
				"name": "Temperature (D7)",
				"id": "sht_temp",
				"type": "value",
				"address": "0x010B",
				"type": "temperature",
				"format": "s16",
				"scale": 0.1,
				"units": "°C",
				"group": "climate"
			},
			{
				"name": "Humidity (D7)",
				"id": "sht_hum",
				"reg_type": "input",
				"address": "0x010C",
				"type": "value",
				"format": "s16",
				"units": "%",
				"group": "climate"
			},
			{
				"name": "Fireplace",
				"id": "kamin_mode",
				"reg_type": "holding",
				"address": "0x0012",
				"type": "switch",
				"enabled": false,
				"group": "climate"
			},
			{
				"name": "Fan mode",
				"id": "fan_mode",
				"reg_type": "input",
				"address": "0x0110",
				"type": "value",
				"enum": [0, 1, 2, 3],
				"enum_titles": ["modbus", "manual", "auto", "manual and auto"],
				"enabled": false,
				"condition": "version == 29",
				"group": "info"
			},
			{
				"name": "Filter dirty",
				"id": "filter",
				"reg_type": "input",
				"address": "0x0106",
				"type": "value",
				"format": "s16",
				"max": 100,
				"units": "%",
				"group": "info"
			},
			{
				"name": "Error code",
				"id": "error",
				"reg_type": "input",
				"address": "0x0107",
				"type": "value",
				"format": "s16",
				"group": "info"
			}
		],

		"groups": [
			{
				"title": "Settings",
				"id": "settings"
			},
			{
				"title": "Climate",
				"id": "climate"
			},
			{
				"title": "Info",
				"id": "info"
			}
		],

		"translations": {
			"en": {
				"turkov_zenit_template_title": "Turkov Zenit (air handling unit)",

				"modbus_address_desc": "Make sure that communication with device is established before changing this parameter. Select required modbus-address, save configuration and then change device address to the same value.",
				"modbus_speed_desc": "Make sure that communication with device is established before changing this parameter. Select required baud rate, save configuration and then change port baud rate to the same value."
			},
			"ru": {
				"turkov_zenit_template_title": "Turkov Zenit (приточно-вытяжная установка)",

				"modbus_address_desc": "Перед изменением параметра убедитесь, что связь с устройством установлена. Выберите новый modbus-адрес, сохраните конфигурацию, а затем укажите в настройках устройства этот же адрес.",
				"modbus_speed_desc": "Перед изменением параметра убедитесь, что связь с устройством установлена. Выберите нужную скорость обмена, сохраните конфигурацию, а затем укажите в настройках порта эту же скорость.",

				"Firmware version": "Используемая версия прошивки",
				"ModBus Address": "Адрес устройства по Modbus",
				"ModBus Speed": "Скорость связи по Modbus",
				"Parity and Stop Bits": "Настройки контроля четности и кол-ва стоп-битов",

				"no parity - 1 bit": "без контроля четности и 1 стоп-бит",
				"even parity - 1 bit": "контроль четности Even и 1 стоп-бит",
				"odd parity - 1 bit": "контроль четности Odd и 1 стоп-бит",
				"even parity - 2 bit": "контроль четности Even и 2 стоп-бита",
				"odd parity - 2 bit": "контроль четности Odd и 2 стоп-бита",

				"Power": "Вентустановка включена",
				"Heater temperature": "Целевая температура",
				"Fan speed": "Скорость вентилятора",
				"Current mode": "Текущий режим работы",
				"Mode indication": "Индикация состояния (режим лето/зима)",

				"Outdoor air temperature (D1)": "Температура уличного воздуха (D1)",
				"Supply air temperature (D2)": "Температура приточного воздуха (D2)",
				"Water heater return temperature (D3)": "Температура обратнки водяного нагревателя (D3)",
				"Water heater surface temperature (D4)": "Температура поверхности водяного нагревателя (D4)",
				"Exhaust air temperature (D5)": "Температура вытяжного воздуха (D5)",
				"Temperature (D7)": "Датчик температуры (D7)",
				"Humidity (D7)": "Датчик влажности (D7)",

				"Fireplace": "Активация режима 'камин'",
				"Fan mode": "Режим работы вентиляторов",
				"Filter dirty": "Загрязненность фильтра",
				"Error code": "Код ошибки",

				"Settings": "Параметры",
				"Climate": "Климат",
				"Info": "Информация"
			}
		}
	}
}