Closed IoTPlay closed 4 years ago
This fails to send to mqtt homebridge/to/set :
{"name":"ESP62.Switch.Relay1","service_name":"Sprinkler Leg-1","characteristic":"inUse","value":"1"}
but how can I send Active, and inUse in one message?
You have to send a message for every characteristic.
This fails to send to mqtt homebridge/to/set :
Depending on the characteristic you have to use the corresponding format.
format: Formats.UINT8,
{"name":"ESP62.Switch.Relay1","service_name":"Sprinkler Leg-1","characteristic":"InUse","value":1}
See:
https://github.com/KhaosT/HAP-NodeJS/blob/master/src/lib/gen/HomeKit.ts
Also replace inUse
by InUse
.
Excellent, all working now, thanks.
Hi, for instance, the service
Valve
has 3 x required characteristics: Active, ValveType, and inUse. I got Active to work, but how can I send Active, and inUse in one message?