开源软件名称: myluna08/homebridge-rituals开源软件地址: https://github.com/myluna08/homebridge-rituals开源编程语言:
JavaScript
100.0%
开源软件介绍: Homebridge-Rituals
v1 is functional release, ENJOY!!
English |Español
Homebridge Rituals is a homebridge-plugin to manage a Rituals Genie over homebridge infrastructure.
Homebridge is a lightweight NodeJS server you can run on your home network that emulates the iOS HomeKit API.
Since Siri supports devices added through HomeKit, this means that with Homebridge you can ask Siri to control devices that don't have any support for HomeKit at all. For instance, using just some of the available plugins, you can say:
With this plugin you can do
Siri, turn on the Genie.
Siri, turn off the Genie.
Before begin, (assumptions)
Your genie has been registered using Official Rituals App.
Your genie is working fine. (obviously)
Your homebridge is working fine and has been added to your home app as bridge. If not, please take a look to Installation from zero .
Find more about on Official Rituals Site
01. Installation
With npm -i or if you are using manual plugin module installation.
npm -i homebridge-rituals
Otherwise you can use throught Homebridge UI-X the plugin search engine and just write : "homebridge-rituals" or "rituals" and click INSTALL
02. Installation from zero
This plugin is under development, (Unstable installation 0.0.x) (stable installation 1.0.0 or greather.. )
Node v4.3.2 or greater is required. Check by running: node --version
. The plugins you use may require newer versions.
On Linux only: Install the libavahi-compat-libdnssd-dev package: sudo apt-get install libavahi-compat-libdnssd-dev
Install Homebridge using: npm install -g homebridge
or sudo npm install -g --unsafe-perm homebridge
(see below)
Install the plugins using: npm install -g <plugin-name>
Create the config.json
file.
03. Configuration in config.json
FOR 1 GENIE ONLY
One installed, you must modify your config.json file and add the following data:
accessory (Required) = "Rituals"
account (Required) = "[email protected] " < that is the mail you are using in Rituals App Registration.
password (Required) = "yyyyyyyy" < that is the password you are using in Rituals App.
name (Optional) = "my Genie" < a name that you can assign, if not, "Genie" name has been assigned.
SAVE your config.json file and RESTART homebridge.
"accessories" : [
{
"accessory" : " Rituals" ,
"name" : " My Genie" ,
"account" : " [email protected] " ,
"password" : " yyyyyyy"
}
],
MULTIPLE GENIES IN YOUR account
If you have more than one genie in your account, use the standard config for the first time and see the LOG. The Genie identifiers should appear in the log. Then add the "hub" key in the config to indicate what genie you want to control.
Declare standard mode
"accessories" : [
{
"accessory" : " Rituals" ,
"name" : " Genie" ,
"account" : " [email protected] " ,
"password" : " yyyyyyy"
}
],
Wait for the LOG , like this..
[7/1/2020, 1:24:44 PM] [Genie] Hub NOT validated!
[7/1/2020, 1:24:44 PM] [Genie] There are multiple hubs found on your account
[7/1/2020, 1:24:44 PM] [Genie] Key in your config.json is invalid, select the proper hub key.
[7/1/2020, 1:24:44 PM] [Genie] Put one in your config.json > https://github.com/myluna08/homebridge-rituals
[7/1/2020, 1:24:44 PM] [Genie] ---
[7/1/2020, 1:24:44 PM] [Genie] Name: FirstGenie
[7/1/2020, 1:24:44 PM] [Genie] Hublot: LOTXXX-XX-XXXXX-XXXXX
[7/1/2020, 1:24:44 PM] [Genie] Hub: f0123456789f0123456789f0123456789f0123456789f0123456789f01234567
[7/1/2020, 1:24:44 PM] [Genie] Key: 0
[7/1/2020, 1:24:44 PM] [Genie] ---
[7/1/2020, 1:24:44 PM] [Genie] Name: SecondGenie
[7/1/2020, 1:24:44 PM] [Genie] Hublot: LOTXXX-XX-XXXXX-XXXXX
[7/1/2020, 1:24:44 PM] [Genie] Hub: a0123456789a0123456789a0123456789a0123456789a0123456789a01234567
[7/1/2020, 1:24:44 PM] [Genie] Key: 1
declare every accesory with the correspondent hub identifier
"accessories" : [
{
"accessory" : " Rituals" ,
"name" : " Genie 01" ,
"account" : " [email protected] " ,
"password" : " yyyyyyy" ,
"hub" : " f0123456789f0123456789f0123456789f0123456789f0123456789f01234567"
},
{
"accessory" : " Rituals" ,
"name" : " Genie 02" ,
"account" : " [email protected] " ,
"password" : " yyyyyyy" ,
"hub" : " a0123456789a0123456789a0123456789a0123456789a0123456789a01234567"
}
],
Restart Homebridge
04. Limitations
It will appears in you home app like a Fan Accessory.
You can control start/stop.
Fan control is not available in this release (see changelog).
You can't see other properties like in the app, maybe later.
The most important limitation, with this very first version you can only manage only 1 genie under the rituals account.
05. Following Features Implementation (Nice to have in the future)
Yeah, many work .. but you can helpme with a coffee ..
06. Credits && Trademarks
Rituals & Genie are registered trademarks of Rituals Cosmetics Enterprise B.V.
07. ChangeLog
1.1.14 Fix error when homekit starts
1.1.13 Fix error with StatusCodes
1.1.12 Added control for rituals servers down on currentState
1.1.11 Added control for 503 unresponsive rituals server
1.1.10 Add linting and fix up reference errors
1.1.9 Added control if Rituals Servers are down.
1.1.8 fix mistake
1.1.7 fix HUB in only one genie
1.1.6 fix UUID for persistance.
1.1.5 fix over log functions & fragance added.
1.1.4 force change UUID to avoid same
1.1.3 fix a defect with key with 1 genie only.
1.1.2 fix a defect with package.json in some cases.
1.1.1 Error ReferenceError: config is not defined solved.
1.1.0 adding debug traces, support more than 1 genie in your account and current version of genie 1.0 or 2.0, fragance only in (homebridge)
1.0.8 fix error using functions exposed by homebridge and adding new characteristic to use FAN rotator speed.
1.0.7 wrong, unstable version!
1.0.6 fix error with secure store, in some cases appears in homebridge logs permission errors.
1.0.5 too many logins to get hash, implementing secure store.
1.0.4 first release functional
1.0.3 fix errors on request, json bad fomatted
1.0.2 fix errors on_state, active_state
1.0.1 scheme works but nothing do
1.0.0 accessory registered successfully
请发表评论