Wemos D1 mini with Button Shield on Apple HomeKit as Stateless Programmable Button.
Instructions:
- Solder the Button Shield to the Wemos D1 Mini board (Used Pins are: D3, GND, 3v3).
- Install Arduino IDE software (Can be installed from Microsoft Store).
- Using Arduino IDE software update file wifi_info.h with your WiFi ssid and password.
- The HomeKit pairing code is 111-11-111 (It can be changed in my_accessory.c file).
- Using Arduino IDE software compile and flash the Wemos D1 Mini via USB cable.
- Open Home App in your Apple device and (+) add accessory --> more options --> A "Stateless Programmable Switch" will be available --> enter code.
- The button can be configured in Apple Home App (see picture).
- Thats it. Enjoy.
Boards used:
Button Shield: https://www.wemos.cc/en/latest/d1_mini_shield/1_button.html
Wemos D1 mini: https://www.wemos.cc/en/latest/d1/d1_mini.html