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

ubisys: fix C4 actions when non legacy #5281

Merged
merged 1 commit into from
Jan 7, 2023
Merged

Conversation

sjorge
Copy link
Contributor

@sjorge sjorge commented Jan 6, 2023

Koenkk/zigbee2mqtt#15171

Discussion sort of got mixed in with Koenkk/zigbee2mqtt#15875 sadly.

This should bring C4 in line with what S1/S2 report for action.

@Koenkk @Danit2 was wonders if we can just get rid of fz.legacy.ubisys_c4_* and call fz.command_* directly, I'm OK with this but I kept the wrapper around in case someone is somehow still using legacy: true for this device.

@sjorge
Copy link
Contributor Author

sjorge commented Jan 6, 2023

{"action":"toggle_s1","action_group":10503,"linkquality":61,"update":{"installed_version":33555200,"latest_version":33555200,"state":"idle
{"action":"toggle_s2","action_group":10102,"linkquality":40,"update":{"installed_version":33555200,"latest_version":33555200,"state":"idle"}}

@ahemwe
Copy link
Contributor

ahemwe commented Jan 6, 2023

Should this change also be considered in documentation of actions for c4 accordingly?
I've tried to contribute by adapting it to the code in this commit:
Koenkk/zigbee2mqtt.io@6b67202

@sjorge
Copy link
Contributor Author

sjorge commented Jan 6, 2023

This should automatically happen as it parses the expose data (AFAIK)

@Koenkk
Copy link
Owner

Koenkk commented Jan 7, 2023

Looks good, docs are updated automagically. Thanks!

@Koenkk Koenkk merged commit 64e6e5e into Koenkk:master Jan 7, 2023
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.

3 participants