在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:hjdhjd/homebridge-blinds-cmd开源软件地址:https://github.com/hjdhjd/homebridge-blinds-cmd开源编程语言:TypeScript 57.7%开源软件介绍:Homebridge Blinds CommandHomeKit support for non-smart motorized blinds through command-line scripts.
Why use this plugin for window blinds support in HomeKit?These days, there is a decent selection of window blinds available on the market with native HomeKit support. However, there are also blinds systems, such as Somfy, which don't have any meaningful HomeKit support. Add to that the proprietary remote protocols and you're in for a challenge in trying to make window blinds part of your HomeKit smart home. There are other blinds plugins for Homebridge that are either tailored to specific blinds solutions, or more broadly focused on blinds that can be controlled through HTTP -- and they do a great job if that's what you're seeking. You can certainly do those things with this plugin, though you'll be writing your own scripts to do so. So why use this plugin in particular in this scenario? Well, in some cases you've got complex state conditions you want to reflect in HomeKit. For instance, let's take the example of a living room with two motorized Somfy shades (I'm picking Somfy for this example because it's what I'm most familiar with, but other brands have similar concepts). In our example, we have a remote control that has three presets configured - one to control the first shade, one to control the second shade, and one to control both simultaneously. Controlling each of the individual shades is an easy enough task for most of the blinds-related Homebridge plugins. That last scenario though can be tricky. What if you want to expose, for the sake of argument, the three presets described above as three shades in HomeKit. What you'd like is that when you raise or lower that third preset, the one that controls two shades simultaneously, that HomeKit also reflects the updates across those shades. This type of relational mapping between shades and presets can be challenging to make work. That's what this plugin is for. Allowing you to do easy things like controlling an individual shade and providing you the flexibility to implement more complex things, should you choose to do so, in the form of command-line scripts. ChangelogChangelog starting with v2.0 is available here. InstallationIf you are new to Homebridge, please first read the Homebridge documentation and installation instructions before proceeding. If you have installed the Homebridge Config UI, you can intall this plugin by going to the If you prefer to install sudo npm install -g homebridge-blinds-cmd ConfigurationI strongly recommend using the Homebridge Config UI rather than editing your config.json directly. It does a good job of showing you all the options and always generating a valid configuration so you don't get stuck on typos or looking for stray commas in your For those that prefer configuring things directly, add the accessory in "platforms": [
{
"platform": "Blinds Command",
"blinds": [
{
"name": "Downstairs Window Blinds",
"manufacturer": "Somfy",
"model": "Sonesse",
"serial": "1234",
"up": "/path/to/your/raise_blinds_script",
"down": "/path/to/your/lower_blinds_script",
"status": "/path/to/your/blinds_state_script",
"stop": "/path/to/your/stop_blinds_script",
"transitionInterval": 10,
"refreshRate": 5
}
]
}
] Options
Script inputs and outputs
There are two example scripts to get you started in the scripts folder. They should help you get started whether you're using a Somfy URTSI or a Bond Bridge to control your shades. NotesThis plugin doesn't query nor have direct knowledge of the actual position of your blinds. Instead, it emulates the position based on your most recent request to raise / lower the blinds (i.e. it remembers what you last asked it to do and reports that back to HomeKit). Some blinds, such as Somfy, don't support querying their specific state. That said, if you do wish to use a specific position, you can do so. It's passed as the last argument to the up and down script configuration options. How you choose to handle it, is up to you. What your plugin should output is the position it wants to HomeKit (e.g. 100 if the blind is fully open). Additionally, if you specify A sample control script for Somfy is included. This script is provided as an example of what is possible. Your mileage may vary - this script was tested on a Mac and should work on other platforms, best of luck. It assumes the use of a Somfy URTSI attached to an iTach Flex) via serial. The script is fairly robust and allows for multiple URTSI scenarios including multiple URTSIs and shade groups. I've also used, and currently use, a Bond Bridge. It's a terrific device with builtin support for Somfy RF signals as well as a wide variety of IR and RF formats for shades, ceiling fans, and fireplaces. I highly recommend it as a more robust alternative to the Somfy URTSI, and at a much better price point. Plugin Development DashboardThis is mostly of interest to the true developer nerds amongst us. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论