For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configure Accessory Names

[TCP <--> InvisOutlet]

Configure and set accessory names for the device.

Request

  • packetID : Represents the ID of the packet. This can be any six digit number, no leading zeros.

  • payload :

    • callbackName : 4

    • callbackArgs :

      • accessory: 1 - Outlet 1 (Top), 2 - Outlet 2 (Bottom), 3 - Nightlight (if InvisDeco is installed).

      • name: The corresponding names for the accessory.

{
  "packetID": 950302,
  "payload":
  {
    "callbackName": 4,  
    "callbackArgs":
    [
      {
        "accessory": 1,    
        "name": "Fan"
      },
      {
        "accessory": 2,    
        "name": "Charger"
      },
      {
        "accessory": 3,     
        "name": "Nightlight"
      }
    ]
  }
}

Response

  • sn: The serial number of the InvisOutlet.

  • packetID: Represents the ID of the packet based on request packetID.

  • PUBACK : If the request is successfully processed; 1 - Successful, 0 - Fail.

Last updated