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
Broadlink switches dont show up if their IR packet is not a multiple of 4 #18453
Comments
The broadlink switch I am using is RM3 Mini, which already had issues with the python_broadlink library.. I wonder if this is related. However my switch DOES work after fixing the config as above. |
http://tomeko.net/online_tools/hex_to_base64.php as recommended in the config for other approaches, does infact generate the trailing ==, looks like the broadlink switch code should as well |
it appears that |
Previous PR fixing this in send_packet #10560 |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
Yeap, I hit this problem as well with 0.84.1...
Seems in my messing with b64decode in a shell, it doesn't care if you have more |
Im still seeing this issue on 0.91.1 as well |
This is getting sideeffect fixed from a unintended fallout from refactor. |
Home Assistant release with the issue:
Version 0.82.0
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Running on Ubuntu 16.04
Component/platform:
https://www.home-assistant.io/components/switch.broadlink/
Description of problem:
When configuring the Broadlink switch with commands, if the commands are not a multiple of 4, the switch doesnt load on the interface and throws an esoteric error "binascii.Error: Incorrect padding". This has occured to me after copy pasting the command generated by the "learn_command" function of the same component.
Please check out https://community.home-assistant.io/t/switches-not-showing-up-anymore/63377 for the work around, which is to add "=" in the end of the command to make it divisible by 4
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):This config has already been "fixed" by adding the ==
Traceback (if applicable):
I copied the error log from the above linked forum page since i already fixed my config
Additional information:
I feel like this should be fixed internally. At the Learn command level and at the switches level as well. If there is no reason this should not be done, I can get a PR together for this.
The text was updated successfully, but these errors were encountered: