在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:tritter/homebridge-brewer开源软件地址:https://github.com/tritter/homebridge-brewer开源编程语言:TypeScript 100.0%开源软件介绍:homebridge-brewerHomebridge plugin for brewing coffee with your Nespresso machines using HomeKit accessories. FeaturesWith this plugin you can brew coffee using Siri and schedule your coffee within your 'Good Morning' Scene! The plugin exposes the following switches to Homekit: Ristretto, Espresso, Lungo, Americano, Water. Besides, there are also sensors:
Capsule CountThe status of the capsule count is reflected using the battery level inside the Home App. By default the 'max_capsule_count' count is 0, this is the maximum number your machine can decrement. First make sure to setup the amount of capsules left inside the Nespresso App. Whenever this plugin runs, you can't connect via the app, because the machine can only connect one device at a time! Let's say 500. This means that the battery percentage will be 50%; 500 capsules left of the max_capsule_count 1000. Below 10% Homekit will provide a low battery warning to remind you to order new cups. InstallationMake sure your system matches the prerequisites. Also when using a weaker Bluetooth Homekit-Server (especially a Raspberry Pi), make sure its close to the machine before taking it furhter away. The Nespresso machines require a strong connection otherwise you will see random disconnects before the brew even started. Whenever it works you can try to move the Homekit-Server further away. Noble is BLE central module library for Node.js used to communicate with the coffee machines. These libraries and their dependencies are required by the Noble library and provide access to the kernel Bluetooth subsystem: sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev For more information see the Noble documentation. Install homebridge and this plugin
Homebridge configurationUpdate your Homebridge "platforms": [
{
"machines": [
{
"name": "Expert_AHD34DDBADCC",
"token": "DA-03-4B-BB-AA-CC-AA-CC",
"temperature": "Medium"
}
],
"platform": "Brewer"
}
],
NameYou can find the name quite easily add the platform and check the homebridge log. If your homebridge server has bluetooth enabled and is close enough to the machine you will see something like this:
TokenIn order to retrieve the token (you need to snoop the bluetooth packets:
This will search hexdump the log file (btsnoop_hci.log) and then grep for the sequence and 8bytes wildcards <..>, which is the authKey. Write between the bytes dashes to match the pattern which is required by this plugin. For example you will find:
Take the last part (8 bytes) to creat the token:
LegalNespresso is an registered trademarks of Nestlé Nespresso S.A. This project is in no way affiliated with, authorized, maintained, sponsored or endorsed by Nespresso or any of its affiliates or subsidiaries. CreditsThese users/repositories helped making the Homekit integration possible: @farminf - https://gist.github.com/farminf/94f681eaca2760212f457ac59da99f23 @fsalomon - https://github.com/fsalomon/nespresso-expert-ble @petergullberg - https://github.com/petergullberg/brewbutton And me and yes, I like coffe ;)
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论