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

Add rf2 autodiscovery #791

Merged
merged 4 commits into from
Nov 3, 2020

Conversation

hbraam
Copy link
Contributor

@hbraam hbraam commented Nov 2, 2020

Added Home Assistant discovery to RF2.

For each unique combination of unit, groupbit and address a switch will be added to Home Assistant called: "RF2_[unit][groupbit])[address].
As RF2 433Mhz switches do not render their state, no state topic will be provided in the discovery.
This will cause the switch to be in optimistic mode in HA with separate on and off icons.
The two separate on/off icons allow for subsequent on commands to support the dimming feature of KAKU switches like ACM-300.

Add HA auto discovery to RF2.
For each unique combination of unit, groupbit and address a switch will be added to Home Assistant called:  "RF2_[unit]_[groupbit])_[address].
As RF2 433Mhz switches do not render their state, no state topic will be provided in the discovery.
This will cause the switch to be in optimistic mode in HA with separate on and off icons.
The two separate on/off icons allow for subsequent on commands to support the dimming feature of KAKU switches like ACM-300.
Update formatting
Update formatting
@1technophile
Copy link
Owner

Thanks for the PR!
So as to format automatically your document you have to add the "clang-Format" extension to VSCode, once done, you can format the code by doing a right-click into the code file window and clicking "Format document".

@1technophile 1technophile added this to the v0.9.6 milestone Nov 2, 2020
@hbraam
Copy link
Contributor Author

hbraam commented Nov 3, 2020 via email

@1technophile
Copy link
Owner

Thanks!

@1technophile 1technophile merged commit cabc869 into 1technophile:development Nov 3, 2020
@hbraam hbraam deleted the Add-RF2-autodiscovery branch November 14, 2020 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants