Skip to content

Commit

Permalink
fix configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtistAOP committed Feb 28, 2021
1 parent 1e5b6a6 commit 7bdb60f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The add-on is installed like any other:

4. Click <kbd>Install</kbd> and give it a few minutes to finish downloading.

5. Configure at **Configuration** tab according to the instructions of the selected add-on:
5. Configure at **Configuration** tab or separate file in [**Configuration folder**](https://www.home-assistant.io/getting-started/configuration/) according to the instructions of the selected add-on:
- [Cybele](./cybele)

6. Click <kbd>Start</kbd>, give it a few seconds to spin up.
Expand Down
2 changes: 1 addition & 1 deletion cybele/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ENV LANG C.UTF-8
WORKDIR /app

COPY --from=build-env /app .
RUN ln -s /data/options.json ./config.json
RUN ln -s /config/cybele.json ./config.json

RUN apk --no-cache update
RUN apk add --no-cache nodejs
Expand Down
38 changes: 24 additions & 14 deletions cybele/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,44 @@
Integration of original [Cybele project](https://github.com/Hypfer/Cybele) to Home Assistant's Hass.io.
**Cybele** is BLE to MQTT Gateway for Smarthome and IoT Devices.

Checked configurations:
Tested configurations:
- Raspberry Pi 4B

Checked devices:
Tested devices:
- Xiaomi Mi Smart Kettle YM-K1501

## Installation

First of all study [base instruction](../README.md).

In simple case:
- Create file \<config-folder\>/cybele.json like example below
- Replace _my_user_ and _my_password_ with your credential to MQTT broker.
- Add your devices.

Example of configuration:
```
mqtt:
url: 'mqtt://mqtt:mqtt@core-mosquitto'
dongles:
- hciDevice: hci0
mode: le
services: []
devices:
- type: MiKettleDevice
friendlyName: Mi Kettle
mac: 'B8:7C:6F:7C:0A:31'
productId: 275
{
"mqtt": {
"url": "mqtt://my_user:my_password@core-mosquitto"
},
"dongles": [
{
"hciDevice": "hci0",
"mode": "le",
"services": [],
"devices": [
{
"type": "MiKettleDevice",
"friendlyName": "Mi Kettle",
"mac": "B8:7C:6F:7C:0A:31",
"productId": 275
}
]
}
]
}
```

The configuration is the same to [the original configuration file](https://github.com/Hypfer/Cybele/blob/master/config.default.json). Just in YAML format.
The configuration is the same to [the original configuration file](https://github.com/Hypfer/Cybele/blob/master/config.default.json).
For more information read the [Cybele instruction](https://github.com/Hypfer/Cybele/blob/master/Readme.md).
23 changes: 3 additions & 20 deletions cybele/config.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,12 @@
{
"name": "Cybele",
"version": "1.0.0",
"version": "1.0.1",
"slug": "cybele",
"description": "BLE to MQTT Gateway for Smarthome and IoT Devices",
"url": "https://github.com/ArtistAOP/hassio/tree/main/cybele",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "application",
"boot": "auto",

"host_dbus": true,

"options":
{
"mqtt": {
"url": "mqtt://my_user:my_password@core-mosquitto"
},
"dongles": [
{
"hciDevice": "hci0",
"mode": "le",
"services": [],
"devices": [
]
}
]
},
"schema": false
}
"map": ["config"]
}

0 comments on commit 7bdb60f

Please sign in to comment.