Coder Social home page Coder Social logo

Comments (8)

devWaves avatar devWaves commented on August 15, 2024

I wasn't planning of having it as part of the main branch since the main intention of this project is to use MQTT with a smarthub and you can just connect Alexa/GoogleHome to your smarthub to control the devices that way

...but I added a separate branch for Alexa if you want to test it out. I just quickly wrote this and would need someone to test since I don't own alexa/echos. I have google homes which don't have a similar integration

https://github.com/devWaves/SwitchBot-MQTT-BLE-ESP32/blob/alexaBranch/Arduino%20IDE%20Files/SwitchBot-BLE2MQTT-ESP32.ino

You will need to add the FauxmoESP library and also manually add the AsyncTCP library using the zip https://github.com/me-no-dev/AsyncTCP/archive/master.zip

The code currently still requires that you have MQTT setup and working, but you should be able to make the calls directly from Alexa for bots and curtain (ON,OFF). Position isn't setup to work through alexa yet

The standard code heavily expects MQTT to be connected, so I would need to remove those checks in order to not use MQTT

Again, I coded this with zero Alexa testing since I don't own one, so good luck

from switchbot-mqtt-ble-esp32.

fabiosoft avatar fabiosoft commented on August 15, 2024

Hi, at home i own an Alexa Echo dot so i will test soon...according docs should be easy to implement percent position.
Maybe i will try to issue some voice commands to alexa and try to write some code.

I'll let you know :)

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 15, 2024

I can do the percentage part so u dont need to worry about that, the code now is just a preliminary test to see that it works for on/off. I might switch to espalexa... not sure yet

If it works I"ll make changes so you can disable the need for mqtt

from switchbot-mqtt-ble-esp32.

fabiosoft avatar fabiosoft commented on August 15, 2024

okok, anyway i'll use both alexa (voice) and mqtt with my hub.
If you need some logs and prints about input parameters provided by alexa...let me know.

Did you find some improvements to use espalexa over Fauxmoesp? Maybe light bulb colors?

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 15, 2024

Without an alexa/echo to test with it is difficult to tell if one is better than the other (fauxmoesp or espalexa). I know aircoookies WLED work and espalexa is slightly easier to install (no zip to download). espalexa didnt look like it was setup for dynamic device names though

from switchbot-mqtt-ble-esp32.

fabiosoft avatar fabiosoft commented on August 15, 2024

According to my experiments they are pretty mush the same, maybe the espalexa is more oriented to colors and brightness...as well as percentage but fauxmoesp also support boolean state and percent but colors are in a separate branch. The developer says he is not very happy with implementation.

Anyways both solutions seem to work good

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 15, 2024

@fabiosoft have u have the chance to test? if it works I'll look at removing the mqtt requirement

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 15, 2024

Closing this for now. Can be reopened later if needed

from switchbot-mqtt-ble-esp32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.