Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration in Home Assistant #1

Open
mccoy88f opened this issue Dec 26, 2020 · 3 comments
Open

Integration in Home Assistant #1

mccoy88f opened this issue Dec 26, 2020 · 3 comments

Comments

@mccoy88f
Copy link

Using mqtt is possible to integrate in Home Assistant.
As i read on your page (keyble, keyble-mqtt, and keyble-nodered) you think to create add-on or something else to integrate in home assistant?
Also il will be possible to use RPi4 bluetooth or i esphome and a project for using esp32 bluetooth?
Thanks a lot execelent work
Antonello (from Italy)

@oyooyo
Copy link
Owner

oyooyo commented Dec 28, 2020

As i read on your page (keyble, keyble-mqtt, and keyble-nodered) you think to create add-on or something else to integrate in home assistant?

I do not know if I will be providing a driver/plugin (or whatever they call it) for directly using keyble in Home Assistant some day, since I personally do not use Home Assistant. Right now, I don't plan to do so.

Also il will be possible to use RPi4 bluetooth or i esphome and a project for using esp32 bluetooth?

I'm not sure if I understand your question correctly. I personally won't be providing a keyble implementation for ESP microcontrollers, my C/C++ skills are too bad. But there already is an implementation of keyble for ESP32, done by @MariusSchiffer:
https://github.com/MariusSchiffer/esp32-keyble
I haven't personally tried it, but if I remember correctly, his implementation was working 99% until he discovered a major problem, that he could not properly use Bluetooth and WiFi/MQTT at the same time, so he stopped working on it.
But recently, someone came up with the idea for a workaround and created a fork that I think is working:
https://github.com/tc-maxx/esp32-keyble

As for the RPi4 bluetooth: Basically, any bluetooth adapter should work. But if I remember correctly there are or were certain problems with the bluetooth adapter built into the Raspberry Pi. I cannot remember if the problem is solved, but in either case:
If there is a problem with the RPi4 bluetooth, then the problem is ultimately not in keyble, but in noble, the bluetooth library that keyble uses.

@mccoy88f
Copy link
Author

I understand all you say. Thanks for your works
I'm testing now keyble-mqtt on a raspberry pi 3 (raspian lite and only keyble app)
How to set it to run on boot and restart if app close?
Thanks a lot

@oyooyo
Copy link
Owner

oyooyo commented Dec 31, 2020

The usual way would probably be to set up systemd service. The documentation for keyble has a short section on this:
https://github.com/oyooyo/keyble/#installing-as-a-mqtt-service
...but the documentation is outdated, and will not work as described without a few changes.

I should add a similar, up-to-date section to the keyble-mqtt documentation. Unfortunately, I have little experience with setting up systemd services so far, that part of the documentation was written by someone else.

I created a new issue for this: #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants