Rflink group commands#5969
Conversation
|
@Lampy09 can you verify if this works for you? |
|
This PR is based on: #5869 |
|
Thanks for the quick implementation, I'll test this tonight :) |
|
@aequitas it does 'work', however a group command is more like an alias for Kaku's. For example, the first time you set up a light you assign a regular on/off and (optionally) the group all_on/all_off. So a light in the same range doesn't have to be assigned necessarily to the group button. In the current implementation you assume all lights in the same range are 'paired' to the group button. So maybe it's possible to register the group button so people can add them in the configuration as aliases? (or maybe I'm missing something) |
|
For my Kaku remote all lights respond when using the group switch. Even if they are not programmed explicitly with the group. Would have to double-check with a reset switch if it is not because of an old programming. But I'm pretty sure this is the expected behaviour. |
|
Maybe a hardware difference? I'm using this remote: https://www.klikaanklikuit.nl/nl/ayct-102-afstandsbediening.html It's not very clear in the manual but I had to assign/program the receivers I wanted to listen to the group key explicitly. And that's how it works for me know I have 4 receivers: And only 2 and 3 are programmed to the group key. |
|
The manual doesn't state it clearly indeed. I have the same remote (or at least it looks the same) and an older model (wheel type). Will verify the behaviour of those later today or tomorrow. What receivers are you using? Maybe those make a difference? |
|
The device I used for testing is: http://www.homewizard.nl/media/wysiwyg/handleiding/APA3-1500R%20Gebruiksaanwijzing.pdf This is sold as 3 switches with one remote. The remote only has an off group button. Which sends out the I'm going to do some more debugging with other receivers and probably make the current implementation configurable and allow responding to group commands as well as normal on/off for devices. |
4af7d4f to
af0706b
Compare
|
Vastly simplified group command support. Behavior of both group mechanisms (explicit register and implicit on first switch channel) can now be enabled by adding an alias. Also added some changes that will potentially solve issues mentioned in #5965 |
|
Interesting thing btw, the group switch uses the same 'switch' (id) as switch 1:
So how would it even be possible to use the group key as an alias? |
|
Correct, but it depends on the remote. I have one remote where there is no other button that uses the 1 switch and another that has the first button also as switch one. Aliases can be used multiple times for different devices. You can even assign an ID for a device as an alias for another. |
|
So in my situation, how am I able to alias the group switch? The funny thing is, 'television' & 'corner' are the only 2 lights linked to the group switch, which is 'newkaku_009d1be6_1' in my case. Putting 'newkaku_009d1be6_1' as an alias under 'corner' doesn't make sense right? Because if I turn on/off 'dining', it will also turn off 'corner' for example. Or am I missing something? |
|
True, that is one shortcoming I already foresaw. I have some ideas on how to fix this but don't know which one would be best in order to work with all cases but keep configuration simple an logical. Easiest for now is to not use button '1' ;) |
|
Maybe it's an idea to use 'newkaku_009d1be6' (without switch numbers) as aliases? (I'm not sure what the possibilities are or what the impact on other devices is ;) ) |
|
Any updates on this PR? |
|
I'm gonna come back on this PR in a few days. |
There was a problem hiding this comment.
line too long (103 > 79 characters)
There was a problem hiding this comment.
missing whitespace after ','
line too long (91 > 79 characters)
|
@Lampy09 i pushed an update. Can you test if this works for you? config example: |
|
It's basically working, however in my situation I still have the individual light (dining) which is also listening to the group command, example of my config: Theoretically the state of 'dining' shouldn't switch on/off when 'newkaku_009d1be6_1' all_on/all_off is sent. |
|
Ah, yes. Let me see how we can fix that. |
|
Installed 0.41.0.dev0 (pip3 install --upgrade git+git://github.com/aequitas/home-assistant@rflink_group_commands) However I'm unable to send rflink commands from home assistant (state doesn't change, light isn't turned on/off). It's still receiving commands when I use my remote..... |
1e5bc41 to
40b5d27
Compare
|
@Lampy09 I just updated the branch against the latest upstream. Can you try again? Can you also paste you config? |
|
I think it's related to Home Assistant 0.40.0 and higher. 0.39.3 is working like expected. |
|
There is currently a issue with 0.40 maybe its affecting your setup to: #6580 |
40b5d27 to
30d4c54
Compare
|
Can you try again now? |
|
@aequitas I can confirm it's working like expected 👍 |
Add 'group_aliasses' config attribute that only respond to group commands. Add nogroup_aliases that only respond to 'on' 'off' commands. Allow settings device id group behaviour.
c768fbe to
522e38f
Compare
|
Is this ready for merge? |
|
Yes, ready. |
|
💃 🐬 |
Description: Support for group commands (allon/alloff).
Related issue (if applicable): fixes #5965