4 ms·
Just this weekend I made a project to hookup my standing desk and treadmill to Home Assistant, and used ESPHome as the coordinator. Took me a bit to understand
by hackcasual 4y ago
Just this weekend I made a project to hookup my standing desk and treadmill to Home Assistant, and used ESPHome as the coordinator. Took me a bit to understand how to add custom components, but once I did, got a nice collection of buttons added to my dashboard with no UI work.
Really the only downside, and it's likely something I could handle with more digging, is the task switching granularity of the main loop causes the desk to overshoot and then have to correct when going for a height. My desk control loop reads from the UART interface of the desk display, and activates the up and down buttons. If there's too much time in between loops, it'll have traveled too far. Worst case, I could just get a cheap dedicated controller like an attiny85 to handle controlling it with better real-time constraints.
- cptskippy 4y agoDid you just expose the UART as sensor to HA? If so, you might try a custom UART component with a loop that runs on the ESP to manage the desk level. Then have input and output components for sending and receiving the desired height from HA. https://esphome.io/custom/uart.html https://esphome.io/custom/uart.html