• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

SkyJohn/Homebridge-SOMA-Smart-Shades: How To Guide on controlling a SOMA Smart S ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

SkyJohn/Homebridge-SOMA-Smart-Shades

开源软件地址:

https://github.com/SkyJohn/Homebridge-SOMA-Smart-Shades

开源编程语言:

Python 97.6%

开源软件介绍:

How To Guide on controlling a SOMA Smart Shade with Apple's Home App using Homebridge on a Raspberry Pi 3 Model B


Items needed for this project:

  • 1x iOS 10 device running Apple's Home App
  • 1x Roller Blind (Example: LINK)
  • 1x SOMA Smart Shade (you can buy them from: LINK)
  • 1x Raspberry Pi 3 Model B (you can buy them from: LINK)

Mount your Smart Shade.

Install and setup your Smart Shade into your desired location as normal using the Smart Shades app, a guide for doing this can be found here: https://youtu.be/9DTAcZiiFYU


Setup Your Raspberry Pi & Install Homebridge.

Follow this step by step guide to install the HomeBridge service on your Raspberry PI which is used to connect/bridge your non-HomeKit accessories and make them HomeKit enabled

https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi


Configuration.

Copy the files to the Raspberry Pi.

  • Download and place the control.py, blinddown.sh & blindup.sh files in your /home/pi directory.

Find the Bluetooth MAC address of the Smart Shade.

You need to find the Bluetooth MAC address of the SOMA Smart Shade so your Raspberry Pi can communicate with it.

  • Enable your Bluetooth adaptor on the Raspberry Pi using the command:

    sudo hciconfig hci0 up
    
  • Now scan for your Smart Shade (it will normally be identified with the name RISExxx) using the command:

    sudo hcitool lescan
    
  • Make a note of the Smart Shades MAC address.

  • Open the blinddown.sh and blindup.sh files and edit the MAC address codes (00:00:00:00:00:00) so that they match the MAC code of the Smart Shade that you just found.

Configure Homebridge to create a switch to move the shades up and down.

  • Install the Script2 homebridge plugin using the command:

    sudo npm install -g homebridge-script2
    
  • Configure the plugin to create a switch, on your Raspberry Pi go to your /home/pi/.homebridge folder and edit the config.json file

Add in the following code under the accessories section.

"accessories": [
{
  "accessory": "Script2",
  "name": "Blind",
  "on": "./blinddown.sh",
  "off": "./blindup.sh",
  "fileState": "./script.flag",
  "on_value" : "true"
}
]

Finish

Now that everything is installed and configured you should be able to run Homebridge on your Raspberry Pi with the command:

homebridge

And if you did everything correctly a new Blind accessory switch will show up in your Home.app on your iPhone or iPad

Turning the Switch OFF will raise your blind and turining it ON will lower it.


Guide created by SkyJohn on March 25th 2017


Changelog

1.0.0

  • How To Guide created.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
robmadole/homebrew-openresty: Tap for Homebrew that supports OpenResty发布时间:2022-06-14
下一篇:
GoReleaser · GitHub发布时间:2022-06-14
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap