Can ratgdo be set to Close to Percentage?

Is it possible to set a cover to close to a certain percentage? When I set the command from closed to X% it works as expected - but when I try to go from Open to X%, it just closes all the way.

I’m trying to figure this out because of the HOA where I live. I have an EV and our HOA doesn’t permit us to mount our chargers outside and we aren’t permitted to have our garage doors wide open all night - so I currently have to disengage my garage opener and manually open the door just enough to allow the cable to pass underneath.

Trying to up the WAF by setting a button in HA that would close the garage just enough once to stay right above the cable - that way we can go back to using the open/close functions as normal without having to constantly disengage and reengage the door from the opener.

Any help or feedback would be appreciated!

i don’t believe ratgdo gets enough sensor information to do this… at least i’m pretty sure mine does not! you’d probably have to do it by timing, but that has all sorts of reliability risks…

I believe you can do this. If you look at this page you can see the percentage of door open being updated. I am adding a script now that seems like it will do the trick. Just need to test it:

  - device_id: 5b75ada71dc4bf888d1b6e4bf3769b5e
    domain: cover
    entity_id: 999007b131af13b31f7c5fe359271ecc
    type: close
  - wait_for_trigger:
      - device_id: 5b75ada71dc4bf888d1b6e4bf3769b5e
        domain: cover
        entity_id: 999007b131af13b31f7c5fe359271ecc
        type: position
        trigger: device
        above: 0
        below: 33
  - device_id: 5b75ada71dc4bf888d1b6e4bf3769b5e
    domain: cover
    entity_id: 999007b131af13b31f7c5fe359271ecc
    type: stop
alias: CloseGarageForCharging
description: ""

So, it kind of works. I had initially set it to stop between 0 and 5 (I’ve edited the script to between 0 and 33), and it does stop now. It seems like the updates are not frequent enough to control the door very precisely. There is a dimmer control in the UI for having the door open or close to a certain amount. That “appears” to be a little more fine grained, though if I set the value through the UI to be anything under 10%, the door just closed all the way. Using the control several times also did not result in a door that was closed the same amount each time, there was a decent amount of variance in it.

The second problem is that when you push the button on the garage door opener (once the garage is in the partially closed state), it want to continue closing. Obviously this is not what I want. Doing some more investigation…

So there is a much better way to do this. Here is the script that emulates the slider control in the UI. Not sure why I didn’t see this earlier.

sequence:
  - device_id: 5b75ada71dc4bf888d1b6e4bf3769b5e
    domain: cover
    entity_id: 999007b131af13b31f7c5fe359271ecc
    type: set_position
    position: 10
alias: CloseGarageForCharging
description: ""

The above seems to work pretty well. I still have the problem of pushing the remote button causes the garage door to continue closing…

1 Like