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

Expose cover running state #3980

Merged
merged 2 commits into from
Mar 12, 2022
Merged

Conversation

Drafteed
Copy link
Contributor

Round II.

Related PR: Koenkk/zigbee2mqtt#11789

lib/exposes.js Outdated
@@ -335,6 +335,12 @@ class Cover extends Base {
this.features.push(new Numeric('tilt', access.ALL).withValueMin(0).withValueMax(100).withDescription('Tilt of this cover'));
return this;
}

withRunning() {
Copy link
Owner

Choose a reason for hiding this comment

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

I'm sorry for not being clear, what I mean was adding this to exposes like exposes.binary('running', ea.STATE, true, false) (so not making it part of the feature list)

Copy link
Contributor Author

@Drafteed Drafteed Mar 11, 2022

Choose a reason for hiding this comment

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

In the first time I tried this (without making as part of the feature list), but can`t figure out how to check/find exposed binary in this place: https://github.com/Koenkk/zigbee2mqtt/blob/7a2ddf24d32006bc05283c5ceb681dc9871b0347/lib/extension/homeassistant.ts#L380-L427
Upd: done!

@Koenkk Koenkk merged commit da67cda into Koenkk:master Mar 12, 2022
@Koenkk
Copy link
Owner

Koenkk commented Mar 12, 2022

thanks!

@Drafteed Drafteed deleted the cover-expose-running branch August 21, 2022 17:51
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.

None yet

2 participants