Skip to content

Add rf2 autodiscovery#791

Merged
1technophile merged 4 commits into1technophile:developmentfrom
hbraam:Add-RF2-autodiscovery
Nov 3, 2020
Merged

Add rf2 autodiscovery#791
1technophile merged 4 commits into1technophile:developmentfrom
hbraam:Add-RF2-autodiscovery

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
JeroenWiersma pushed a commit to JeroenWiersma/OpenMQTTGateway that referenced this pull request Oct 18, 2025
* Add Home Assistant auto discovery feature

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.

Co-authored-by: hbraam <hbraam@users.noreply.github.com>
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