• PUDN用户
  • Java
  • 410KB
  • zip
  • 0
  • 1 积分
  • 0
  • 2021-03-09 08:51
# HomeKit Switch Example This example demonstrates ESP RainMaker + HomeKit integration using the [esp-homekit-sdk]( ## Setup Compiling this example would need the [esp-homekit-sdk]( repository. Clone it at a suitable location using: ``` git clone --recursive ``` Export the path to this repository using: ``` export HOMEKIT_PATH=/path/to/esp-homekit-sdk/ ``` ## Build and Flash firmware Follow the ESP RainMaker Documentation [Get Started]( section to build and flash this firmware. Just note the path of this example. Note that, on bootup, the serial terminal will show 2 QR codes, one small and the other large. The smaller QR code is to be used for HomeKit pairing from the iOS Home app, whereas the larger one is supposed to be used with ESP RainMaker app. > Note: HomeKit pairing can be done only after the device connects to the Wi-Fi network. However, if you have the MFi variant of the ESP HomeKit SDK, the QR code can be used for WAC Provisioning as well. > The same QR code may be shown multiple times, so that it is available on screen whenever the device is in HomeKit pairing mode. ## What to expect in this example? - This example uses the BOOT button and RGB LED on the ESP32-S2-Saola-1 board to demonstrate a switch with HomeKit integration. - The LED state (green color) indicates the state of the switch. - Pressing the BOOT button will toggle the state of the switch and hence the LED. This will also reflect on the phone app. - Toggling the button on the phone app should toggle the LED on your board, and also print messages like these on the ESP32-S2 monitor: ``` I (16073) app_main: Received value = true for Switch - power ``` - Once the board is set up, it can also be paired from iOS Home App. Follow the steps as given in next section. ## Using with iOS Home app Open the Home app on your iPhone/iPad and follow these steps: - Tap on "Add Accessory" and scan the small QR code mentioned above. - If QR code is not visible correctly, you may use the link printed on the serial terminal or follow these steps: - Choose the "I Don't Have a Code or Cannot Scan" option. - Tap on "ESP RainMaker Device" in the list of Nearby Accessories. - Select the "Add Anyway" option for the "Uncertified Accessory" prompt. - Enter 11122333 as the Setup code. - You should eventually see the "ESP RainMaker Device added" message. - Give a custom name, assign to a room, create scenes as required and you are done. Now, any changes from ESP RainMaker will reflect on HomeKit and vice-versa. Changes from push button will reflect on both. ### LED not working? The ESP32-S2-Saola-1 board has the RGB LED connected to GPIO 18. However, a few earlier boards may have it on GPIO 17. Please use `CONFIG_WS2812_LED_GPIO` to set the appropriate value. ### Reset to Factory Press and hold the BOOT button for more than 3 seconds to reset the board to factory defaults. You will have to provision the board again to use it.
    • rainmaker Contact-crx插件
      Rainmaker联系人可帮助使用Rainmaker系统的酒店发送引人注目的可转换优惠。 使用AI读取电子邮件,然后购买相关的可用率和库存并将其显示给预订代理,以便他们可以快速,简单地发送报价。 这样可以节省酒店预订代理商...
    • Spurious:一个纯Swift测试对象存根库
      rainMaker.makeRain() // goodness no! Spurious使测试时更容易对对象依赖项进行存根和伪造。 用法 给定 class FakeRainMaker : RainMaker , SpuriousTestable { func makeRain () -> String { // will register ...
    • Splatoon2api:一个非常简单的库,用于获取有关Splatoon 2的一些信息,例如当前地图,将来的地图,SplatNe
      Splatoon2api 一个非常简单的库,用于获取有关 Splatoon 2 的一些信息,例如当前地图、未来地图、SplatNet Gear、有关 SalmonRun 游戏模式的信息。 此包使用网站的 API。 安装 要安装模块,只需执行以下命令: ...
    • Rainmaker Contact-crx插件
      Rainmaker联系人可帮助使用Rainmaker系统的酒店发送引人注目的可转换优惠。 使用AI读取电子邮件,然后购买相关的可用率和库存并将其显示给预订代理,以便他们可以快速,简单地发送报价。 这样可以节省酒店预订代理商...
    • dhtmlxgrid源码
    • co-author-menu
      该插件在RainMaker平台的管理栏上添加了一个自定义菜单,因为用户无权访问管理侧栏菜单 在前端显示 要将其显示在前端,可以使用以下两种方法: 将此添加到您的模板<?php do_action('show_co_authors'); ?> &...
    • power-analyzer
      功率分析仪 背景 该项目的灵感来自。 在视频中,他使用了一个名为的网站来分析。 该网站要花很多钱,坦率地说,我认为我可以使用python和图库来做类似的事情。 例子 未来作品 我正计划使用其他绘图库来改善交互性和...
    • ceiling-fan-iot:吊扇控制-(无嗡嗡声)
      吊扇控制-(无嗡嗡声) 该项目的目的是开发一种无嗡嗡声的电子吊扇设备,该设备可以通过旋转编码器进行远程控制(IOT)或本地控制。 电子无嗡嗡声 为了防止嗡嗡声,使用电容电抗来限制电动机定子中的电流,并且由于...
    • FrozenWasteland:VCV机架插件
      Frozen Wasteland VCV插件 一系列不寻常的插件,可以为您的补丁程序增添些酷感。 BPM LFO 节奏同步的LFO。 CV时间倍增/除法控制,以创建与时钟一定比例同步的LFO 相位控制允许LFO偏移(cv可控)。...