You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I have a Jarvis desk with a JCB36N2CA-230 controller. This esphome component works for the most part with a D1 Mini and a RJ11 cable, but I am not able to use the goto_height() function. I tried the recommended config with the height number entity and another button with a lambda as suggesting in the full config.
For instance, with the following config (full config is available near the end of the issue):
[...]button:
- platform: templatename: "Go to 100cm"on_press:
lambda: "id(my_desk).goto_height(100);"
I am not sure what that means in practice, though. I see that the command 0x1B is the one used to send the "set height" instruction to the controller, but not sure what the 0x1B response is.
The preset commands work, and the stop command works as well. The esphome module is also able to read the min/current/max heights, and the values of each preset. The height is correctly read, and when I use the desk panel, everything looks good and in sync.
It's just the "go to height" command that does not work. ssieb/esphome_components#40 mentions some variants for decoding the height value, but that isn't the problem here.
Also, FWIW, I am using Home Assistant to control the desk via the esphome module. Thanks!
my full/latest esphome config
esphome:
min_version: 2024.11.0name_add_mac_suffix: falsename: desk-controllerfriendly_name: Desk Controlleron_boot:
# don't touch if you don't know what you're doing!priority: 0# when mostly everything else is donethen:
- lambda: "id(my_desk).request_physical_limits();"
- delay: 0.1s # give controller a chance to handle the response before sending the next command
- lambda: "id(my_desk).request_limits();"
- delay: 0.1s
- lambda: "id(my_desk).request_settings();"esp8266:
board: d1_miniexternal_components:
- source:
type: giturl: https://github.com/Rocka84/esphome_components/components: [ jiecang_desk_controller ]logger:
# Get more logs to find out what's going on with `goto_height`level: VERBOSEuart:
id: uart_bus# Don't use UART0 because the internal usb-to-serial chip messes up everythingtx_pin: D1rx_pin: D2baud_rate: 9600# see full example for more options: https://github.com/Rocka84/esphome_components/blob/master/components/jiecang_desk_controller/example_full.yamljiecang_desk_controller:
id: my_deskbuttons:
stop:
name: "Stop"step_up:
name: "Step up"step_down:
name: "Step down"position1:
name: "Position 1"position2:
name: "Position 2"position3:
name: "Position 3"position4:
name: "Position 4"sensors:
height:
name: "Height"height_min:
name: "Height Min"height_max:
name: "Height Max"height_pct:
name: "Height Percent"position1:
name: "Position 1"position2:
name: "Position 2"position3:
name: "Position 3"position4:
name: "Position 4"# This is for testing purposesbutton:
- platform: templatename: "Go to 100cm"on_press:
lambda: "id(my_desk).goto_height(100);"# Enable Home Assistant APIapi:
# Allow Over-The-Air updatesota:
- platform: esphomewifi:
ssid: !secret wifi_ssidpassword: !secret wifi_password
The text was updated successfully, but these errors were encountered:
Hi. I have a Jarvis desk with a JCB36N2CA-230 controller. This esphome component works for the most part with a D1 Mini and a RJ11 cable, but I am not able to use the
goto_height()
function. I tried the recommended config with theheight
number entity and another button with a lambda as suggesting in the full config.For instance, with the following config (full config is available near the end of the issue):
I get the following logs:
I am not sure what that means in practice, though. I see that the command
0x1B
is the one used to send the "set height" instruction to the controller, but not sure what the0x1B
response is.The preset commands work, and the stop command works as well. The esphome module is also able to read the min/current/max heights, and the values of each preset. The height is correctly read, and when I use the desk panel, everything looks good and in sync.
It's just the "go to height" command that does not work. ssieb/esphome_components#40 mentions some variants for decoding the height value, but that isn't the problem here.
Also, FWIW, I am using Home Assistant to control the desk via the esphome module. Thanks!
my full/latest esphome config
The text was updated successfully, but these errors were encountered: