Open mvannas opened 4 months ago
You can do this by editing your device .yaml file. Here's how I cam up with my suggestion:
cover:
- platform: ratgdo
id: ${id_prefix}_garage_door
device_class: garage
name: "Door"
ratgdo_id: ${id_prefix}
on_closed:
- switch.turn_off: ${id_prefix}_status_door
on_open:
- switch.turn_on: ${id_prefix}_status_door
3. With this knowledge, you can then add your own modifications to the end of your device .yaml to change that cover how you want.. I suggest we change that original cover to be internal to ESPHome (so it won't be reported to Home Assistant) and create another template cover that reverses everything for us.
cover:
I think that would do it? Note that once PR https://github.com/ratgdo/esphome-ratgdo/pull/195 is merged this can be re-written and enable position-control instead of just open/closed only.
@mvannas Heads up. I just saw a youtube previewing the features of Home Assistant that will be released this Wednesday (v2024.2). They added an invert feature for lock entities. Perhaps this will meet requires, no coding needed?
fj
They added an invert feature for lock entities.
Cover is not a Lock
Typo... An invert feature for covers and locks. Both apparently.
YouTube was by "Smart Home Junkie".
Interesting, I will check it out and see how it works. It that doesn't work, I try rlowens modification.
Unfortunately this Home Assistant helper only allows you to change the functionality of an entity type switch. That can then be shown as cover, switch or lock. But it doesn't allow to invert an entity of cover type.
I have two door garage with sideways opening doors.
Due to space constraints one door opener is installed in reverse. This means it shows OPEN when close and CLOSED when open. There is no way to make the Liftmaster operate in reverse, but I was wondering if a reverse functionality could be implemented in ratgdo, at least so that open/close status and buttons would show correctly to ESPHome/Home assistant etc.?