Попробуйте следующие команды в OpenWRT, ето работает:
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager" -m "my_topic"
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager/my_topic/config" -m "{\"id\":\"1\",\"page\":\"garage\",\"descr\":\"Garage Door\",\"widget\":\"toggle\",\"topic\":\"/IoTmanager/my_topic/garagedoor\",\"color\":\"green\"}"
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager/my_topic/config" -m "{\"id\":\"1\",\"page\":\"garage\",\"descr\":\"Garage Light\",\"widget\":\"toggle\",\"topic\":\"/IoTmanager/my_topic/garage_light\",\"color\":\"green\"}"
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager/my_topic/config" -m "{\"id\":\"1\",\"page\":\"living_room\",\"descr\":\"Living Room Light1\",\"widget\":\"toggle\",\"topic\":\"/IoTmanager/my_topic/living_room_1\",\"color\":\"green\"}"
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager/my_topic/config" -m "{\"id\":\"1\",\"page\":\"living_room\",\"descr\":\"Living Room Light2\",\"widget\":\"toggle\",\"topic\":\"/IoTmanager/my_topic/living_room_2\",\"color\":\"green\"}"
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager/my_topic/config" -m "{\"id\":\"1\",\"page\":\"living_room\",\"descr\":\"Living Room Light3\",\"widget\":\"toggle\",\"topic\":\"/IoTmanager/my_topic/living_room_3\",\"color\":\"green\"}"
OpenWRT просто нужен скрипт чтобы прочитать ids от IoTmanager и публиковать меню каждый раз IoTmanager старт
Меняет ключи и попробовать (Только это может исходить от ESP8266):
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager/my_topic/garagedoor/status" -m "{\"status\":\"1\"}"
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager/my_topic/garage_light/status" -m "{\"status\":\"1\"}"
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager/my_topic/living_room_1/status" -m "{\"status\":\"1\"}"
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager/my_topic/living_room_2/status" -m "{\"status\":\"1\"}"
mosquitto_pub -r -q 1 -h localhost -u myusername -P mypassword -t "/IoTmanager/my_topic/living_room_3/status" -m "{\"status\":\"1\"}"
На другой терминал смотреть.
mosquitto_sub -h localhost -u myusername -P mypassword -t "#" -v