07-27-2023, 11:35 AM
Hello,
I'm using this code here just to control the relays. I excluded dev_semsor and dev_contact files and put to comment sensor part of the ino. It works well but I'd like to use digital input to control the relays manually (and give feedback to Apple Home too). I noted in the declaration you already cuopled DI with relays (e.g. new DEV_DimmableLED(2,36). I also unhcommented void button in dev_led, this way I can control relays using the digital input but I have not the feedback in Apple Homekit. Looking into Homespan library example I found that feedback should be given using SpanButton or coding using setVal method.
Any suggestion on how I can get the feedback on Apple Home app?
Thanks
Paolo
I'm using this code here just to control the relays. I excluded dev_semsor and dev_contact files and put to comment sensor part of the ino. It works well but I'd like to use digital input to control the relays manually (and give feedback to Apple Home too). I noted in the declaration you already cuopled DI with relays (e.g. new DEV_DimmableLED(2,36). I also unhcommented void button in dev_led, this way I can control relays using the digital input but I have not the feedback in Apple Homekit. Looking into Homespan library example I found that feedback should be given using SpanButton or coding using setVal method.
Any suggestion on how I can get the feedback on Apple Home app?
Thanks
Paolo