Add rflink binary_sensor allon and alloff commands#32411
Add rflink binary_sensor allon and alloff commands#32411emontnemery merged 4 commits intohome-assistant:devfrom
Conversation
Ref to the issue: home-assistant#32399
|
Hi @tubalainen, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
|
I have no idea what I messed up. Can someone please help me rectify my mistakes. The code works like a charm but the checks fails.... 😨 |
|
We use Black to format our code. |
Sorry, I am a newbie at this. I am running the docker core container... Am I missing something? |
|
You need to set up a development environment in order to develop on the Home Assistant Core: https://developers.home-assistant.io/docs/development_environment |
Check! I am running into problems straight away, they might be related to the name change (core)? I can make a PR for the documentation reference to core instead of home-assistant.git (fix problem 1)... But I simply cannot wrestle down 2.). :/ |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
|
@fredrike please help a confused friend to get this one through its paces willya? :) Tack! <3 |
|
@emontnemery Can you review? |
|
It looks good, but a test should be added. |
|
I'm sorry to be the discordant voice, but in my opinion, this should not be the way to go. The If it is really a case where a binary_sensor is sending I'm not saying that it can not be useful (I'm sure it is!!!), but will be open season for more similar cases. Why not for commands UP or DOWN? At the time, I was thinking in a solution similar to light.switch. This would be a transversal solution to any platform that would allow to model 'any' switch as a binary sensor in a simple way. I say this out of respect for the work done and from my personal opinion. I hope you do not take my discrepancy badly. |
|
@javicalle I think this PR is OK, rflink @tubalainen maybe you can confirm what device you want to use this with? |
|
Ok, if there are no objections, that's fine with me. Really. Just to be clear (sorry English is not first language): My impression is that here it's wanted to capture the events of a remote and create a As I said at the beginning, for my part there is no problem with the PR, I just want to know another point of view on the subject. Thank you very much for your comments, I appreciate it. |
|
--- EDIT --- @emontnemery yes please. Take over. <3 I have no idea what is causing the python dependencies in the dev env. to act up and I am also somewhat "out of my comfort zone" here. :) So pretty please with sugar on top, please help. EDIT -- No, its not the Nexa WBT-912 that has the "allon/alloff" issue. I blame it on insomnia and the toddler years of my kids ;) It is the Nexa LMLT-711 that sends the "allon/alloff" command for some reason. It is similar to the "group buttons" on the remote in the picture above. Thanks for your help and also thanks to @javicalle for your point of view. |
|
@tubalainen I have reread the issue that you had opened (#32399) and as I interpret, you really have a
It may be that RFLink does not correctly identify it, but in any case my argument against the PR is no longer valid and I also agree with this PR. Thank you all for the contributions. |
@tubalainen Is that a doorbell? If so, it is a I'm back to my initial opinion, the way forward should be to create a But that is my personal opinion. |
Its a bit of a definition related problem. Deconz, just to name another integration is strugging somewhat with this as well. There all the "remote controls" are named and called Switches. Any s A spring loaded switch is not a Can we please make this PR and maybe start another issue or a thread in the community forum for the more philosophical discussion around what should be a Just a friendly thought :). Thanks. |
|
This is how home assistant defines the categories, and how we want to integrate these devices:
|
No, that's not right. A device such as doorbell is best represented as a custom event, i.e. no entity because it doesn't hold a state, but many integrations represent them as A @MartinHjelmare Maybe the explanation here could be a little bit more elaborate: https://www.home-assistant.io/integrations/switch |
I see the point. Another My apologies for the all the confusion and thank you very much for your patience. |


Breaking change
None
Proposed change
Added the rflink group command "allon" and "alloff" to the binary sensor component.
Some devices (like buttons) seems to send "allon" rather than just on and also never sends an "off".
Type of change
Example entry for
configuration.yaml:No changes to the config
Additional information
N/A
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale: