При включении Led red или Led green на 4.16.18 светодиоды не моргали, с любыми значениями периода и длительности импульса. На 4.16.17 все в порядке. Может, имеет значение шаблон устройства? У меня сейчас вот такой конфиг:
{
"device_type": "WB-MSW v.3 (no spaces) bedroom",
"device": {
"name": "WB-MSW v.3",
"id": "wb-msw-v3",
"max_read_registers": 0,
"channels": [
{
"name": "temperature",
"reg_type": "input",
"address": 0,
"type": "temperature",
"format": "s16",
"scale": 0.1,
"error_value": "0x7FFF",
"poll_interval": 1000
},
{
"name": "humidity",
"reg_type": "input",
"address": 1,
"type": "rel_humidity",
"scale": 0.1,
"error_value": "0xFFFF",
"poll_interval": 1000
},
{
"name": "voc",
"reg_type": "input",
"address": 11,
"type": "concentration",
"scale": 1,
"error_value": "0xFFFF",
"poll_interval": 1000
},
{
"name": "co2",
"reg_type": "holding",
"address": 8,
"type": "concentration",
"error_value": "0xFFFF",
"poll_interval": 1000
},
{
"name": "co2_calibration",
"reg_type": "holding",
"address": 95,
"type": "switch"
},
{
"name": "sound_level",
"reg_type": "input",
"address": 3,
"scale": 0.01,
"type": "sound_level",
"poll_interval": 1000
},
{
"name": "illuminance",
"reg_type": "input",
"address": 9,
"type": "lux",
"format": "u32",
"scale": 0.01,
"error_value": "0xFFFFFFFF",
"poll_interval": 1000
},
{
"name": "motion_max",
"type": "value",
"reg_type": "input",
"address": "280"
},
{
"name": "motion_current",
"type": "value",
"reg_type": "input",
"address": "283"
},
{
"name": "buzzer",
"type": "switch",
"reg_type": "coil",
"address": 0
},
{
"name": "led_red",
"type": "switch",
"reg_type": "coil",
"address": 10
},
{
"name": "led_green",
"type": "switch",
"reg_type": "coil",
"address": 11
},
{
"name": "led_period_s",
"reg_type": "holding",
"address": 97,
"type": "range",
"max": 10
},
{
"name": "led_glow_duration_ms",
"reg_type": "holding",
"address": 98,
"type": "range",
"max": 50
},
{
"name": "learn_to_ram",
"reg_type": "coil",
"address": 5001,
"type": "switch"
},
{
"name": "play_from_ram",
"reg_type": "coil",
"address": 5002,
"type": "pushbutton"
},
{
"name": "learn_to_rom1",
"reg_type": "coil",
"address": 5300,
"type": "switch"
},
{
"name": "learn_to_rom2",
"reg_type": "coil",
"address": 5301,
"type": "switch"
},
{
"name": "learn_to_rom3",
"reg_type": "coil",
"address": 5302,
"type": "switch"
},
{
"name": "learn_to_rom4",
"reg_type": "coil",
"address": 5303,
"type": "switch"
},
{
"name": "learn_to_rom5",
"reg_type": "coil",
"address": 5304,
"type": "switch"
},
{
"name": "learn_to_rom6",
"reg_type": "coil",
"address": 5305,
"type": "switch"
},
{
"name": "learn_to_rom7",
"reg_type": "coil",
"address": 5306,
"type": "switch"
},
{
"name": "play_from_rom1",
"reg_type": "coil",
"address": 5100,
"type": "pushbutton"
},
{
"name": "play_from_rom2",
"reg_type": "coil",
"address": 5101,
"type": "pushbutton"
},
{
"name": "play_from_rom3",
"reg_type": "coil",
"address": 5102,
"type": "pushbutton"
},
{
"name": "play_from_rom4",
"reg_type": "coil",
"address": 5103,
"type": "pushbutton"
},
{
"name": "play_from_rom5",
"reg_type": "coil",
"address": 5104,
"type": "pushbutton"
},
{
"name": "play_from_rom6",
"reg_type": "coil",
"address": 5105,
"type": "pushbutton"
},
{
"name": "play_from_rom7",
"reg_type": "coil",
"address": 5106,
"type": "pushbutton"
},
{
"name": "reset_all_rom",
"reg_type": "coil",
"address": 5000,
"type": "pushbutton"
},
{
"name": "input_voltage",
"reg_type": "input",
"address": 121,
"scale": 0.001,
"type": "voltage",
"poll_interval": 1000
},
{
"name": "reboot",
"reg_type": "holding",
"address": 120,
"type": "pushbutton"
},
{
"name": "serial",
"type": "text",
"reg_type": "holding",
"address": 270,
"format": "u32",
"poll_interval": 5000
}
]
}
}
На шине 3 устройства, вот кусок из конфига wb-mqtt-serial.conf:
{
"path": "/dev/ttyMOD1",
"devices": [
{
"slave_id": 28,
"device_type": "WB-M1W2 (no spaces)",
"name": "Temperature01",
"id": "temperature01",
"poll_interval": 1000
},
{
"slave_id": 89,
"device_type": "WB-MSW v.3 (no spaces) hall",
"name": "Climate01 WB-MSW v3",
"id": "climate01"
},
{
"slave_id": 87,
"device_type": "WB-MSW v.3 (no spaces) bedroom",
"name": "Climate02 WB-MSW v3",
"id": "climate02"
}
],
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"poll_interval": 10,
"enabled": true
},