-
Notifications
You must be signed in to change notification settings - Fork 56
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
[No issue] working setup for Home Assistant + ESPHome + esp32dev + CB28M1B-1 + HS13A-1 #30
Comments
Hi @guevara777 , in the image you connect GPIO 18 and 19, but in the code you define the tx and rx for 16 and 17. Is that just a typo? |
The Image is wrong. In the code it´s right. I use the GPIO-Pins 16 and 17 like this:
I also added a position-action since i posted it here. You can populate the cover to Alexa and use voice commands like "set the desk to 70%". for this you have to add this to the yaml-file:
|
Hi guys. If I add the second part (Move desk to desired position) i get a double definition error from position_action. I‘m a noob in coding and do need help there. Can anyone help me? |
Thank you to @iMicknl for helping me out with this! I´d like to share my working setup with others :)
Hardware
Disclaimer: I power my ESP32 with USB. I did not test to power it via V5-Pin. Please check the Documentation of your Board!
Wiring
![image](https://user-images.githubusercontent.com/29648553/185910714-2b07601b-437f-413b-8f4a-a5a99c395c71.png)
ESPHome
Don`t forget to put this file -> https://github.com/iMicknl/LoctekMotion_IoT/blob/main/packages/esphome/desk_height_sensor.h
in the same folder as your .yaml-file for esphome!
Please add the following code at the botton of the yaml-file if you want to have a position control in Home Assistant. The Position-range is from 0% to 100% and you can use it with alexa like "set desk to 70%" if you populate the cover-entity to alexa (i did it with Nabu-Casa).
Picture of my setup
![image](https://user-images.githubusercontent.com/29648553/159672687-3bc9d15a-cb98-435c-868f-7896630fe56b.png)
Voice-Control with Alexa
You can control your desk via Alexa now. To do so, expose the button.sit and button.stand to alexa (i use Naba Casa for this). In the Alexa App i createt 2 routines that trigger the "Sit" and "Stand"-Scenes with a Voice command like "Alexa, im stehen arbeiten" (Alexa, work standing).
The text was updated successfully, but these errors were encountered: