FYI, this script https://github.com/rdidyk/broadlink-logger can write down learned commands into CSV files
[Python]
FYI, this script https://github.com/rdidyk/broadlink-logger can write down learned commands into CSV files
[Python]
I have problem with learning. Android app works fine, my remote is learned and code fired by Broadlink works fine. BUT!
These steps not usable for me:
because if i hold button in app nothing happens. No “learn single”. Nothing.
My HA is connected to Broadlink, but how to learn codes?
My Broadlink manager is affected by “Writing compatible device not detected!” problem so it is not usable for me.
I think i have too new device and too new mobile app. But how to pair with these brand new things?
broadlink econtrol app
can also try - Broadlink Manager - Nicer way to Learn and Send IR/RF commands
Nope. Broadlink manager affected by “Writing compatible device not detected!”. Econtrol app is piece of s… and it doesn’t work - unable to find device.
I think i have some new piece of HW and old instructions not work for me.
Have you tried the broadlink.learn service in developer tools?
If the service isn’t there a broadlink switch in your configuration.
switch:
- platform: broadlink
host: 192.168.1.## - broadlink ip
mac: '34:EA:34:99:ED:F9'
Then to learn codes, use service broadlink.learn (making sure that host: IP is entered in service data. Point your device remote at your broadlink and press the button you want to learn.
The code will show up as a notification if it works. You can test it by switching to broadlink.send service, and using the following as service data:
host: ip
packet:
- " Learned code "
this works for IR device but not for RF devices.
EDIT
got this working
A notification willl appear containing the code.
Done from an iPhone.
Every time you learn a new code you will need to restart HA.
OMG, I was trying all day long with this topic. I was ready to close everything but decided to try your method too, because you wrote that Home Assistant reboot is important. And I succeeded using your steps. thank you!
remember reboot each time you need to learn a command.
So, Ive finally learned the RF codes I need for my windows. It took a ton of playing around. I used the same steps as you would above with the e-control app but with IHC. And it worked. I got codes to open, close and stop my shades. Here is my new problem, Home Assistant wont do anything with them once I have added them to a script or a switch.
switch:
- platform: broadlink
host: 192.168.86.35
mac: '780F77634D7D'
timeout: 15
retry: 5
switches:
tv_2br_power:
friendly_name: "Second Bedroom TV Power"
command_on: 'JgBYAAABKJURFBITEjgVERMSFBESExIUEjgSOBQREzcSOBI4EzcWNRITEhMWDxM3FRESExITEhMSOBI4EjkSExI4ETkRORI4EwAFEAABKEsTAAxPAAEoSxMADQU='
command_off: 'JgBYAAABKJURFBITEjgVERMSFBESExIUEjgSOBQREzcSOBI4EzcWNRITEhMWDxM3FRESExITEhMSOBI4EjkSExI4ETkRORI4EwAFEAABKEsTAAxPAAEoSxMADQU='
tv_2br_input:
friendly_name: "Second Bedroom TV Input"
command_on: JgBQAAABKJUUERQSFDYTEhITExMSExMSFTUTNxMTEjgUNhM3EzcVNRQ2EzcSOBQ3ExITNxMSExMVEBITExIUERM3FBIUNhM3FAAFDwABKkkTAA0FAAAAAAAAAAA=
command_off: JgBQAAABKJUUERQSFDYTEhITExMSExMSFTUTNxMTEjgUNhM3EzcVNRQ2EzcSOBQ3ExITNxMSExMVEBITExIUERM3FBIUNhM3FAAFDwABKkkTAA0FAAAAAAAAAAA=
tv_2br_exit:
friendly_name: "Second Bedroom TV Exit"
command_on: JgBQANAHT5gOGQwZDToQFhAVDxcOFw8XDjsROQ8XDjwOPA49DjwOPBA5DxYPGA47DxcOFg87EBUPFw88DjkRFxA6DjsQFw47EAAFEwABJk4PAA0FAAAAAAAAAAA=
command_off: JgBQANAHT5gOGQwZDToQFhAVDxcOFw8XDjsROQ8XDjwOPA49DjwOPBA5DxYPGA47DxcOFg87EBUPFw88DjkRFxA6DjsQFw47EAAFEwABJk4PAA0FAAAAAAAAAAA=
diffuser_diffuser:
friendly_name: "Defuse"
command_on: 'JgDYAAABKpMUNhQ2FREUERQSFBEUERU2FBEUERU2FBEUNhQ2FTYUNhQSFBEUERURFBEUERU2FBEUNhU2FDYUNhQ3FDYUERQ2FQAFDAABK5MUNhQ2FBIUERQRFREUERQ2FREUERQ2FREUNhQ2FTYUNhQSFBEUERQSFBEUERU2FBEUNhU2FDYUNhQ3FDYUERQ2FQAFDQABKpMUNhQ2FBIUERQRFREUERQ2FREUERQ2FREUNhQ2FDcUNhQRFBIUERQRFREUERQ2FREUNhQ2FDcUNhQ2FDYVERQ2FAANBQ=='
command_off: 'JgDYAAABKpMUNhQ2FREUERQSFBEUERU2FBEUERU2FBEUNhQ2FTYUNhQSFBEUERURFBEUERU2FBEUNhU2FDYUNhQ3FDYUERQ2FQAFDAABK5MUNhQ2FBIUERQRFREUERQ2FREUERQ2FREUNhQ2FTYUNhQSFBEUERQSFBEUERU2FBEUNhU2FDYUNhQ3FDYUERQ2FQAFDQABKpMUNhQ2FBIUERQRFREUERQ2FREUERQ2FREUNhQ2FDcUNhQRFBIUERQRFREUERQ2FREUNhQ2FDcUNhQ2FDYVERQ2FAANBQ=='
diffuser_light:
friendly_name: "Toggle Diffuser Light"
command_on: JgDYAAABKpMUNhU1FREUERURFBEUERU2FBEUERU2FBEVNRU1FTYUNhQRFREUERURFBEUERU1FTYUNhQ2FTYUNhQ2FDYVERQRFAAFDQABKpIVNhQ2FBIUERQRFREUERQ2FREUERQ2FREUNhQ2FDYVNhQRFBEVERQRFBEVERQ2FDYVNRU2FDUVNhU1FTYUERQRFQAFCwABK5IVNhQ2FBEVERQRFBEVERQ2FBEVERQ2FBEUNhU2FDYUNhURFBEUERURFBEUERU1FTYUNhQ2FTYUNhQ2FTUVERQRFAANBQ==
command_off: JgDYAAABKpMUNhU1FREUERURFBEUERU2FBEUERU2FBEVNRU1FTYUNhQRFREUERURFBEUERU1FTYUNhQ2FTYUNhQ2FDYVERQRFAAFDQABKpIVNhQ2FBIUERQRFREUERQ2FREUERQ2FREUNhQ2FDYVNhQRFBEVERQRFBEVERQ2FDYVNRU2FDUVNhU1FTYUERQRFQAFCwABK5IVNhQ2FBEVERQRFBEVERQ2FBEVERQ2FBEUNhU2FDYUNhURFBEUERURFBEUERU1FTYUNhQ2FTYUNhQ2FTUVERQRFAANBQ==
diffuser_light_dim:
friendly_name: "Dim Diffuser Light"
command_on: JgDQAgABKpMUNhU1FREUERQRFREUERU1ExMUERQ2FBIUNhM3FDYUNxEUFBETExQRFBEUEhQREzcTNxQ3FDYUNhM3FDcUNhQRFAAFDAABKpMUNhQ2FRETEhQRFBIUERQ2ExMUERQ2FBEUNxQ2FDYUNhQSExIUERMTEx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PKQ8pDykPKRAoECkp7SsOKg0PKSoNKg4OKg8pDykPKQ8pDykr7CsNKg4PKSoNKg0PKQ8qDykQKA8pDykq7SsNKg0PKioNKg0PKQ8pDyoOKg8pDykqAA0FAAAAAAAA=
fan_speed:
friendly_name: "Fan Speed"
command_on: 'JgBOACsNKg0PKSsNKg0NKw8pDykQKQ4qKA8NAAELKw0qDQ0rKQ8qDQ8pDykPKQ8pDykpDw8AAQgrDioNDSsoDyoODioPKRAoDykNKykPDwANBQAAAAAAAAAAAAA='
command_off: 'JgBOACsNKg0PKSsNKg0NKw8pDykQKQ4qKA8NAAELKw0qDQ0rKQ8qDQ8pDykPKQ8pDykpDw8AAQgrDioNDSsoDyoODioPKRAoDykNKykPDwANBQAAAAAAAAAAAAA='
fan_oscillate:
friendly_name: "Oscillate"
command_on: JgBOACwNKg0PKSoNKw0PKQ8pKg0PKRApDykQAAEHLA0qDQ8pKg0qDg4qDykoDw8pECgQKQ8AAQgrDSsNDykqDSoNDSsQKSoNDykPKQ8pDwANBQAAAAAAAAAAAAA=
command_off: JgBOACwNKg0PKSoNKw0PKQ8pKg0PKRApDykQAAEHLA0qDQ8pKg0qDg4qDykoDw8pECgQKQ8AAQgrDSsNDykqDSoNDSsQKSoNDykPKQ8pDwANBQAAAAAAAAAAAAA=
fan_ionizer:
friendly_name: "Ionizer"
command_on: JgBOACsNKg0PKioNKg0NKykPDioPKQ8pDykPAAEJKw0qDQ0rKQ8qDQ0rKA8PKQ8qDykQKA8AAQkpDyoNDykpDyoNDykoDw0rDykPKg8pDwANBQAAAAAAAAAAAAA=
command_off: JgBOACsNKg0PKioNKg0NKykPDioPKQ8pDykPAAEJKw0qDQ0rKQ8qDQ0rKA8PKQ8qDykQKA8AAQkpDyoNDykpDyoNDykoDw0rDykPKg8pDwANBQAAAAAAAAAAAAA=
2br_window_open:
friendly_name: "Window Open"
command_on: sgACATYKDBULFRYLCxUMFQsWCxUWCxYKDBUWCwsVCxYLFgoWCxYVCwsWCxULFgsW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xYLChYWCwsVCxYLFQwVCxUXCgsWCxUMFRYKDBULFgsVFgsLFQwVDBULFQsWCxUMFQsWFgoWCwsWCxUWCxULCxYVBKFSNgoLFQwVFgsLFQwVDBULFRYLFgoMFRYLCxULFgsVDBULFRcKDBULFQwVFgoMFQwVCxUWCwsVDBULFgsVDBULFQwVCxYVCxYLCxUMFRYLFQsLFRYEoVI2CgsWCxUWCwsWCxULFgsVFgsWCwsVFgsLFQwVCxUMFQsVFwoMFQsWCxUWCwsVDBULFhULCxYLFQwVCxUMFQsWCxULFhYKFgsLFgsVFgsVCwwVFQAF3AAAAAAAAAAAAAAAAAA=
command_off: sgCsADYLCxUMFRUMCxULFgsVDBUVDBULCxYWCgwVCxUMFQwVCxUWCwsWCxULFRYLCxYWCgwVFgsLFQsWCxYLFQsVCxYLFgsVFgsWCgwVCxYVCwsWCxUWBKFRNgsLFQsWFgoMFQsVDBULFhYLFQsLFhULDBULFQsWCxYLFRYLCxUMFQsWFgoLFhYLChYWCgsWCxYLFQwVCxYLFQsWCxUWCxYKDBULFhULCxYLFRYABdwAAAAAAAAAAAAAAAA=
The relevant switches are the last two. The ones above it are IR and work well - I included them for context.
Here are the broadlink send scripts:
data:
host: 192.168.xx.xx
packet: >-
sgACATYKDBULFRYLCxUMFQsWCxUWCxYKDBUWCwsVCxYLFgoWCxYVCwsWCxULFgsWCxUWCxYKFgsLFQsWDBULFQwVCxUMFQwVFQsWCwsVFgsWCwsVFgoWBKFRNgsLFQwVFgsLFgsVCxYLFRYLFgoMFRYLCxULFgsWCxULFhULCxYLFQwVCxYLFRYLFQsWCwsVCxYMFQsVCxYLFQsWCxUWCxYLCxUWCxYKDBUWCxUEoVE2CwsWCxUWCwsVDBULFgsVFgsWCgwVFgsLFQsWCxUMFQsVFgsMFQsVDBULFgsVFgsWChYLCxYLFQsWCxULFgsVDBULFhULFgsLFhULFQsLFhYLFQAF3AAAAAAAAA==
service: broadlink.send
Above is to open the window. The close script is the same, but with the learned code for closing the windows. I have also tried the below:
data:
command: >-
sgACATYKDBULFRYLCxUMFQsWCxUWCxYKDBUWCwsVCxYLFgoWCxYVCwsWCxULFgsWCxUWCxYKFgsLFQsWDBULFQwVCxUMFQwVFQsWCwsVFgsWCwsVFgoWBKFRNgsLFQwVFgsLFgsVCxYLFRYLFgoMFRYLCxULFgsWCxULFhULCxYLFQwVCxYLFRYLFQsWCwsVCxYMFQsVCxYLFQsWCxUWCxYLCxUWCxYKDBUWCxUEoVE2CwsWCxUWCwsVDBULFgsVFgsWCgwVFgsLFQsWCxUMFQsVFgsMFQsVDBULFgsVFgsWChYLCxYLFQsWCxULFgsVDBULFhULFgsLFhULFQsLFhYLFQAF3AAAAAAAAA==
device: secondwindow
entity_id: remote.broadlink
service: remote.send_command
Does anyone know what is going on here?
EDIT: I forgot to include the log:
Log Details (ERROR)
Logger: homeassistant.components.broadlink.remote
Source: components/broadlink/remote.py:205
Integration: broadlink (documentation, issues)
First occurred: 7:46:47 AM (5 occurrences)
Last logged: 8:13:16 AM
Having the same issue.
But it has been working in the past, so I guess it’s something related to one of the recent versions.
Use
service: switch.turn_on
entity_id: switch.2br_window_close
I’m not able to even do the first step, where I need to learn a new RF code from the app e-control app.
I see the breadlink enters in “learn mode”, but after keeping the button pressed, nothing happens…
I read everything about it, and I see no solution…
Anyone?
Thanks
If you read the thread I think is renamed to IHC app. The instructions however should be essentially the same. Read the comments in the thread. You definitely have to get the RF codes working outside of home assistant before you try and integrate home assistant. Sometime I will update the instructions further with the new app however I have a baby and I’m not currently needing to control anything with RF.
I have the save problem - nothing happens when learning RF codes. Learning IR -no problem. No idea what is going on but I have tried lots of RF remots and not one of them will learn with the broad link.
It just doesn’t work, not from any of the 2 apps available. I can use “ihc for EU”, and e-Control perfectly, with no probles, to copy an IR code but it’s just not possible to do a RF code copy.
The question is, the device have problems copying RF codes, but does it have problems sending the codes? If somehow we manage to copy a RF code with another device, or find the code on some webpage database, will be able to send the code?
I tried the e-control app and it doesn’t work well with latest version of android it was lagging and crashed while learning codes.
I just installed the IHC (Intelligent Home Center) app for android, and tried it now. I can confirm that it is working inside the app and the app can learn codes and the codes work inside the app. It took me 3 goes to learn a code that worked reliably.
It’s important to do the learn frequency first (press and hold) then when you learn the code do a very very brief tap on the remote, as brief as possible. Sometimes it takes a couple of goes to get it learn the correct code. If it doesn’t work cancel out then learn the frequency again (long hold) then learn the code (brief tap).
This is an alternative method (link below), however this method didn’t work for me personally.
I can also confirm that I can learn the RF code in home assistant using the IHC app, but it took me two goes to get it to work because the app crashed. I think if you have an old phone I’d go with the e-control app instead. It worked more reliably.
Can somebody guide on how to configure a blind shutter remote control in HA? I discovered my 3 codes (open, close, stop) already and have them in base64. BUT: what can I do with them now?
The only configuration in HA I have so far:
remote:
- platform: broadlink
host: IP_ADDRESS
mac: MAC_ADDRESS
So how can I now manually add my codes here??
See examples