Skip to content

Conversation

@Lauorez
Copy link
Contributor

@Lauorez Lauorez commented Dec 28, 2025

rename doPeriodicRequest flag to doorStatusSupported. if not supported, publish a button instead of a cover / garage entity to HA, because the open stop close logic can't be applied without door status. include the "PRESS" command handling for the button entity case.

…oth building targets run on windows and linux (i think)
…d, publish a button instead of a cover / garage entity to HA, because the open stop close logic can't be applied without door status. include the "PRESS" command handling for the button entity case.
}

mqttToken := ha.mqttClient.Publish(ha.getDiscoveryTopic(), qosAtLeastOnce, true, discoveryMsg)
mqttToken := ha.mqttClient.Publish(ha.getDiscoveryTopic(!ha.doorStatusSupported), qosAtLeastOnce, true, discoveryMsg)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose to remove the parameter of getDiscoveryTopic() since that information is already available for that function internally. How do you see?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right it is redundant. I will remove it :D
In the meantime, I also wrote a very basic form of multi door support where you provide all the devicePorts as a list in the config. I will commit this as well because I don't know how to commit the fix to the PR without all the other changes ^^

@Lauorez Lauorez closed this Jan 1, 2026
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

Successfully merging this pull request may close these issues.

2 participants