Диспетчеризация Wiren Board в iRidium


#1

Добрый день. Столкнулся с задачей: диспетчеризация контроллера WirenBoard в iRidium (i3 lite).
Добавил устройство Modbas TCP (пишет онлайн)
добавляю устройствоб к примеру дриммер WB-MDM2, там нужны адреса:

Write Address - адрес регистра для записи (для отправки команд на устройство)

Read Address - адрес регистра для чтения (для получения ответа от устройства)

Подскажите где они настраиваются?


#3

а пришлите сюда полный конфиг wb-mqtt-mbgate с контроллера пожалуйста


#4

{
“debug”: false,
“modbus”: {
“host”: “192.168.0.100”,
“port”: 502
},
“mqtt”: {
“host”: “192.168.0.100”,
“keepalive”: 60,
“port”: 1883
},
“registers”: {
“coils”: [
{
“address”: 4186,
“enabled”: true,
“meta_type”: “switch”,
“topic”: “buzzer/enabled”,
“unitId”: 242
},
{
“address”: 31028,
“enabled”: false,
“meta_type”: “pushbutton”,
“topic”: “system/Reboot”,
“unitId”: 162
},
{
“address”: 29822,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/5V_OUT”,
“unitId”: 127
},
{
“address”: 5450,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/A1_OUT”,
“unitId”: 3
},
{
“address”: 37174,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/A2_OUT”,
“unitId”: 30
},
{
“address”: 40531,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/A3_OUT”,
“unitId”: 114
},
{
“address”: 19848,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/A4_OUT”,
“unitId”: 194
},
{
“address”: 35099,
“enabled”: true,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT2_DIR1”,
“unitId”: 62
},
{
“address”: 35096,
“enabled”: true,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT2_DIR2”,
“unitId”: 62
},
{
“address”: 35097,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT2_DIR3”,
“unitId”: 62
},
{
“address”: 35102,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT2_DIR4”,
“unitId”: 62
},
{
“address”: 59916,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT2_ON1”,
“unitId”: 190
},
{
“address”: 59919,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT2_ON2”,
“unitId”: 190
},
{
“address”: 59918,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT2_ON3”,
“unitId”: 190
},
{
“address”: 59913,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT2_ON4”,
“unitId”: 190
},
{
“address”: 34462,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-lirc/Learn”,
“unitId”: 229
},
{
“address”: 4997,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/Learn to RAM”,
“unitId”: 7
},
{
“address”: 21605,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/Learn to ROM1”,
“unitId”: 127
},
{
“address”: 21606,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/Learn to ROM2”,
“unitId”: 127
},
{
“address”: 21607,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/Learn to ROM3”,
“unitId”: 127
},
{
“address”: 21600,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/Learn to ROM4”,
“unitId”: 127
},
{
“address”: 21601,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/Learn to ROM5”,
“unitId”: 127
},
{
“address”: 21602,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/Learn to ROM6”,
“unitId”: 127
},
{
“address”: 21603,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/Learn to ROM7”,
“unitId”: 127
},
{
“address”: 3583,
“enabled”: false,
“meta_type”: “pushbutton”,
“topic”: “wb-mir_66/Play from RAM”,
“unitId”: 150
},
{
“address”: 2429,
“enabled”: false,
“meta_type”: “pushbutton”,
“topic”: “wb-mir_66/Play from ROM1”,
“unitId”: 3
},
{
“address”: 2426,
“enabled”: false,
“meta_type”: “pushbutton”,
“topic”: “wb-mir_66/Play from ROM2”,
“unitId”: 3
},
{
“address”: 2427,
“enabled”: false,
“meta_type”: “pushbutton”,
“topic”: “wb-mir_66/Play from ROM3”,
“unitId”: 3
},
{
“address”: 2432,
“enabled”: false,
“meta_type”: “pushbutton”,
“topic”: “wb-mir_66/Play from ROM4”,
“unitId”: 3
},
{
“address”: 2433,
“enabled”: false,
“meta_type”: “pushbutton”,
“topic”: “wb-mir_66/Play from ROM5”,
“unitId”: 3
},
{
“address”: 2430,
“enabled”: false,
“meta_type”: “pushbutton”,
“topic”: “wb-mir_66/Play from ROM6”,
“unitId”: 3
},
{
“address”: 2431,
“enabled”: false,
“meta_type”: “pushbutton”,
“topic”: “wb-mir_66/Play from ROM7”,
“unitId”: 3
},
{
“address”: 31255,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/ROM1 -> RAM”,
“unitId”: 56
},
{
“address”: 19282,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/ROM2 -> RAM”,
“unitId”: 164
},
{
“address”: 10821,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/ROM3 -> RAM”,
“unitId”: 86
},
{
“address”: 27520,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/ROM4 -> RAM”,
“unitId”: 6
},
{
“address”: 15867,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/ROM5 -> RAM”,
“unitId”: 224
},
{
“address”: 37222,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/ROM6 -> RAM”,
“unitId”: 192
},
{
“address”: 51081,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mir_66/ROM7 -> RAM”,
“unitId”: 200
},
{
“address”: 40167,
“enabled”: false,
“meta_type”: “pushbutton”,
“topic”: “wb-mir_66/Reset all ROM”,
“unitId”: 242
},
{
“address”: 10290,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-msw2_39/Buzzer”,
“unitId”: 22
},
{
“address”: 47299,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wbrules/Rule debugging”,
“unitId”: 204
}
],
“discretes”: [
{
“address”: 32307,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “power_status/working on battery”,
“unitId”: 229
},
{
“address”: 45861,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/A1_IN”,
“unitId”: 52
},
{
“address”: 17588,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/A2_IN”,
“unitId”: 204
},
{
“address”: 64607,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/A3_IN”,
“unitId”: 160
},
{
“address”: 26726,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/A4_IN”,
“unitId”: 52
},
{
“address”: 25363,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/BATTERY_CHARGING”,
“unitId”: 35
},
{
“address”: 59716,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/BATTERY_PRESENT”,
“unitId”: 136
},
{
“address”: 9292,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT1_DR1”,
“unitId”: 87
},
{
“address”: 9295,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT1_DR2”,
“unitId”: 87
},
{
“address”: 9294,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT1_DR3”,
“unitId”: 87
},
{
“address”: 9289,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT1_DR4”,
“unitId”: 87
},
{
“address”: 9288,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT1_DR5”,
“unitId”: 87
},
{
“address”: 9291,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT1_DR6”,
“unitId”: 87
},
{
“address”: 9290,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT1_DR7”,
“unitId”: 87
},
{
“address”: 9285,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/EXT1_DR8”,
“unitId”: 87
},
{
“address”: 62934,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-gpio/R1_IN”,
“unitId”: 9
},
{
“address”: 60095,
“enabled”: true,
“meta_type”: “switch”,
“topic”: “wb-mdm2_83/Button 1”,
“unitId”: 105
},
{
“address”: 60092,
“enabled”: true,
“meta_type”: “switch”,
“topic”: “wb-mdm2_83/Button 2”,
“unitId”: 105
},
{
“address”: 60093,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mdm2_83/Button 3”,
“unitId”: 105
},
{
“address”: 60090,
“enabled”: false,
“meta_type”: “switch”,
“topic”: “wb-mdm2_83/Button 4”,
“unitId”: 105
}
],
“holdings”: [
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 62197,
“enabled”: false,
“meta_type”: “range”,
“topic”: “buzzer/frequency”,
“unitId”: 89
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 33846,
“enabled”: false,
“meta_type”: “range”,
“topic”: “buzzer/volume”,
“unitId”: 28
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 57567,
“enabled”: false,
“meta_type”: “range”,
“topic”: “wb-dac/MOD1_O1”,
“unitId”: 114
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 57564,
“enabled”: false,
“meta_type”: “range”,
“topic”: “wb-dac/MOD1_O2”,
“unitId”: 114
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 1,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 32911,
“enabled”: true,
“meta_type”: “range”,
“topic”: “wb-mdm2_83/Channel 1”,
“unitId”: 191
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 1,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 32908,
“enabled”: true,
“meta_type”: “range”,
“topic”: “wb-mdm2_83/Channel 2”,
“unitId”: 191
}
],
“inputs”: [
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 5231,
“enabled”: false,
“meta_type”: “text”,
“topic”: “alarms/log”,
“unitId”: 4
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 13005,
“enabled”: false,
“meta_type”: “text”,
“topic”: “ddl24_215/Voltage”,
“unitId”: 212
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 49878,
“enabled”: false,
“meta_type”: “dimmer”,
“topic”: “ddl24_215/White”,
“unitId”: 220
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 64828,
“enabled”: false,
“meta_type”: “text”,
“topic”: “network/Ethernet IP”,
“unitId”: 53
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 65079,
“enabled”: false,
“meta_type”: “text”,
“topic”: “network/GPRS IP”,
“unitId”: 42
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 44224,
“enabled”: false,
“meta_type”: “text”,
“topic”: “network/Wi-Fi IP”,
“unitId”: 113
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 16114,
“enabled”: false,
“meta_type”: “voltage”,
“topic”: “power_status/Vin”,
“unitId”: 116
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 7490,
“enabled”: false,
“meta_type”: “text”,
“topic”: “system/Current uptime”,
“unitId”: 156
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 38203,
“enabled”: false,
“meta_type”: “text”,
“topic”: “system/DTS Version”,
“unitId”: 210
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 15054,
“enabled”: false,
“meta_type”: “text”,
“topic”: “system/Firmware version”,
“unitId”: 70
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 5818,
“enabled”: false,
“meta_type”: “text”,
“topic”: “system/Short SN”,
“unitId”: 3
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 56168,
“enabled”: false,
“meta_type”: “voltage”,
“topic”: “wb-adc/5Vout”,
“unitId”: 204
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 44642,
“enabled”: false,
“meta_type”: “voltage”,
“topic”: “wb-adc/A1”,
“unitId”: 148
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 44641,
“enabled”: false,
“meta_type”: “voltage”,
“topic”: “wb-adc/A2”,
“unitId”: 148
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 44640,
“enabled”: false,
“meta_type”: “voltage”,
“topic”: “wb-adc/A3”,
“unitId”: 148
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 44647,
“enabled”: false,
“meta_type”: “voltage”,
“topic”: “wb-adc/A4”,
“unitId”: 148
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 34524,
“enabled”: false,
“meta_type”: “voltage”,
“topic”: “wb-adc/BAT”,
“unitId”: 227
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 18399,
“enabled”: false,
“meta_type”: “resistance”,
“topic”: “wb-adc/R1”,
“unitId”: 145
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 19698,
“enabled”: false,
“meta_type”: “voltage”,
“topic”: “wb-adc/Vin”,
“unitId”: 164
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 5195,
“enabled”: false,
“meta_type”: “text”,
“topic”: “wb-lirc/Key”,
“unitId”: 26
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 60395,
“enabled”: true,
“meta_type”: “value”,
“topic”: “wb-mdm2_83/Button 1 counter”,
“unitId”: 176
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 63944,
“enabled”: true,
“meta_type”: “value”,
“topic”: “wb-mdm2_83/Button 2 counter”,
“unitId”: 81
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 8385,
“enabled”: false,
“meta_type”: “value”,
“topic”: “wb-mdm2_83/Button 3 counter”,
“unitId”: 24
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 12606,
“enabled”: false,
“meta_type”: “value”,
“topic”: “wb-mdm2_83/Button 4 counter”,
“unitId”: 20
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 4802,
“enabled”: false,
“meta_type”: “dimmer”,
“topic”: “wb-mdm2_83/drim”,
“unitId”: 63
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 13560,
“enabled”: false,
“meta_type”: “temperature”,
“topic”: “wb-mir_66/External Temperature Sensor”,
“unitId”: 44
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 64019,
“enabled”: false,
“meta_type”: “voltage”,
“topic”: “wb-mir_66/Input Voltage”,
“unitId”: 243
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 23362,
“enabled”: false,
“meta_type”: “temperature”,
“topic”: “wb-mir_66/Internal Temperature Sensor”,
“unitId”: 161
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 18660,
“enabled”: false,
“meta_type”: “text”,
“topic”: “wb-mir_66/Serial NO”,
“unitId”: 125
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 48825,
“enabled”: false,
“meta_type”: “concentration”,
“topic”: “wb-msw2_39/CO2”,
“unitId”: 43
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 11935,
“enabled”: false,
“meta_type”: “temperature”,
“topic”: “wb-msw2_39/External Sensor 1”,
“unitId”: 152
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 11932,
“enabled”: false,
“meta_type”: “temperature”,
“topic”: “wb-msw2_39/External Sensor 2”,
“unitId”: 152
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 42241,
“enabled”: false,
“meta_type”: “rel_humidity”,
“topic”: “wb-msw2_39/Humidity”,
“unitId”: 48
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 60322,
“enabled”: false,
“meta_type”: “lux”,
“topic”: “wb-msw2_39/Illuminance”,
“unitId”: 133
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 49769,
“enabled”: false,
“meta_type”: “voltage”,
“topic”: “wb-msw2_39/Input Voltage”,
“unitId”: 17
},
{
“byteswap”: false,
“format”: “varchar”,
“max”: 0,
“scale”: 1,
“size”: -1,
“wordswap”: false,
“address”: 14900,
“enabled”: false,
“meta_type”: “text”,
“topic”: “wb-msw2_39/Serial”,
“unitId”: 163
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 16066,
“enabled”: false,
“meta_type”: “sound_level”,
“topic”: “wb-msw2_39/Sound Level”,
“unitId”: 47
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 64875,
“enabled”: true,
“meta_type”: “temperature”,
“topic”: “wb-msw2_39/Temperature”,
“unitId”: 235
},
{
“byteswap”: false,
“format”: “signed”,
“max”: 0,
“scale”: 1,
“size”: 2,
“wordswap”: false,
“address”: 363,
“enabled”: true,
“meta_type”: “temperature”,
“topic”: “wb-w1/28-000008e4eb8f”,
“unitId”: 70
}
],
“remap_values”: false
}
}


#5

конфиг wb-mqtt-mbgate
что-то изменить надо?