Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only publish HA discovery messages for supported functions #53

Open
Goose66 opened this issue Jan 5, 2024 · 2 comments
Open

Only publish HA discovery messages for supported functions #53

Goose66 opened this issue Jan 5, 2024 · 2 comments

Comments

@Goose66
Copy link

Goose66 commented Jan 5, 2024

I am using the ratgdo devices to control Genie door openers through Dry Contact mode. Even though my Genie Control Pads have separate light and lock switches, these are not (yet) supported. Accordingly, my ratgdo can only control the door. Accordingly, it would be helpful if the ratgdo didn't publish HA discovery message for the light, so that my integration wouldn't create a light node. Similarly, if there was some way for the ratgdo to know if the obstruction sensors are not connected (mine are too high voltage), then it would also be great if the ratgdo would not publish an HA discovery message for the obstruction sensors.

@PaulWieland
Copy link
Contributor

I'll have it skip the auto discovery messages for light / lock when using the dry contact control protocol

@Goose66
Copy link
Author

Goose66 commented Jan 6, 2024

That would be great!

Is there any (straightforward) way for it to detect whether the obstruction sensors are connected in dry contact control mode and skip that discovery message as well? In other words, if no obstruction sensor connected, don't publish this one:

{
    "~": "ratgdons/ratgdo-26944",
    "name": "Obstruction",
    "unique_id": "ratgdo-26944_08:3A:8D:FA:6B:FB_obs",
    "availability_topic": "~/status/availability",
    "device_class": "motion",
    "state_topic": "~/status/obstruction",
    "payload_on": "obstructed",
    "payload_off": "clear",
    "device": {
        "name": "ratgdo-26944",
        "identifiers": "ratgdo-26944_08:3A:8D:FA:6B:FB",
        "manufacturer": "Paul Wieland",
        "model": "ratgdo",
        "sw_version": "2.56",
        "configuration_url": "http://192.168.1.101/"
    }
}

I know this would probably take more work than just skipping the "Light" discovery message in dry contact control protocol, but would be helpful in my integration with Universal Devices controllers, in which control nodes are created based on the presence of these discovery messages (and I would assume Home Assistant as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants