All Projects → SimonGolms → homekit-qrcode

SimonGolms / homekit-qrcode

Licence: MIT License
Generate a pairing HomeKit QR code label for your HomeKit accessory from the command line

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to homekit-qrcode

Sonoff Homekit
Make your Sonoff Switch compatible with Apple Homekit! 🎉
Stars: ✭ 722 (+4147.06%)
Mutual labels:  esp8266, apple, esp32, homekit
Dsckeybusinterface
An Arduino/esp8266/esp32 library to directly interface with DSC security systems.
Stars: ✭ 202 (+1088.24%)
Mutual labels:  esp8266, homebridge, esp32, homekit
home
Monorepo for all home automation related development, including integrated firmware, PCBs, configuration, and bridges
Stars: ✭ 104 (+511.76%)
Mutual labels:  esp8266, esp32, homekit
Homepoint
Espressif ESP32 Based Smarthome screen for MQTT
Stars: ✭ 391 (+2200%)
Mutual labels:  homebridge, esp32, homekit
Esp32 Homekit
ESP-32 implementation of Apple Homekit Accessory Protocol(HAP)
Stars: ✭ 331 (+1847.06%)
Mutual labels:  apple, esp32, homekit
Arduino Homekit Esp8266
Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
Stars: ✭ 545 (+3105.88%)
Mutual labels:  esp8266, esp32, homekit
ESP8266-HomeKit-Air-Quality-Sensor-Elgato-Eve-Room
ESP8266 based  Homekit Indoor Air Quality sensor that acts like Eve Room🌱
Stars: ✭ 58 (+241.18%)
Mutual labels:  apple, homebridge, homekit
esp8266 homekit temp
Small project to send data from a temperature sensor connected to an esp8266 to a HomeKit server, running on a Raspberry Pi.
Stars: ✭ 38 (+123.53%)
Mutual labels:  esp8266, homebridge, homekit
OneWireNg
Arduino 1-wire service library. OneWire compatible. Dallas thermometers support.
Stars: ✭ 32 (+88.24%)
Mutual labels:  esp8266, esp32
issues
Issue Tracker for ESPHome
Stars: ✭ 182 (+970.59%)
Mutual labels:  esp8266, esp32
IFTTTWebhook
DEPRECATED: Arduino SDK library for triggering IFTTT web hooks on ESP8266 and ESP32 processors
Stars: ✭ 28 (+64.71%)
Mutual labels:  esp8266, esp32
homekit-compatible-temperature-and-humidity-sensor
Build a HomeKit-compatible Bluetooth Temperature and Humidity Sensor
Stars: ✭ 17 (+0%)
Mutual labels:  homebridge, homekit
BIPES
BIPES: Block based Integrated Platform for Embedded Systems allows text and block based programming for several types of embedded systems and Internet of Things modules using MicroPython, CircuitPython, Python or Snek. You can connect, program, debug and monitor several types of boards using network, USB or Bluetooth. No software install needed!
Stars: ✭ 72 (+323.53%)
Mutual labels:  esp8266, esp32
ustd
Micro-standard-library providing minimal and portable array, queue and map for attiny avr, arduinos, esp8266/32 and linux, mac
Stars: ✭ 14 (-17.65%)
Mutual labels:  esp8266, esp32
firmware
设备固件库,适用于IntoRobot系列产品
Stars: ✭ 19 (+11.76%)
Mutual labels:  esp8266, esp32
TP Arduino DigitalRain Anim
A library that represents Digital Rain Animation on color displays that support TFT_eSPI
Stars: ✭ 80 (+370.59%)
Mutual labels:  esp8266, esp32
TinyPixelMapper
a Pixelmapping software for the ESP32 and ESP8266 for addressible LED Strips, with a OSC controll interface and FFT
Stars: ✭ 22 (+29.41%)
Mutual labels:  esp8266, esp32
ESPxWebFlMgr
Manage your ESP8266/ESP32 SPIFFS/LittleFS files with a simple web based interface
Stars: ✭ 33 (+94.12%)
Mutual labels:  esp8266, esp32
telnetspy
Telnet Server For ESP8266: Cloning the serial port via Telnet. "Debugging over the air"
Stars: ✭ 41 (+141.18%)
Mutual labels:  esp8266, esp32
coro2sens
Build a simple device that warns if CO₂ concentration in a room becomes a risk for COVID-19 aerosol infections.
Stars: ✭ 32 (+88.24%)
Mutual labels:  esp8266, esp32

ℹ️ This package is deprecated and no longer maintained. Please use the successor: homekit-code


HomeKit QR Code

Generate a pairing HomeKit QR code label for your HomeKit accessory

npm version Documentation Maintenance License: MIT Conventional Commits semantic-release

Usage

npx homekit-qrcode --category=switch --pairingCode=84131633 --setupId=3QYT

CLI

Usage: homekit-qrcode [options]

Options:
  -h, --help                                           [boolean]
      --version      Show version number               [boolean]
  -c, --category     category of the Homeit accessory  [string] [required] [choices: "other", "bridge", "fan", "garage", "lightbulb", "doorLock", "outlet", "switch", "thermostat", "sensor", "securitySystem", "door", "window", "windowCovering", "programmableSwitch", "rangeExtender", "ipCamera", "videoDoorBell", "airPurifier", "heater", "airConditioner", "humidifier", "dehumidifier", "appleTv", "speaker", "airport", "sprinkler", "faucet", "showerHead", "television", "targetController"]
  -n, --name         name of the generated file        [string] [default: "homekit-qrcode"]
  -o, --output       format of the generated file      [required] [choices: "svg", "png", "jpeg"] [default: "svg"]
  -p, --pairingCode  8 digits pairing code             [string] [required]
  -s, --setupId                                        [string] [required]

Examples:
  npx homekit-qrcode --category=switch --pairingCode=84131633 --setupId=3QYT                             Generate a QR code for a HomeKit switch
  npx homekit-qrcode --category=switch --pairingCode=84131633 --setupId=3QYT --name=switch --output=png  Generate a QR code for a HomeKit switch as switch.png

Output

qrcode


Local Development

Install Dependencies

npm install

Start Development Server

npm run start -- --category=switch --pairingCode=84131633 --setupId=3QYT

Build

To build homekit-qrcode for production, run:

npm run build

Afterwards the executable code is available under ./lib/.

cd lib
node index.js --category=switch --pairingCode=84131633 --setupId=3QYT

Run Tests

npm test

Repair

This command may be useful when obscure errors or issues are encountered. It removes and recreates dependencies of your project.

npm run repair

Release

Fully automated version management and package publishing via semantic-release. It bumps the version according to conventional commits, publishes the package to npm and release a new version to GitHub.

Automatic Release (GitHub Action) [Recommended]

Make sure that the secrets GITHUB_TOKEN and NPM_TOKEN are available in GitHub repository.

npm run release:ci

Manual Release

Make sure that the environment variables GITHUB_TOKEN and NPM_TOKEN are set or declared in .env and a productive build was previously created via npm run build.

npm run release

You can also test the release manually by running the following command:

npm run release:dry-run

FAQ

Will my HomeKit accessory be able to pair with the generated QR code?

The QR code is not the same as the pairing code, instead it consists of several parameters such as the category, a specific version and other parameters. This generated setup payload is the actual content of the QR code and can be generated with the HomeKit Accessory Simulator (HAS) as well.

qrcode

How do I find out the setup id of my HomeKit Accessory?

Scan the QR code with a QR scanner of your choice. You should get a text starting with X-HM://.... . The next 9 characters are the combination of the different parameters like the pairing code and the category. The remaining characters are the setup id.

X-HM://0081YCYEP3QYT ◄── Scanned Setup Payload

X-HM:// 008YCYEP 3QYT
  ▲        ▲      ▲
  │        │      └─── Setup ID
  │        └── Combination of Parameters (first 9 characters)
  └─ Starting Content

Author

Simon Golms

Show your support

Give a ⭐️ if this project helped you!

License

Copyright © 2021 Simon Golms.
This project is MIT licensed.

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].