-
Notifications
You must be signed in to change notification settings - Fork 8
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
Command to turn on the machine #5
Comments
@bubez81 There's not currently a turn-on command, but that's a great idea for a new subcommand. As a workaround, you can ask for a beverage that requires parameters and not provide them, while also passing the
|
FWIW, I have never been able to connect to a machine multiple times w/Bluetooth. I've noticed that the machine will actively refuse a second connection, in fact. Earlier in the development of this project I was stumped a few times by the official app staying connected over bluetooth! I think that for this particular case, there would need to be some sort of arbitrator process that either re-broadcast a bluetooth signal, or proxied the bluetooth signal to wifi and allowed for network connections instead. I'd be more than happy to discuss a design for opening up a websockets server from the process and allowing multi-plexing that way! |
@bubez81 I added a new |
That's super-cool. If you open-source it, let me know and I'll link it in the README :) |
Oh it's very simple, in home assistant I add this command_line shell_command: prepara_espresso: /Users/michele/longshot/target/debug/longshot brew --device-name 8bb8f40d-4437-3e11-9fee-97d8c0584a48 --turn-on --beverage espressocoffee --coffee 30 --taste strong accendi_delonghi: /Users/michele/longshot/target/debug/longshot brew --beverage hotwater --device-name 8bb8f40d-4437-3e11-9fee-97d8c0584a48 --turn-on and then I create a card in Lovelace and call the service as a button:
|
Cool! I might link your comment here to the README to demo how you can integrate it into HA if you don't mind. :) |
sure! perfect! |
Hello, very interesting work!!! One question, it's possibile to only turn on the machine?
The text was updated successfully, but these errors were encountered: