-
I'm trying to use the controller with a Fully Jarvis EcoTop Standing Desk (SKU I am using the controller you assembled (i.e., I haven't built my own). Home Assistant version: 2022.6.6 My primary ESPHome config is a mix of your packages and one that all of my ESPHome devices share: ---
packages:
desk_config: >-
github://tjhorner/esphome-standing-desk/configs/desks/fully_jarvis.yaml
device_base: !include common/device_base.yaml
standing_desk: github://tjhorner/esphome-standing-desk/configs/template.yaml
substitutions:
device_name: fully-jarvis-desk-controller
device_friendly_name: Fully Jarvis Desk Controller
device_static_ip: 172.16.20.222
esphome:
board: d1_mini
platform: ESP8266
---
api:
encryption:
key: !secret api_encryption_key
password: !secret api_password
binary_sensor:
- name: ${device_friendly_name} Status
platform: status
button:
- platform: restart
name: ${device_friendly_name} Restart
esphome:
name: ${device_name}
logger: null
ota: null
text_sensor:
- lambda: |-
auto state = id(esphome_version).state;
return state.substr(0, state.find(' '));
name: "${device_friendly_name}: ESPHome Version (Short)"
platform: template
- id: esphome_version
name: "${device_friendly_name}: ESPHome Version"
platform: version
wifi:
manual_ip:
gateway: 172.16.20.1
static_ip: ${device_static_ip}
subnet: 255.255.255.0
ssid: !secret wifi_ssid
password: !secret wifi_password When I flash the controller manually (i.e., with it connected to my laptop via micro USB), the device shows up in Home Assistant (without being able to see height values, as expected). Here are the logs from that initial, plugged-in flash:
When I install the controller – 1 RJ45 from the handset to the controller, 1 RJ45 from the control box to the controller – my desk immediately goes to the fully lowered position. However, it never comes online: I don't see the device in my active DHCP leases, which makes it seem like it's not connecting to wifi...but only when connected to the control box (when I connect the device to power over micro USB, it connects to wifi just fine). Any thoughts? Appreciate it! Some additional info:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
So I've seen this kind of issue before on a Jarvis desk, but notably it was using one of the more advanced keypads. There are a couple of things I'd like you to try before we do any further troubleshooting. First, could you add a status LED component to your config, using D4 as the pin, and active-low? Something like this: status_led:
pin:
number: D4
inverted: true This will let us know if it's powering up properly. After you've flashed it, could you try connecting the control box first (without the keypad) and see if it powers up properly? Try unplugging/replugging a few times if not. After that, try the same thing but this time plugging in the keypad first. Basically, I think what's happening is that pin D8 is being pulled high during startup by the control box, resulting in a failure to boot, since D8 is also CS. Internally, it is pulled to GND (which is also why your desk lowers) so this shouldn't happen but it seems the pulldown resistor is too resistive for some desk models (or something like that). This is something I missed during my initial tests and will be fixed in v2 of the board. The constant unplugging/replugging may eventually cause the race condition that's happening here to result in a successful boot. Edit: Just thought of another idea. Could you try plugging in the keypad first (well, I guess it's a paddle in your case), then as you plug in the control box, press the paddle in the down position? This should ground the D8 pin and result in successful boot. Something I think that might also be worth trying (but also potentially dangerous) is booting with microUSB power, then plugging into the control box. I don't have a background in electrical engineering, so I don't know if sharing the +5V line between the USB power source and the control box is a good idea or not 😅 Let me know the results! |
Beta Was this translation helpful? Give feedback.
-
Ah, okay – if the LED as configured before goes off when wifi is connected, maybe that's not as relevant. Here are the tests with the updated, always-on LED; I get the same serial logs no matter what (I was viewing the ESPHome dashboard logs before; they're similar, but I don't think they're the same):
Same as above.
Same as above.
Same as above. In all cases, Home Assistant can now see the device: ...but there are some oddities when both the control box and keypad are connected:
|
Beta Was this translation helpful? Give feedback.
-
This issue is tracked in #6. There is documentation for a workaround here: https://github.com/tjhorner/wifi-desk-controller/wiki/Jarvis-Power-Issue |
Beta Was this translation helpful? Give feedback.
-
I am seeing similar behavior with my Uplift V2 using an Advanced Comfort Keypad. Connects to wifi fine via USB, but when connected to desk and keypad I see a blue blip but never connects to wifi. I'm a bit new to ESPHome, so haven't tried all the troubleshooting steps with a custom config to see if all behavior is the same. Do I need to do that, or do you think I should proceed with trying the workaround? |
Beta Was this translation helpful? Give feedback.
This issue is tracked in #6. There is documentation for a workaround here: https://github.com/tjhorner/wifi-desk-controller/wiki/Jarvis-Power-Issue