Smart Home Automation Forum
[Arduino source code for KC868-A4]-21 Homekit with relay &DS18B20 &contact sensor - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A4 (https://www.kincony.com/forum/forumdisplay.php?fid=21)
+--- Thread: [Arduino source code for KC868-A4]-21 Homekit with relay &DS18B20 &contact sensor (/showthread.php?tid=2294)



[Arduino source code for KC868-A4]-21 Homekit with relay &DS18B20 &contact sensor - admin - 09-14-2022


This is a demo source code KC868-A4 with 10pcs of DS18B20 temperature sensor and 4 relay and 4 dry contact sensor.

.zip   homekit-temp-dry_contact-4DO.zip (Size: 630.68 KB / Downloads: 1,002)
   
[Image: attachment.php?aid=1331]


RE: [Arduino source code for KC868-A4]-21 Homekit with relay &DS18B20 &contact sensor - Phaseangle - 03-08-2023

What are the other libraries you are using?
I'm having problems with the Adafruit ones


RE: [Arduino source code for KC868-A4]-21 Homekit with relay &DS18B20 &contact sensor - admin - 03-08-2023

this is "homespan" code.


RE: [Arduino source code for KC868-A4]-21 Homekit with relay &DS18B20 &contact sensor - PSaragoni - 07-27-2023

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)Wink. 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


RE: [Arduino source code for KC868-A4]-21 Homekit with relay &DS18B20 &contact sensor - admin - 07-27-2023

can you post your question at here: https://github.com/HomeSpan/HomeSpan/discussions
they will feedback quickly. i have tried.