Closed nicolov closed 1 year ago
Thank you for the great work!
I'm building a simple MQTT -> HomeKit bridge using this library. I created a StatelessProgrammableSwitch accessory to expose a pushbutton:
StatelessProgrammableSwitch
acc := accessory.New(accessory.Info{ Name: "hello", }, accessory.TypeProgrammableSwitch) s := service.NewStatelessProgrammableSwitch() acc.AddS(s.S)
I can send events on this switch with the following:
s.ProgrammableSwitchEvent.SetValue(characteristic.ProgrammableSwitchEventSinglePress)
This seems to work: the home app highlights the "single press" menu item when I press the button.
However, actions connected to the button press are not working (ie nothing happens).
hap
Is there any missing piece that allows homekit to trigger actions based on the change of characteristic?
It turns out that the problem was that my Apple TV was offline. Thank you again!
Thank you for the great work!
I'm building a simple MQTT -> HomeKit bridge using this library. I created a
StatelessProgrammableSwitch
accessory to expose a pushbutton:I can send events on this switch with the following:
This seems to work: the home app highlights the "single press" menu item when I press the button.
However, actions connected to the button press are not working (ie nothing happens).
hap
accessories or standalone items. Neither works.Is there any missing piece that allows homekit to trigger actions based on the change of characteristic?