Home Assistant Discovery

[TCP/WebSocket<-->IM]

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 what MQTT commands to send; 1 - Clear Home Assistant Discovery Payload, 2 - Send Home Assistant Discovery Payload.

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

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.

{
    "sn": "0003C44076",
    "packetID": 414883,
    "PUBACK": 1
}

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