Кому интересно интегрировать
XiaomiGateway3
В общем в теории схема такая:
1) скрипт проверяет что гетвей в сети, если на нем не запущен mqtt сервер, то запускает
2)
Дальше или просто пытается подписаться клиентом mqtt
или через костыли: mqtt bridge (это такая фиговина, которая подписывается на брокер А и публикует его значение на брокере Б.
Отправляет значение с гейта на mqtt брокер IoBroker.
Ну в общем теперь гейт уже как то затягивается через костыли.
У кого в наличии было бы интересно, что бы попирали.
Вот с гитхаба:
How it worksThe component enables
Telnet on Gateway via
Miio protocol. Only this Gateway supports this command. Do not try to execute it on other Xiaomi/Aqara Gateways.
The component starts the
MQTT Server on the public port of the Gateway. All the logic in the Gateway runs on top of the built-in MQTT Server. By default, access to it is closed from the outside.
ATTENTION: Telnet and MQTT work without a password! Do not use this method on public networks.
After rebooting the device, all changes will be reset. The component will launch Telnet and public MQTT every time it detects that they are disabled.