Giter VIP home page Giter VIP logo

Comments (16)

xkisu avatar xkisu commented on June 25, 2024 1

I noticed that my ESP was periodically rebooting it's self as I'm not using Home Assistant (using my own API client) and the Native API Component is setup to reboot the entire board after 15mins by default if a Home Assistant client hasn't connected.

I've disabled the automatic reboot to see if that improves the issue, I'm wondering if my modified ESP config pressing M button on boot every 15 minutes due to the restart is what's been causing it to happen frequently.

from loctekmotion_iot.

xkisu avatar xkisu commented on June 25, 2024 1

My ESPhome has been running for 5 days straight now with no issues and I haven't ran into the ASR code again, I think increasing the button delay on the cover to 250ms and fixing the board rebooting every 15 minutes definitely solved whatever was causing it to occur constantly.

from loctekmotion_iot.

xkisu avatar xkisu commented on June 25, 2024 1

Screenshot 2022-08-23 at 14 22 04
While I can still see strange uptime behaviour in HA, it seems to work stable for me now too! Closing for now, thanks again @xkisu !

@DeastinY I'm getting that as well on my ESP8266! I'm not entirely sure why, but it seems to be something related to ESPHome and now anything to do with the desk script as far as I can tell ๐Ÿ˜€

from loctekmotion_iot.

iMicknl avatar iMicknl commented on June 25, 2024

@DeastinY have you faced this more often? I have seen some other reports on Discord, but very incidental.

from loctekmotion_iot.

DeastinY avatar DeastinY commented on June 25, 2024

I've encountered the issue so often that I stopped using it altogether :/
In the short time I tried to look into it I couldn't really get any information together, so I just stopped.
Willing to help if anyone wants to look into this though, if time permits.

from loctekmotion_iot.

xkisu avatar xkisu commented on June 25, 2024

I'm getting this frequently as well too, I've tried adjusting the esp home config a bit to cover what I thought where some edge cases with the cover but it hasn't helped.

Desk: PrimeCables PLUS+
Control Panel: Loctek HS01B-1

ESP type: esp8266 NodeMCU v2
ESP brand: Yizhet

It seems to get stuck in the ASR/Reset mode any time I leave it and don't move the desk for several hours.

On a side note, I added a button component to reset it (but I've had intermittent success with wether it works or not, sometimes you hear the relay clicking to move the desk down but it doesn't actually move):

button:
  ...
  - platform: template
    name: "Reset Desk"
    on_press:
      - while:
          condition:
            sensor.in_range:
              id: desk_height
              # When the desk is in ASR/Reset mode is appears to return an invalid height of 50cm.
              #
              # When this happens, the down button needs to be held until the desk lowers all the way
              # and the height resets to the correct minimum height.
              below: ${min_height}
          then:
            - logger.log: "Executing down command"
            - button.press: button_down
            - delay: 10ms

from loctekmotion_iot.

xkisu avatar xkisu commented on June 25, 2024

I made a few changes to the esphome config that seem to have fixed the ASR code repeatedly appearing, I've left it running for 48 hours and made constant height adjustments and haven't ran into it again, whereas previously it would happen every couple of hours.

Changes I made:

  • Fixed the board rebooting every 15 minutes due to no Home Assistant connection
  • Changed the UART switch components out for buttons that send a UART command, not sure if this was an improvement but it simplified some of my other automations
  • Raised the delay on opening/closing the cover to 250ms in case the controller was being overwhelmed, I noticed some odd behaviour when it was lower (like the desk "seizing" up, shaking, and not really moving) that's also stopped now that it's higher

One other thing I'm also going to add if the ASR code occurs again is toggling the "Virtual Screen" pin high/low on a timeout when buttons are pressed to simulate the actual behaviour I'm seeing on the controller in case the screen being alway on to the controller is problematic.

from loctekmotion_iot.

DeastinY avatar DeastinY commented on June 25, 2024

@xkisu did you publish your changes somewhere or could you point me to the changes you did in detail?
Cheers and thanks for apparently figuring out what was going on!

What I figured so far:

api:
  [...]
  reboot_timeout: 0

and

cover:
  - platform: template
    [...]
    open_action: #same for close_action
      - while:
       [...]
       -delay: 250ms

from loctekmotion_iot.

xkisu avatar xkisu commented on June 25, 2024

@xkisu did you publish your changes somewhere or could you point me to the changes you did in detail? Cheers and thanks for apparently figuring out what was going on!

What I figured so far:

api:
  [...]
  reboot_timeout: 0

and

cover:
  - platform: template
    [...]
    open_action: #same for close_action
      - while:
       [...]
       -delay: 250ms

@DeastinY You've got it! I forgot to push, but those are the two changes I made that seem to have stabilized it long-term. I've been running it without issues over a month now after doing those two changes.

from loctekmotion_iot.

DeastinY avatar DeastinY commented on June 25, 2024

Screenshot 2022-08-23 at 14 22 04
While I can still see strange uptime behaviour in HA, it seems to work stable for me now too! Closing for now, thanks again @xkisu !

from loctekmotion_iot.

DeastinY avatar DeastinY commented on June 25, 2024

arrived at the same conclusion so far, there's some information on it at the HA community forum, but it seems to be working still, so ๐Ÿคท ๐Ÿ˜

from loctekmotion_iot.

DeastinY avatar DeastinY commented on June 25, 2024

Happened again. Two days it was stable, now height is locked at 50cm and I need to reattach the control panel to change anything :/

from loctekmotion_iot.

KrX3D avatar KrX3D commented on June 25, 2024

Hello, it seems "you" are pressing the M button to long. if it is pressed for 5 seconds (could also be 3 sec depending on your desk) your table enters Factory reset mode, id you go into this mode you need to move you table all the way down to finish resetting.

you could look at my config here. and if your tables does nothing with the 1+2 press comand you could change your code and use this switch and not the M button

#35

from loctekmotion_iot.

DeastinY avatar DeastinY commented on June 25, 2024

Hi,

"you"
why is this quoted ๐Ÿคจ?

if it is pressed for 5 seconds (could also be 3 sec depending on your desk) your table enters Factory reset mode, id you go into this mode you need to move you table all the way down to finish resetting.

Explanation sounds good, but I'm not pressing the M button manually :/ Is this done automatically somewhere?

Cheers and thanks for the input!

from loctekmotion_iot.

KrX3D avatar KrX3D commented on June 25, 2024

hi,
with "you" i meant some code, since you didnt post your full code i dont know what you changed.

so maybe your code for pressing M1/M2 every 30 minites is the cause?

from loctekmotion_iot.

DeastinY avatar DeastinY commented on June 25, 2024

hi, with "you" i meant some code, since you didnt post your full code i dont know what you changed.

so maybe your code for pressing M1/M2 every 30 minites is the cause?

aaah, got it, thanks!
Hmm...
I'm just hitting the M1/M2 via automation same as I would in the UI, my code is unchanged from the original yaml:

  - platform: uart
    name: "Preset 1"
    id: switch_preset1
    icon: mdi:numeric-1-box
    data: [0x9b, 0x06, 0x02, 0x04, 0x00, 0xac, 0xa3, 0x9d]
    uart_id: desk_uart

I'll dig around, but not really sure it could be this

from loctekmotion_iot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.