Closed mrwiwi closed 4 years ago
Unfortunately, as far as I know there isn't a basic "pushable button" UI in HomeKit, only toggles with two states (ON/OFF) so it's not quite easy to translate this actions into HomeKit. If you have any example of working single state buttons, I could look into it.
Ok ;) I have example in "not home kit", support is complete with MQTT (position, UP, DOWN, STOP).
I don't have any iOS device, so I found it curious... Maybe you could expose these and the client nevertheless, it could be useful for other implementations ! (Check my project for the commands, it's in the MQTT client, + cover py, positionCmd)
Also with my tests, homebrige -> home assistant, covers position didn't always update if they where controlled by remotes or home assistant directly, not always, but it was like pushed messages from the Tydom hub wheren't processed. But again, exotic usage here :)
I don't have the "STOP" command exposed (again on home assistant via homekit integration) on my covers, here are the logs :
` [3/23/2020, 10:12:27 AM] [Tydom] Tydom device="8e87418e-2f74-406e-aeb1-0dbecc5616a7" context="{"name":"Cosina","metadata":[{"name":"positionCmd","type":"string","permission":"w","enum_values":["DOWN","UP","STOP","UP_SLOW","DOWN_SLOW","FAVORIT1","FAVORIT2"]},{"name":"thermicDefect","type":"boolean","permission":"r","unit":"boolean"},{"name":"position","type":"numeric","permission":"rw","min":0,"max":100,"step":1,"unit":"%"},{"name":"recFav","type":"string","permission":"w","enum_values":["FAVORIT1","FAVORIT2"]},{"name":"onFavPos","type":"boolean","permission":"r","unit":"boolean"},{"name":"upDefect","type":"boolean","permission":"r","unit":"boolean"},{"name":"downDefect","type":"boolean","permission":"r","unit":"boolean"},{"name":"obstacleDefect","type":"boolean","permission":"r","unit":"boolean"},{"name":"intrusion","type":"boolean","permission":"r","unit":"boolean"},{"name":"battDefect","type":"boolean","permission":"r","unit":"boolean"},{"name":"localisation","type":"string","permission":"w","enum_values":["START"]},{"name":"modeAsso","type":"string","permission":"w","enum_values":["START"]}],"settings":{},"deviceId":1544688149,"endpointId":1544688149,"accessoryId":"tydom:02EE46:accessories:1544688149","manufacturer":"Delta Dore","serialNumber":"1544688149","model":"N/A"}"
`