HomeSpan/docs
HomeSpan da4665f44e
Update README.md
2021-03-21 22:52:42 -05:00
..
images Update QRCode.png 2021-01-28 21:37:44 -06:00
CLI.md Update CLI.md 2021-02-13 21:36:16 -06:00
Categories.md Update Categories.md 2020-11-24 21:19:12 -06:00
Extras.md Update Extras.md 2021-03-21 22:51:43 -05:00
FAQ.md Update FAQ.md 2021-02-23 19:35:38 -06:00
GettingStarted.md Update GettingStarted.md 2021-02-19 18:11:37 -06:00
HomeKitPrimer.md Update HomeKitPrimer.md 2020-12-02 07:20:04 -06:00
HomeSpanUserGuide.pdf Updated User Guide PDF 2021-01-07 07:43:44 -06:00
OTA.md Update OTA.md 2021-02-19 18:13:30 -06:00
Overview.md Update Overview.md 2021-01-04 07:12:24 -06:00
QRCodes.md Update QRCodes.md 2021-02-07 20:48:27 -06:00
README.md Update README.md 2021-03-21 22:52:42 -05:00
Reference.md Update Reference.md 2021-03-13 07:03:18 -06:00
ServiceList.md Update ServiceList.md 2021-03-09 08:08:39 -06:00
Tutorials.md Update Tutorials.md 2021-03-21 18:26:12 -05:00
UserGuide.md Update UserGuide.md 2021-01-07 07:42:50 -06:00
_config.yml Update _config.yml 2020-11-15 21:57:06 -06:00

README.md

Welcome!

Welcome to HomeSpan - a robust and extremely easy-to-use Arduino library for creating your own ESP32-based HomeKit devices entirely within the Arduino IDE.

HomeSpan provides a microcontroller-focused implementation of Apple's HomeKit Accessory Protocol Specification Release R2 (HAP-R2) designed specifically for the Espressif ESP32 microcontroller running within the Arduino IDE. HomeSpan pairs directly to HomeKit via your home WiFi network without the need for any external bridges or components. With HomeSpan you can use the full power of the ESP32's I/O functionality to create custom control software and/or hardware to automatically operate external devices from the Home App on your iPhone, iPad, or Mac, or with Siri.

HomeSpan Highlights

  • Provides a natural, intuitive, and very easy-to-use framework
  • Utilizes a unique Service-Centric approach to creating HomeKit devices
  • Takes full advantage of the widely-popular Arduino IDE
  • 100% HAP-R2 compliance
  • 38 integrated HomeKit Services
  • Operates in either Accessory or Bridge mode
  • Supports pairing with Setup Codes or QR Codes

For the HomeSpan Developer

  • Extensive use of the Arduino Serial Monitor
    • Real-time, easy-to-understand diagnostics
    • Complete transparency to every underlying HomeKit action, data request, and data response
    • Command-line interface with a variety of info, debugging, and configuration commands
  • Built-in database validation to ensure your configuration meets all HAP requirements
  • Integrated PWM functionality supporting pulse-wave-modulation on any ESP32 pin
  • Integrated Push Button functionality supporting single, double, and long presses
  • Integrated access to the ESP32's on-chip Remote Control peripheral for easy generation of IR and RF signals
  • 17 detailed tutorial-sketches with extensive comments, HomeSpan documentation and tips and tricks

For the HomeSpan End-User

  • Embedded WiFi Access Point and Web Interface to allow end-users (non-developers) to:
    • Set up Homespan with their own home WiFi Credentials
    • Create their own HomeKit Pairing Setup Code
  • Status LED and Control Button to allow end-users to:
    • Force-unpair the device from HomeKit
    • Perform a Factory Reset
    • Launch the WiFi Access Point
  • A standalone, detailed End-User Guide

Latest Update (3/13/2021)

  • HomeSpan 1.2.1 - This update adds run-time range-checking for all Characteristics and will warn you if the initial value you set for a Characteristic, or any subsequent changes you make to that value, are outside the Characteristic's allowable min/max range. This helps diagnosis "No Response" errors in the Home App. This update also introduces setRange(min,max,step) as a new and more robust method for changing a Characteristic's range. See Release for details on all changes included in this update.

HomeSpan Resources

HomeSpan includes the following documentation:

  • Getting Started with HomeSpan - setting up the software and the hardware needed to develop HomeSpan devices
  • HomeKit Primer - a gentle introduction to Apple HomeKit and HAP terminology 🚧
  • HomeSpan API Overview - an overview of the HomeSpan API, including a step-by-step guide to developing your first HomeSpan Sketch
  • HomeSpan Tutorials - a guide to HomeSpan's tutorial-sketches
  • HomeSpan Services and Characteristics - a list of all HAP Services and Characterstics supported by HomeSpan
  • HomeSpan Accessory Categories - a list of all HAP Accessory Categories defined by HomeSpan
  • HomeSpan Command-Line Interface (CLI) - configure a HomeSpan device's WiFi Credentials, modify its HomeKit Setup Code, monitor and update its status, and access detailed, real-time device diagnostics from the Arduino IDE Serial Monitor
  • HomeSpan User Guide - turnkey instructions on how to configure an already-programmed HomeSpan device's WiFi Credentials, modify its HomeKit Setup Code, and pair the device to HomeKit. No computer needed!
  • HomeSpan API Reference - a complete guide to the HomeSpan Library API
  • HomeSpan QR Codes - create and use QR Codes for pairing HomeSpan devices
  • HomeSpan OTA - update your sketches Over-the-Air directly from the Arduino IDE without a serial connection
  • HomeSpan Extras - integrated access to the ESP32's on-chip LED, Servo Motor, and Remote Control peripherals!
  • HomeSpan Projects - real-world applications of the HomeSpan Library
  • HomeSpan FAQ - answers to frequently-asked questions

External Resources

In addition to HomeSpan resources, developers who are new to HomeKit programming should download Apple's HomeKit Accessory Protocol Specification, Release R2 (HAP-R2). The download is free, but Apple requires you to register your Apple ID for access to the document.

You do not need to read the entire document. The whole point of HomeSpan is that it implements all the required HAP operations under the hood so you can focus on just programming whatever logic is needed to control your real-world appliances (lights, fans, RF remote controls, etc.) with the device. However, you will find Chapters 8 and 9 of the HAP guide to be an invaluable reference as it lists and describes all of the Services and Characteristics implemented in HomeSpan, many of which you will routinely utilize in your own HomeSpan sketches.


Feedback or Questions?

Please consider adding to the HomeSpan Discussion Board, or email me directly at homespan@icloud.com.