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

Home Assistant Discovery

[TCP <--> InvisOutlet]

Send or clear the InvisOutlet entites in Home Assistant dashboard by the Home Assistant Discovery Payload.

Request

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

  • payload:

    • callbackName: 27

    • callbackArgs:

      • 0: Specifies which MQTT command to run: 0 - Check MQTT status; 1 - Clear all Home Assistant discovery payloads, including the original outlet/PM entities and the additional accessory-preference entities; 2 - Send the original outlet and attached-PM discovery payloads; 3 - Send the additional accessory-preference discovery payloads and current retained states. Note: Argument 3 clears stale accessory-preference discovery entries, publishes only settings supported by the attached InvisDeco, and republishes their current retained states. It does not change accessory preferences or resend the original InvisOutlet or InvisDeco discovery entities. After argument 1, send argument 2 followed by argument 3 to restore both entity sets.

{
  "packetID": 414883,  
  "payload":
  {
    "callbackName": 27,  
    "callbackArgs": [3] 
  }
}

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 - The discovery payload is sent, 0 - The discovery payload is not sent or MQTT broker isn't connected.

The MQTT configuration is set via Configure Device Configuration. Make sure MQTT is connected to the broker before sending/clearing the Home Assistant Discovery Payload.

Last updated