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: 27callbackArgs: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 requestpacketID.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
}Last updated