aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-12-25 11:59:07 +0100
committerlonkaars <loek@pipeframe.xyz>2023-12-25 11:59:07 +0100
commite40d981609d206193df520a65abbf673cfb13ed1 (patch)
tree0757b3b69d6e9d92ae6fc3538d7ea62d30c468ba
parentf2c20b7a2c2c45532b2784746e57b60dd4627784 (diff)
restructure repo for HACS0.2.0
-rw-r--r--custom_components/beken/__init__.py (renamed from __init__.py)0
-rw-r--r--custom_components/beken/driver.py (renamed from driver.py)0
-rw-r--r--custom_components/beken/light.py (renamed from light.py)0
-rw-r--r--hacs.json5
-rw-r--r--install.sh4
-rw-r--r--manifest.json10
-rw-r--r--readme.md16
-rw-r--r--requirements.txt1
8 files changed, 15 insertions, 21 deletions
diff --git a/__init__.py b/custom_components/beken/__init__.py
index eb66857..eb66857 100644
--- a/__init__.py
+++ b/custom_components/beken/__init__.py
diff --git a/driver.py b/custom_components/beken/driver.py
index 5280d7d..5280d7d 100644
--- a/driver.py
+++ b/custom_components/beken/driver.py
diff --git a/light.py b/custom_components/beken/light.py
index 69b9b86..69b9b86 100644
--- a/light.py
+++ b/custom_components/beken/light.py
diff --git a/hacs.json b/hacs.json
index 6da0dd7..ad3d802 100644
--- a/hacs.json
+++ b/hacs.json
@@ -1,4 +1,5 @@
{
- "name": "Beken",
- "content_in_root": true
+ "name": "beken",
+ "zip_release": false,
+ "render_readme": true
}
diff --git a/install.sh b/install.sh
deleted file mode 100644
index 55650be..0000000
--- a/install.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-rm -rf venv
-python3 -m venv venv && venv/bin/pip3 install -r requirements.txt
-sudo setcap 'cap_net_raw,cap_net_admin+eip' venv/lib/python3.9/site-packages/bluepy/bluepy-helper
diff --git a/manifest.json b/manifest.json
index ff4226a..e64f650 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,11 +1,13 @@
{
"domain": "beken",
- "name": "Beken",
+ "name": "beken",
"documentation": "https://github.com/lonkaars/homeassistant-beken",
- "issue_tracker": "https://github.com/lonkaars/homeassistant-beken",
"codeowners": [ "@lonkaars" ],
"version": "0.2.0",
- "requirements": [],
- "iot_class": "cloud_polling"
+ "requirements": [
+ "bluepy==1.3.0"
+ ],
+ "iot_class": "assumed_state",
+ "integration_type": "entity"
}
diff --git a/readme.md b/readme.md
index fa19d8a..3365eee 100644
--- a/readme.md
+++ b/readme.md
@@ -1,15 +1,5 @@
# homeassistant-beken
-this used to be a homebridge plugin, but i switched from using homebridge to
-homeassistant because homeassistant has way more functionality. you can still
-get the homebridge plugin from
-[npm](https://www.npmjs.com/package/homebridge-beken) or by running `sudo npm i
--g homebridge-beken`, and the code for that plugin is in the releases section
-on this repo, though i don't intend on updating it anymore.
-
-> installation *should* work with hacs, though i just `git clone` it into my
-> `custom_components` directory because homeassistant is already janky.
-
- a simple homeassistant plugin that allows the control of a bulb that goes by
many names:
- Shada Led's light
@@ -18,4 +8,10 @@ on this repo, though i don't intend on updating it anymore.
- [here's](https://wiki.fhem.de/wiki/BEKEN_iLedBlub) the bluetooth protocol
definition.
- sort of stable
+- does require manual bluetooth pairing using `bluetoothctl` (or similar) on
+ the device running homeassistant
+> The following command was in a separate file, I don't remember if it was a
+> temporary fix or is still required: `sudo setcap
+> 'cap_net_raw,cap_net_admin+eip'
+> venv/lib/python..../site-packages/bluepy/bluepy-helper`
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100644
index 356deaa..0000000
--- a/requirements.txt
+++ /dev/null
@@ -1 +0,0 @@
-bluepy==1.3.0