sprut / Hub

Sprut.Hub
173 stars 12 forks source link

Добавить шаблон для OpenTherm-ModBUS #579

Open tony-g90 opened 3 years ago

tony-g90 commented 3 years ago

Ссылка на устройство https://v2.sprut.ai/catalog/item/nevoton-sluz-opentherm-modbus

Для адекватной работы возможно добавить как 2 термостата, или на основании топиков создавать виртуальные устройства. Device BCG301 Топики:

  1. OT_BoilerTemperature температура теплоносителя, шаг 1 градус. /devices/BCG301_10/controls/OT_BoilerTemperature

  2. OT_ControlSetpoint Заданная температура теплоносителя, шаг 1 градус, от 0 до 80. /devices/BCG301_10/controls/OT_ControlSetpoint

  3. OT_DHWtemp Текущая температура ГВС, шаг 1 градус. /devices/BCG301_10/controls/OT_DHWtemp

  4. OT_DHWsetPoint Заданная температура ГВС, шаг 1 градус, от 0 до 60 /devices/BCG301_10/controls/OT_DHWsetPoint

  5. OT_Modulation Процент модуляции горелки, 0-100% /devices/BCG301_10/controls/OT_Modulation

  6. OT_Error флаг ошибки 0/1 /devices/BCG301_10/controls/OT_Error

  7. OT_WaterPressure Давление теплоносителя в котле /devices/BCG301_10/controls/OT_WaterPressure

Дополнительные опции: OT_Status статус котла, нужно парсить значения для конкретного котла OT_ErrorOEM код ошибки производителя котла OT_GateMode ??? вкл/выкл OT_ExtErrorOverheat ошибка перегрева OT_ExtErrorLowPressure ошибка низкого давления

Шаблон WB

// Configuration options { "device_type":"OpenThermMBGateway", "device":{ "name":"OT Modbus Gateway BCG301", "id":"BCG301", "enabled": true, "channels": [ { "name": "OT_Vers", "type": "value", "reg_type": "holding", "address": 1015, "format": "u16", "scale": 0.01, "offset": 0 }, { "name": "OT_ModbusAdress", "type": "value", "reg_type": "holding", "address": 1003, "format": "u16", "scale": 1, "offset": 0 }, { "name": "OT_Status", "type": "value", "reg_type": "holding", "address": 1004, "format": "u8", "scale": 1, "offset": 0 }, { "name": "OT_Config", "type": "value", "reg_type": "holding", "address": 1005, "format": "u8", "scale": 1, "offset": 0 }, { "name": "OT_Error", "type": "value", "reg_type": "holding", "address": 1006, "format": "u8", "scale": 1, "offset": 0 }, { "name": "OT_Modulation", "type": "value", "reg_type": "holding", "address": 1007, "format": "u16", "scale": 0.003906, "offset": 0, "channel_readonly": true, "round_to": 1 }, { "name": "OT_BoilerTemperature", "type": "temperature", "reg_type": "holding", "address": 1010, "format": "u16", "scale": 0.003906, "offset": 0, "round_to": 0.01 }, { "name": "OT_WaterPressure", "type": "value", "reg_type": "holding", "address": 1008, "format": "u16", "scale": 0.003906, "offset": 0, "round_to": 0.01 }, { "name": "OT_DHWsetPoint", "type": "range", "reg_type": "holding", "address": 1024, "format": "u16", "scale": 0.003906, "offset": 0, "round_to": 1, "max": "60" }, { "name": "OT_DHWtemp", "type": "temperature", "reg_type": "holding", "address": 1011, "format": "u16", "scale": 0.003906, "offset": 0, "round_to": 0.01 }, { "name": "OT_ErrorOEM", "type": "value", "reg_type": "holding", "address": 1014, "format": "u16", "scale": 1, "offset": 0 }, { "name": "OT_GateMode", "type": "switch", "reg_type": "coil", "address": 1004, "format": "u16", "scale": 1, "offset": 0, "channel_readonly": false }, { "name": "OT_ExtErrorOverheat", "type": "value", "reg_type": "coil", "address": 1024, "format": "u16", "scale": 1, "offset": 0, "channel_readonly": true }, { "name": "OT_ExtErrorLowPressure", "type": "value", "reg_type": "coil", "address": 1022, "format": "u16", "scale": 1, "offset": 0, "channel_readonly": true }, { "name": "OT_ControlSetpoint", "type": "range", "reg_type": "holding", "address": 1018, "format": "u16", "scale": 0.003906, "offset": 0, "max": 80, "round_to": 1 } ] } }

@P07A70

Batyushin commented 3 years ago

https://v2.sprut.ai/catalog/item/nevoton-sluz-opentherm-modbus