It seems your code has lots of repeated sequences.
Have you check if you are in the last firmware on the broadlink devices?
Yes, the friendly_name is mandatory.
app is 3.7.7-1.3.1
firmware v20025 2016-06-15
COuld it be the length of time you press the IR button in learning mode? How long do you press it
Very shortly.
In fact I used the Android App to generate the IR, which sends very short, and RF remotes with pre-defined sending duration.
But they are all very short, just pressed and released the long enough to make the red light on RM be off.
Ok, it might be that
Other thing.
How would you use the HA component for other uses then ON-OFF?
I wanted to program a soundbar remote. Beside ON/OFF (which unfortunately is only TOGGLE) wanted to put Volume+ Volume- and change of Inputs
Did you make changes for multiple broadlink devices??
Now my switch 2 disappeared in front end, now switch.tv do not exist
# Broadlink living room
switch 1:
platform: broadlink
host: 192.168.1.89
mac: 'bx:0f'
switches:
p11_asus_router:
command_on: 'slMyAAWSDgYFDw4GDgYFDwUPDgYEEAQQBQ8FDw4GBBAOBgUPDgYEEAUPBQ8EDw4GDgYFDwUPAAAAAAAA'
command_off: 'JgAcAB0dHB44HhweGx4cHR06HB0cHhwdHB8bHhwADQUAAAAAAAAAAAAAAAA='
friendly_name: 'Asus router'
p12_christmas_tree_lights:
command_on: 'sm8yAA8FBQ8FDwUPBQ8PBgUPDwUFDwWSDgUFDw8GDwYFDwUPDgYFDwUPBQ8FDw4GBQ8OBgUPAAAAAAAA'
command_off: 'sq4yAA8GBRAOBg4GBQ8FDw4GBQ8FDwUPBQ8OBgUPDgYFDw8GBQ8FEAUPBQ8FDwUQDgYFDwWSAAAAAAAA'
friendly_name: 'Christmas tree lights'
p13_projector_power:
command_on: 'sp0yAA8FBQ8FDwUPBQ4PBQYODwYFDw8FBg4FDwUPBQ4PBQUPBQ8PBQWSDgYFDw8FDwUFDwUPAAAAAAAA'
command_off: 'sogyAA8FBQ8PBg8GBQ8FDw4FBQ8FDwUPBQ8OBQUPDwYFDw4GBQ8FDwUPBQ8FDwUPBQ8PBQWSAAAAAAAA'
friendly_name: 'Projector power'
projector:
command_on: 'JgCEAxM2FDUUNRQRFDUUERMSExEUERMSExEUNRQRFDUUNhM2EwAFsAABJ5IUERQRExEUNRQRFBETERQRFDUUNRQRFBETNhMSExEUERM2FDUUNRQRFDUUERQRExEUERMSExEUNRQRFDUUNRQ2EwAFsAABJ5IUERQRExEUNRQRFBETEhMRFDUUNRQRExITNhQRExEUERQ1FDUUNRQRFDUUERQRExEUERQRExEUNRQRFDUUNRQ2EwAFsQABJpIUERMSExETNxMRFBETEhISEzYUNhMRExITNhQRExEUERM2FDUUNhMRFDUUERMSExEUERQRExETNxMRFDUUNhM2EwAFsAABJ5MTERMSExITNhMRExIUERMREzYTNxMRFBEUNRQRExISEhQ0FTYTNhISFDUUERQRExISEhMSExEUNhMREzYTNxM2EwAFsQABJpMTERQRExITNhMRFBEUERMRFDYTNhMRFBEUNRQRExITERQ1FDUUNhMRFDYTERQRFBETERQRExITNhMRFDYTNhM2FAAFsAABJpMTERQRExITNhMSExETEhMREzcTNhMSExEUNRQRFBETERQ1FDYTNhMSEzYTERMSExITERQRExISNxMSEzYTNhM2FAAFrwABJ5MTERQRFBETNhMSExEUERMSEzYTNhMSEhITNhQRFBETERQ1FDYTNhQREzYTERMSFBETERQRExITNhMSEzYSNxM2FAAFrwABJ5MTEhMRFBETNhMSExEUERQREzYTNhMSExEUNRQRFBETERQ1FDYTNhQREjcTEhMRFBETEhMRFBETNhQREzYTNhQ1FAAFrwABJ5MUERMRFBETNhQRExEUERQREzYTNhQRExEUNRQRFBETEhM2EzYUNRQREzYUERMRFBETEhMRFBETNhMSEzYTNhQ1FAAFrwABJ5MUERMRExIUNRQRExEUERQREzYUNRQRExEUNhMRFBEUERM2EzYTNhQREzYUERISFBEUERISExITNhMSEzYUNRQ1FAAFrwABJ5MUERISExITNhMSExITERMSEzYUNRQRExISNxMRExITEhM2EzYTNhQREzYUERMRFBETEhISExITNhQREzYTNhM2FAAFsAABJpMUERMSEhITNhMSExISEhMSEzYTNhMSExISNxMRExITEhI2FDYTNhMSEzYTEhMSEhITEhISExITNhMSEzYTNhM2EwANBQAAAAA='
command_off: 'JgCEAxM2FDUUNRQRFDUUERMSExEUERMSExEUNRQRFDUUNhM2EwAFsAABJ5IUERQRExEUNRQRFBETERQRFDUUNRQRFBETNhMSExEUERM2FDUUNRQRFDUUERQRExEUERMSExEUNRQRFDUUNRQ2EwAFsAABJ5IUERQRExEUNRQRFBETEhMRFDUUNRQRExITNhQRExEUERQ1FDUUNRQRFDUUERQRExEUERQRExEUNRQRFDUUNRQ2EwAFsQABJpIUERMSExETNxMRFBETEhISEzYUNhMRExITNhQRExEUERM2FDUUNhMRFDUUERMSExEUERQRExETNxMRFDUUNhM2EwAFsAABJ5MTERMSExITNhMRExIUERMREzYTNxMRFBEUNRQRExISEhQ0FTYTNhISFDUUERQRExISEhMSExEUNhMREzYTNxM2EwAFsQABJpMTERQRExITNhMRFBEUERMRFDYTNhMRFBEUNRQRExITERQ1FDUUNhMRFDYTERQRFBETERQRExITNhMRFDYTNhM2FAAFsAABJpMTERQRExITNhMSExETEhMREzcTNhMSExEUNRQRFBETERQ1FDYTNhMSEzYTERMSExITERQRExISNxMSEzYTNhM2FAAFrwABJ5MTERQRFBETNhMSExEUERMSEzYTNhMSEhITNhQRFBETERQ1FDYTNhQREzYTERMSFBETERQRExITNhMSEzYSNxM2FAAFrwABJ5MTEhMRFBETNhMSExEUERQREzYTNhMSExEUNRQRFBETERQ1FDYTNhQREjcTEhMRFBETEhMRFBETNhQREzYTNhQ1FAAFrwABJ5MUERMRFBETNhQRExEUERQREzYTNhQRExEUNRQRFBETEhM2EzYUNRQREzYUERMRFBETEhMRFBETNhMSEzYTNhQ1FAAFrwABJ5MUERMRExIUNRQRExEUERQREzYUNRQRExEUNhMRFBEUERM2EzYTNhQREzYUERISFBEUERISExITNhMSEzYUNRQ1FAAFrwABJ5MUERISExITNhMSExITERMSEzYUNRQRExISNxMRExITEhM2EzYTNhQREzYUERMRFBETEhISExITNhQREzYTNhM2FAAFsAABJpMUERMSEhITNhMSExISEhMSEzYTNhMSExISNxMRExITEhI2FDYTNhMSEzYTEhMSEhITEhISExITNhMSEzYTNhM2EwANBQAAAAA='
friendly_name: 'Projector'
soundbar:
command_on: 'pZUTEtsIigESfABxSO92YBMSExEUERMSExEUNQ=='
command_off: 'pZUTEtsIigESfABxSO92YBMSExEUERMSExEUNQ=='
friendly_name: 'Soundbar'
switch 2:
platform: broadlink
host: 192.168.1.90
mac: 'b4xa:10'
switches:
tv:
command_on: 'JgCEAw4ODg4ODg4ODQ4OKw4ODg4ODg4ODg4ODg4NDw0ODg4rDg4ODg4ODg4ODg4ODg0PDQ4ODisOKw4qDyoOKw4ODg4ODg4qDyoOKw4rDioODg4rDgAJlHM4Dg4OKw4NDw0ODg4ODg4ODg4ODg4ODg4ODg4OKg4ODg4ODg4ODg4ODg4ODg4ODg4qDg4ODg4ODg4ODg4ODg4ODg4ODioOKw4rDisOKg4ODg4ODg4rDisOKg4rDisODg4qDgAJlHM4Dg4OKw4ODg4ODg4ODg4ODQ4ODg4ODg4ODg4OKw4ODg4ODQ8NDg4ODg4ODg4ODg4rDg4ODg4NDw4NDg4ODg4ODg4ODisOKg8qDisOKw4ODg0PDQ4rDisOKw4qDisODg4rDgAJk3M5Dg4OKg4ODg4ODg4ODg4ODg4ODg4ODg4NDg4OKw4ODg4ODg4ODg4ODg4ODg0ODg4rDg4ODg4ODg4ODg4ODg4ODQ4ODisOKw4rDioOKw4ODg4ODg4qDyoOKw4rDioODg4rDgAJlHM4Dg4OKw4ODg0ODg4ODg4ODg4ODg4ODg4ODg4OKg4ODg4ODg4PDQ4ODg4ODg4ODg4qDg4ODg4ODg4ODg4ODg4ODg4ODioOKw4rDisOKg4ODg4ODg4rDisOKg4rDisODg4qDgAJlHQ3Dg4OKw4ODg4ODg4ODg4ODQ4ODg4ODg4ODg4OKw4ODg4ODg4NDg4ODg4ODg4ODg4rDg4ODg4ODg0ODg4ODg8NDg4ODisOKg8qDisOKw4ODg4ODQ4rDisOKw4qDisODg4rDgAJk3M5Dg4OKg4ODg4ODg4ODg4ODg4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Kw4qDyoOKw4rDioPDQ4rDgAJlHM4Dg4OKw4ODg0ODg4ODg4ODg4PDQ4ODg4ODg8NKg4ODg4ODg4ODg8NDg4PDQ4ODg4qDg4ODg4ODg4ODw0PDQ4ODg4qDyoOKw4rDioOKw4ODg8NKw4qDyoOKw4rDioODg4rDgAJlHM4Dg4OKw4NDw0ODg4PDQ4ODw0ODg4ODg4ODg8NKg4ODg8NDg4PDQ4ODg4ODg8NDg4qDg8NDg4ODg4ODg4PDQ4ODg4qDyoOKw4rDioOKw4ODg4OKw4qDyoOKw4rDioODg4rDgAJlHM4Dg4OKw4ODQ8NDw0PDQ4ODw0PDQ4ODw0PDQ4OKg4ODg8NDw0PDQ8NDg4ODg8NDg4qDg8NDw0PDQ8NDw0PDQ8NDw0qDisOKw4rDioOKw4ODg4OKw4qDisOKw4rDioODg4rDgAJlHM4Dg4OKw4NDg4ODg4PDQ8NDw0ODg4ODw0PDQ4OKg4ODg8NDw0ODg4ODw0ODg8NDg4qDg4ODg4PDQ8NDg4PDQ4ODw0qDisOKw4rDioOKw4ODg8NKw4qDisOKw4rDioODg4rDgANBQAAAAA='
friendly_name: 'TV'
Check your log
what shall I look for? I don’t see anything related …
rebooting
16-12-24 15:12:53 homeassistant.components.switch: Error while setting up platform broadlink
Traceback (most recent call last):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 150, in _async_setup_platform
entity_platform.add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/switch/broadlink.py", line 131, in setup_platform
broadlink_device
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/switch/broadlink.py", line 145, in __init__
self._command_on = b64decode(command_on) if command_on else None
File "/srv/hass/hass_venv/lib/python3.4/base64.py", line 90, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
Other important issue, for projector, in order to turn it off, I need to send two times the OFF IR remote in 1 second interval. How to do that?
Use a script
Something is wrong with one of the codes
now I try to re learn the codes.
It learns only this code: AAAAAAAAAAAAAAAAAA
16-12-24 15:21:07 homeassistant.components.http: Serving /api/services/broadlink/learn_command_192.168.1.90 to 192.168.1.253 (auth: True)
16-12-24 15:21:07 homeassistant.core: Bus:Handling <Event call_service[L]: service_call_id=1977090096-27, service_data=, service=learn_command_192.168.1.90, domain=broadlink>
16-12-24 15:21:07 homeassistant.components.switch.broadlink: Press the key you want HASS to learn
16-12-24 15:21:07 homeassistant.components.switch.broadlink: Recieved packet is: AAAAAAAAAAAAAAAA
but like this I will have a switch and a script … too confusing, not a good solution
Then you can hide the switch
I am not good in programming, tried and another error
under script … now what is wrong this time …
# Script projector
projector_on:
sequence:
service: switch.turn_on
data:
entity_id: switch.projector_power
- delay:
seconds: 1
service: switch.turn_on
data:
entity_id: switch.projector
projector_off:
sequence:
service: switch.turn_off
data:
entity_id: switch.projector
- delay:
milliseconds: 500
service: switch.turn_off
data:
entity_id: switch.projector
It would be always better having the Discrete code for all devices (never toggle, just send the exact command you want, such as TurnON, HDMI3 input.
Tell me the brand and model of what you want to control and I look for a discrete code in my Android App database.
And, despite it seams confusing, you will need to config just once, and remember, the mainly purpose is to create simple interactions between IR, such as, turn tv off when nobody is home, or turn TV on and set correct input.
You will never have a full control better than the original remote for IR devices!!!
thanks, maybe there isn’t
Samsung HW-J355/EN Soundbar