Skip to content

Advanced commands to Gateway

Alex X edited this page Feb 15, 2022 · 16 revisions

Update Zigbee device firmware

Example for firmware upgrade for Neo NAS-WR01B (TS011F) from 68 version to 74 version

  • change host to your gateway IP-address
  • change did to your devices IEEE (lumi. + IEEE without leading zeroes)
  • subdev_url should link to raw.githubusercontent.com
service: xiaomi_gateway3.send_command
data:
  host: 192.168.1.123
  command: miio
  data: >-
    {"method":"miIO.subdev_ota","params":{"did":"lumi.abcdef1234567890","subdev_url":"https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Telink/nas_wr01b_plug_OTA_1.0.10.bin"}}

Thanks to zigbee2mqtt project! You can check available firmwares here.

Send raw miio command

  • change host to your gateway IP-address
  • Command result will be in Hass Notifications
  • You don't need to send "id":123 or "params":[] - the component will insert them automatically
service: xiaomi_gateway3.send_command
data:
  host: 192.168.1.123
  command: miio
  data: '{"method":"miIO.info"}'
Clone this wiki locally