Rocka84 / esphome_components

10 stars 4 forks source link

Set limits to physical limits if desk controller does not respond to 0x20? #5

Open ducky64 opened 1 month ago

ducky64 commented 1 month ago

I have a JCB35N2-110 which does not seem to respond to request_limits (or also goto_height, but that's a different problem). Would it make sense to set the local (ESP's copy of) min / max limits upon receiving the physical limits message? If you wanted it to be more robust (in case the message is somehow received after valid local limits), maybe this could be gated on the local limits not yet being set, or setting the local limits to the more restrictive of the received physical limits and the local limits?

UART log:

>>> F1,F1,0C,00,0C,7E
<<< F2,F2,07,04,05,0D,02,83,A2,7E
>>> F1,F1,20,00,20,7E
[presumably the non-physical limits response should be here]
>>> F1,F1,07,00,07,7E
<<< F2,F2,01,03,01,26,0F,3A,7E
Rocka84 commented 3 weeks ago

Hi! If I understood you correctly you only need to make sure to call request_physical_limits before request_limits. The on_boot part of the example config does that. That way, if the local limits request gives no result (to one or both min/max), the physical limits stay in place (e.g. are not overwritten by a local value).

If I misunderstood please share your configuration.