В какую папку нужно закидывать шаблон? Закидываю как указано в документации( правда через Wirenboard.cloud), а он не появляется в вэб интерфейсе.
Gree1.pages (170,7 КБ)
В эту папку?
Нет - в wb-mqtt-serial.conf.d/templates, без .default
Туда тоже положил, и service wb-mqtt-serial restart сделал. Шаблон в выборе устройств не появляется.
что в логах wb-mqtt-serial?
wb-mqtt-serial.service (2025-07-31T05:04:43.537Z - 2025-07-31T05:04:41.424Z)
2025-07-31T05:04:43.537Z [wb-mqtt-serial] WARNING: [serial client] <192.168.30.52:23> Register read rate limit is exceeded
2025-07-31T05:04:42.981Z [wb-mqtt-serial] WARNING: [serial client] <192.168.30.50:23> Register read rate limit is exceeded
2025-07-31T05:04:42.553Z [wb-mqtt-serial] INFO: [serial device] device <192.168.30.52:23> modbus:95 is connected
2025-07-31T05:04:42.548Z [wb-mqtt-serial] INFO: [serial client] Events are disabled for <modbus:95: reboot>
2025-07-31T05:04:42.548Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:95:input: 283>
2025-07-31T05:04:42.548Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:95:input: 280>
2025-07-31T05:04:42.391Z [wb-mqtt-serial] INFO: [modbus] Continuous read enabled [slave_id is 95]
2025-07-31T05:04:42.354Z [wb-mqtt-serial] INFO: [serial device] device <192.168.30.52:23> modbus:82 is connected
2025-07-31T05:04:42.350Z [wb-mqtt-serial] INFO: [serial client] Events are disabled for <modbus:82: reboot>
2025-07-31T05:04:42.349Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:82:input: 283>
2025-07-31T05:04:42.349Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:82:input: 280>
2025-07-31T05:04:42.193Z [wb-mqtt-serial] INFO: [modbus] Continuous read enabled [slave_id is 82]
2025-07-31T05:04:42.133Z [wb-mqtt-serial] INFO: [serial client] Events are disabled for <modbus:81: reboot>
2025-07-31T05:04:42.132Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:81:input: 283>
2025-07-31T05:04:42.132Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:81:input: 280>
2025-07-31T05:04:41.976Z [wb-mqtt-serial] INFO: [serial device] device <192.168.30.52:23> modbus:81 is connected
2025-07-31T05:04:41.976Z [wb-mqtt-serial] INFO: [modbus] Init: CO₂ Sensor Enabled: setup register <<192.168.30.52:23> modbus:81:coil: 3> ← 1 (0x1)
2025-07-31T05:04:41.972Z [wb-mqtt-serial] INFO: [modbus] Continuous read enabled [slave_id is 81]
2025-07-31T05:04:41.933Z [wb-mqtt-serial] INFO: [serial client] Events are disabled for <modbus:99: reboot>
2025-07-31T05:04:41.933Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:99:coil: 3>
2025-07-31T05:04:41.933Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:99:coil: 2>
2025-07-31T05:04:41.933Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:99:coil: 1>
2025-07-31T05:04:41.933Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:99:coil: 0>
2025-07-31T05:04:41.920Z [wb-mqtt-serial] INFO: [serial client] Events are disabled for <modbus:7: reboot>
2025-07-31T05:04:41.920Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:7:input: 283>
2025-07-31T05:04:41.919Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:7:input: 280>
2025-07-31T05:04:41.914Z [wb-mqtt-serial] INFO: [serial device] device </dev/ttyRS485-1 115200 8 N 2> modbus:99 is connected
2025-07-31T05:04:41.913Z [wb-mqtt-serial] INFO: [modbus] Init: disable legacy input mode control: setup register <</dev/ttyRS485-1 115200 8 N 2> modbus:99:holding: 5> ← 0 (0x0)
2025-07-31T05:04:41.911Z [wb-mqtt-serial] INFO: [modbus] Init: Baud rate: setup register <</dev/ttyRS485-1 115200 8 N 2> modbus:99:holding: 110> ← 1152 (0x480)
2025-07-31T05:04:41.909Z [wb-mqtt-serial] INFO: [modbus] Continuous read enabled [slave_id is 99]
2025-07-31T05:04:41.764Z [wb-mqtt-serial] INFO: [serial device] device <192.168.30.52:23> modbus:7 is connected
2025-07-31T05:04:41.763Z [wb-mqtt-serial] INFO: [modbus] Init: CO₂ Sensor Enabled: setup register <<192.168.30.52:23> modbus:7:coil: 3> ← 1 (0x1)
2025-07-31T05:04:41.759Z [wb-mqtt-serial] INFO: [modbus] Continuous read enabled [slave_id is 7]
2025-07-31T05:04:41.725Z [wb-mqtt-serial] INFO: [serial client] Events are disabled for <modbus:87: reboot>
2025-07-31T05:04:41.725Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 514>
2025-07-31T05:04:41.725Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 513>
2025-07-31T05:04:41.725Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 512>
2025-07-31T05:04:41.725Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 498>
2025-07-31T05:04:41.725Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 497>
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 496>
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 482>
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 481>
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 480>
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial device] device <192.168.30.52:23> modbus:68 is connected
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 466>
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 465>
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 464>
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 34>
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 33>
2025-07-31T05:04:41.717Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:input: 32>
2025-07-31T05:04:41.715Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:holding: 16>
2025-07-31T05:04:41.715Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:87:coil: 16>
2025-07-31T05:04:41.711Z [wb-mqtt-serial] INFO: [serial client] Events are disabled for <modbus:68: reboot>
2025-07-31T05:04:41.711Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:68:input: 283>
2025-07-31T05:04:41.711Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:68:input: 280>
2025-07-31T05:04:41.692Z [wb-mqtt-serial] INFO: [serial device] device </dev/ttyRS485-1 115200 8 N 2> modbus:87 is connected
2025-07-31T05:04:41.691Z [wb-mqtt-serial] INFO: [modbus] Init: Baud rate: setup register <</dev/ttyRS485-1 115200 8 N 2> modbus:87:holding: 110> ← 1152 (0x480)
2025-07-31T05:04:41.689Z [wb-mqtt-serial] INFO: [modbus] Init: Outputs Mode: setup register <</dev/ttyRS485-1 115200 8 N 2> modbus:87:holding: 10> ← 1 (0x1)
2025-07-31T05:04:41.687Z [wb-mqtt-serial] INFO: [modbus] Continuous read enabled [slave_id is 87]
2025-07-31T05:04:41.554Z [wb-mqtt-serial] INFO: [modbus] Continuous read enabled [slave_id is 68]
2025-07-31T05:04:41.530Z [wb-mqtt-serial] INFO: [serial client] Events are disabled for <modbus:232: reboot>
2025-07-31T05:04:41.530Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:232:coil: 5>
2025-07-31T05:04:41.530Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:232:coil: 4>
2025-07-31T05:04:41.530Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:232:coil: 3>
2025-07-31T05:04:41.530Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:232:coil: 2>
2025-07-31T05:04:41.530Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:232:coil: 1>
2025-07-31T05:04:41.530Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:232:coil: 0>
2025-07-31T05:04:41.509Z [wb-mqtt-serial] INFO: [serial device] device <192.168.30.52:23> modbus:6 is connected
2025-07-31T05:04:41.505Z [wb-mqtt-serial] INFO: [serial client] Events are disabled for <modbus:6: reboot>
2025-07-31T05:04:41.503Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:6:input: 283>
2025-07-31T05:04:41.503Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:6:input: 280>
2025-07-31T05:04:41.446Z [wb-mqtt-serial] INFO: [serial client] Events are disabled for <modbus:49: reboot>
2025-07-31T05:04:41.446Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:49:coil: 5>
2025-07-31T05:04:41.446Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:49:coil: 4>
2025-07-31T05:04:41.446Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:49:coil: 3>
2025-07-31T05:04:41.446Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:49:coil: 2>
2025-07-31T05:04:41.444Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:49:coil: 1>
2025-07-31T05:04:41.444Z [wb-mqtt-serial] INFO: [serial client] Events are enabled for <modbus:49:coil: 0>
2025-07-31T05:04:41.425Z [wb-mqtt-serial] INFO: [serial device] device </dev/ttyRS485-1 115200 8 N 2> modbus:49 is connected
2025-07-31T05:04:41.424Z [wb-mqtt-serial] INFO: [modbus] Init: disable legacy input mode control: setup register <</dev/ttyRS485-1 115200 8 N 2> modbus:49:holding: 5> ← 0 (0x0)
вы это шаблоном называете?
У меня в контроллере , в mod2 , стоит интерфейс rs485, через него подключен modbus gateway Gree, к шлюзу подключен внешний блок кондиционера Gree, а к нему, в свою очередь 6 внутренних блоков(по CAN).
Связь настроил правильно, обмен идёт. Настроил опрос регистров( подключенные блоки кондиционеров: один внешний, 6 внутренних и седьмой мнутренний блок -не подключен), а с шаблоном что-то не получается.
Gree2.pages (169,3 КБ)
Вы этот файл в папку кладете?
По-моему похоже на шаблон, делал по инструкции на гит.хаб.
Да.
Формат файла не подходит, должен быть простой текстовый файл.
Да, расширение меняю на json.