Turn your LoctekMotion/FlexiSpot standing desk into a smart desk!

Hi will it also work with an hs13b-1 (E7) ?

1 Like

Hey there @KrX , just got some first functionality on that board. The signal order on the rj45 is different and so far I can only activate the presets, not move it up and down and the height sensor readout isn’t working either.
I’m using the code from the HS13A-1 so if anyone has an idea which parts to change for the HS13B-1 please chime in.

This is the cable order I’m using right now for RX, TX, PIN 20 and +5V/GND (sorry for low quality handwritten notes, just wanted to post it here before I might forget to continue on this for the next couple weeks haha)

Hi, i forgot to reply here.

Meanwhile is solved it and also got it extended with more commands:

EDIT: here i used the wire config for HS01B-1

1 Like

Hello everyone, anyone is getting error e7 or e8 when using this? When I have esp connected to my desk everything works fine but after night when my server is being turned off I’m getting one of these errors without it I do not have it so it is not problem with desk or motors. I’m using CB38M2L(IB)-1 unit with HS11A-1 panel connected like HS03

Passing over this thread i think i know why you were thinking that the order is reversed in the contributor table.
if you look at both columns they are in the exact reverse order like in a mirror
it’s because it’s what is happening if you use a RJ45 connector, RJ45 cables and plug must be reversed (we call it crossed cables) in order to work as expected

But my question for @imick is why in 1st do you used a RJ45 connector ? won’t have it worked using dupont connectors straight to the ESP32 corresponding pins ?

I have a HS13A1 model and i will try to setup such an integration

I’m really keen to get my FlexiSpot EQ5 desk into HA, but not having any luck so far. I posted about my desk in the issues on the github repo mentioned here, but I wondered if anyone on this forum has managed to achieve this with a similar desk/motor model as I have?

My control box has a second ethernet port available, thus it does not make sense to directly plug in with dupont connectors. I use RJ45 ethernet connector on one side, on the other side I use dupont cables directly to my ESP32.

I didn’t made myself explicit enough sorry
By directly i was meaning exactly what you are refering. Direct from the output of the cut ethernet cable
I was confused by the photos that show à white rj45 box.

So i will follow the same setup as you thanxs for the clarification.

I own a Fezibo brand standing desk. The control box does have the RJ45 but unclear if my box is the same as yours or similar. Would love some guidance as this project has been the goal since purchase :grin:

1 Like

/smacks forehead

Of course, that makes sense!

Thank you very much for this great tutorial! I replicated it with my Flexispot/Sanodesk Unit and it works like a charm!

@pb2731 Hi, which FlexiSpot / Sanodesk model do you have? I’m hoping to open up my EQ5 desk control box (CB38M2D(PB)-2) to see what board is inside

Hi, I am stuck with the configuration in ESPHome. The two files are in the ESPHome directory. I took the config from the example, but get all sorst of errors whes trying to install the the yaml file. This goes on for pages…

Can someone tell me what I am doing wrong?

In file included from src/main.cpp:118:
src/desk_height_sensor.h:74:56: error: stray '\302' in program
   <title>LoctekMotion_IoT/desk_height_sensor.h at main · iMicknl/LoctekMotion_IoT</title>
                                                        ^
src/desk_height_sensor.h:74:57: error: stray '\267' in program
   <title>LoctekMotion_IoT/desk_height_sensor.h at main · iMicknl/LoctekMotion_IoT</title>
                                                         ^
In file included from src/main.cpp:118:
src/desk_height_sensor.h:229:10: warning: missing terminating ' character
     <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-site-search-form" role="search" aria-label="Site" data-scope-type="Repository" data-scope-id="344620646" data-scoped-search-url="/iMicknl/LoctekMotion_IoT/search" data-owner-scoped-search-url="/users/iMicknl/search" data-unscoped-search-url="/search" data-turbo="false" action="/iMicknl/LoctekMotion_IoT/search" accept-charset="UTF-8" method="get">
          ^
src/desk_height_sensor.h:229:10: error: missing terminating ' character
     <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-site-search-form" role="search" aria-label="Site" data-scope-type="Repository" data-scope-id="344620646" data-scoped-search-url="/iMicknl/LoctekMotion_IoT/search" data-owner-scoped-search-url="/users/iMicknl/search" data-unscoped-search-url="/search" data-turbo="false" action="/iMicknl/LoctekMotion_IoT/search" accept-charset="UTF-8" method="get">
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/desk_height_sensor.h:286:75: error: stray '\342' in program
       <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
                                                                           ^
src/desk_height_sensor.h:286:76: error: stray '\206' in program
       <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
                                                                            ^
src/desk_height_sensor.h:286:77: error: stray '\265' in program
       <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
                                                                             ^
src/desk_height_sensor.h:291:56: error: stray '\342' in program
       <span class="d-inline-block ml-1 v-align-middle">↵</span>
                                                        ^
src/desk_height_sensor.h:291:57: error: stray '\206' in program
       <span class="d-inline-block ml-1 v-align-middle">↵</span>
                                                         ^
src/desk_height_sensor.h:291:58: error: stray '\265' in program
       <span class="d-inline-block ml-1 v-align-middle">↵</span>
                                                          ^
src/desk_height_sensor.h:333:75: error: stray '\342' in program
       <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
                                                                           ^
src/desk_height_sensor.h:333:76: error: stray '\206' in program
       <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
                                                                            ^
src/desk_height_sensor.h:333:77: error: stray '\265' in program
       <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
                                                                             ^
src/desk_height_sensor.h:338:56: error: stray '\342' in program
       <span class="d-inline-block ml-1 v-align-middle">↵</span>
                                                        ^
src/desk_height_sensor.h:338:57: error: stray '\206' in program
       <span class="d-inline-block ml-1 v-align-middle">↵</span>
                                                         ^

hi, I have a desk from a different manufacturer, but the motor control box also has two RJ-45 ports. My question is - can I plug the DIY remote controller in the second RJ-45 slot or do I have to create a passthrough box like on the pictures in this thread - so that the original physical controller and the DIY one are on the same connection?

Hello, did you figure it out? I am thinking of using a cd4066be chip which acts like a relay switch. It can emulate a push button electronically by closing a circuit for low voltage appliances. If you found other solution, very interested with your feednack, I should be receiving the desk soon and will try this option :slight_smile:

Firstly, let me apologise as I think Im about to ask a stupid question having never used ESP 32 before.

What kit wiould I actually need to buy…Ive search for ESP32 to RJ45 and come up with this but then how do I power the ESP board…

How do I connect ESP 32 module to my computer? can it be done via ethernet…or does it all happen wireless/y?

Apologies again…mauybe I need to start from the beginning with ESP32

@tombom and @Gussir, did you guys went any further on this? Having the same challenge as in making the hcb107A-1 smart. Whats your progress?

I wasn’t able to use the chip so even though its a bit overkill, I used two relays to emulate the two switches of the desk. The relays are in parallel of the standard manual switches so I can either use my relays to trigger up and down movement or the manual switches :
image
I also have an Ultrasonic sensor and using a bit of automation I can asked the relay to turn off once I reached a certain height (sitted or standing). All of those position are then controled using a streamdeck

1 Like

Wow, thats a sophisticated way to solve that problem. A bit too much work for me for the moment, but hey, great work.

1 Like

Has anyone already got it to work with the Flexispot E7 Pro? The height of the desk is displayed correctly. Unfortunately, it cannot be moved and there is no other functionality either