Core: Custom IR entities not adding through the broadlink integration

Created on 20 Sep 2020  路  14Comments  路  Source: home-assistant/core

The problem

After update to 0.115, all my custom IR entities does not work. Tried to add Broadlink integration flow only add remote entities.
was using rm pro+
All my custom entities does not showed up.

Environment

arch | armv7l
-- | --
chassis | embedded
dev | false
docker | true
docker_version | 19.03.11
hassio | true
host_os | HassOS 4.13
installation_type | Home Assistant OS
os_name | Linux
os_version | 4.19.127-v7
python_version | 3.8.5
supervisor | 245
timezone | Asia/Kuala_Lumpur
version | 0.115.2
virtualenv | false

  • Home Assistant Core release with the issue: 0.115
  • Last working Home Assistant Core release (if known): 0.114
  • Operating environment (OS/Container/Supervised/Core): HassOS 4.13
  • Integration causing this issue: Broadlink
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

my configuration.yaml sample

switch:
  - platform: broadlink
    mac: XX:XX:XX:XX
    switches:
      - name: Tv
        command_on: 'JgCIAAc/BxsHHAcbBxwHHAY/Bz8HHAc+BxwHHAYcBz8HGwcABfEHPwcbBxwHHAYcBz8HGwccBz8HGwc/Bz8HPwcbBz8HAAWpCD4HGwccBxwHGwccBz4HPwccBz8GHAccBxsHPwccBwAF8Ac+BxwHHAcbBxwHPwYcBxwHPgccBz8HPgc/BxwHPwYADQU='
        command_off: 'JgCIAAc/BxsHHAcbBxwHHAY/Bz8HHAc+BxwHHAYcBz8HGwcABfEHPwcbBxwHHAYcBz8HGwccBz8HGwc/Bz8HPwcbBz8HAAWpCD4HGwccBxwHGwccBz4HPwccBz8GHAccBxsHPwccBwAF8Ac+BxwHHAcbBxwHPwYcBxwHPgccBz8HPgc/BxwHPwYADQU='
      - name: Channel Up
        command_on: 'JgDMAHE8DRANLQ0QDBAMEQwRDBELEQwRDBEMEAwRDBEMLgwQDBEMEQwRCxEMEQwRDBAMEQwuDBELEQwRDBEMEAwRDBEMEQsRDBEMLg0QCy8LLgwRDBEMEAwRDS0NEAwuDC4MEAwuDQAJsHI8DRALLg0QDBEMEQsRDBEMEQwQDBEMEQwQDBEMLg0QDBAMEQwRDBEMEAwRDBEMEAwuDRAMEQwQDBEMEQwRCxEMEQwRCxEMLg0QDC4NLQwQDBEMEQwRCy4NEAwuDS0NEAsuDQANBQAAAAAAAAAAAAAAAA=='
      - name: Channel Down
        command_on: 'JgDMAHE9DBELLgwRDBENEAwQDBEMEQwRDBAMEQwRDBEMLQ0QDBEMEQwRDBAMEQwRDBAMEQwuDBEMEAwRDRAMEQwQDBEMEQwuDBEMLgsRDC4NLQwRDBEMLgsRDC4MEQwuDC4NEAsuDQAJsXE9DBANLQwRDBEMEAwRDBEMEQwQDBEMEQwQDRAMLgwRDBEMEAwRDRAMEQsRDBEMEQwuDBAMEQwRDBELEQwRDRAMEQsuDBEMLgwRDC4MLgwQDBEMLgwRDC4MEAwuDC4NEAwuDAANBQAAAAAAAAAAAAAAAA=='
broadlink

Most helpful comment

Did you check the entity id? Sometimes you have to update the id on lovelace. Does the remote entity work normally?

Hi @felipediel,
Thank you so much, I am manage to get the entities out after editing lovelace. the remote entity does work normally.
Thanks alot for all the hardwork on Broadlink intergration. Appreciate it.

All 14 comments

broadlink documentation
broadlink source
(message by IssueLinks)

Hey there @danielhiversen, @felipediel, mind taking a look at this issue as its been labeled with an integration (broadlink) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

Please double check the MAC address.

I have the same issue. Can't get it to work. The MAC I used is correct. I'm also using the rm pro+

We changed a lot of things recently. Did you read the docs?

  1. You need to add the device via Integrations first.
  2. If you want to create custom switches, DOUBLE CHECK the MAC address. You cannot enter a wrong MAC address anymore. If you make a mistake, your switches won't be created because they won't be linked to any device. I'm 99% sure that's your problem.

Yes I read the docs. Yes I added the broadlink via integrations. I used the mac which is shown in the Broadlink App. Switches config:

- platform: broadlink
  mac: '78:0F:77:XX:XX:XX'
  switches:
    - name: "Receiver"
      command_on: 'JgBQAAABJZUVNRE4ERQRFBAUFRARFBE4ERQRExYPERQROBUQERQRExYPERQRFBQ1ETgSExEUETgSOBQ1ETkVDxITETgVNRUQEQAFuQABJksRAA0FAAAAAAAAAAA='
      command_off: 'JgBQAAABJpUROBE5ERMRFBEUERMSExE5ERMSExEUERQROBEUERMSExEUERQRExITERQRFBETETkROBE4EjgROBI4ETgSOBETEgAFuQABJksRAA0FAAAAAAAAAAA='

Ok, I'm curious now. Please open a terminal on your computer, install the python-broadlink library (pip install broadlink), open Python 3 and type:

import broadlink as blk

devs = blk.discover(timeout=10)
print([(d.host[0], hex(d.devtype), d.mac.hex(), d.is_locked) for d in devs])

devs = blk.discover(discover_ip_address="192.168.0.17", timeout=10)  # Your device IP address
print([(d.host[0], hex(d.devtype), d.mac.hex(), d.is_locked) for d in devs])

What is the output?

Please double check the MAC address.

Hi, I'm very sure I'm using the correct MAC address as well. I've copied from the Broadlink manager.
as for the terminal command, I couldn't do it now as I don't have access to my computer right now. I will do it after work today.
Anyway thanks for your hardwork.

Ok, I'm curious now. Please open a terminal on your computer, install the python-broadlink library (pip install broadlink), open Python 3 and type:

import broadlink as blk

devs = blk.discover(timeout=10)
print([(d.host[0], hex(d.devtype), d.mac.hex(), d.is_locked) for d in devs])

devs = blk.discover(discover_ip_address="192.168.0.17", timeout=10)  # Your device IP address
print([(d.host[0], hex(d.devtype), d.mac.hex(), d.is_locked) for d in devs])

What is the output?

Here are the result.
Thanks

>>> devs = blk.discover(timeout=10)
print([(d.host[0], hex(d.devtype), d.mac.hex(), d.is_locked) for d in devs])
>>> print([(d.host[0], hex(d.devtype), d.mac.hex(), d.is_locked) for d in devs])

[('192.168.1.115', '0x279d', '780f775a2f12', False)]

>>> devs = blk.discover(discover_ip_address="192.168.1.115", timeout=10)  
print([(d.host[0], hex(d.devtype), d.mac.hex(), d.is_locked) for d in devs])
>>> print([(d.host[0], hex(d.devtype), d.mac.hex(), d.is_locked) for d in devs])

[('192.168.1.115', '0x279d', '780f775a2f12', False)]

This is the Yaml to compare the Mac address:

switch:
  - platform: broadlink
    mac: 78:0F:77:5A:2F:12
    switches:
      - name: Tv
        command_on: 'JgCIAAc/BxsHHAcbBxwHHAY/Bz8HHAc+BxwHHAYcBz8HGwcABfEHPwcbBxwHHAYcBz8HGwccBz8HGwc/Bz8HPwcbBz8HAAWpCD4HGwccBxwHGwccBz4HPwccBz8GHAccBxsHPwccBwAF8Ac+BxwHHAcbBxwHPwYcBxwHPgccBz8HPgc/BxwHPwYADQU='
        command_off: 'JgCIAAc/BxsHHAcbBxwHHAY/Bz8HHAc+BxwHHAYcBz8HGwcABfEHPwcbBxwHHAYcBz8HGwccBz8HGwc/Bz8HPwcbBz8HAAWpCD4HGwccBxwHGwccBz4HPwccBz8GHAccBxsHPwccBwAF8Ac+BxwHHAcbBxwHPwYcBxwHPgccBz8HPgc/BxwHPwYADQU='
      - name: Channel Up
        command_on: 'JgDMAHE8DRANLQ0QDBAMEQwRDBELEQwRDBEMEAwRDBEMLgwQDBEMEQwRCxEMEQwRDBAMEQwuDBELEQwRDBEMEAwRDBEMEQsRDBEMLg0QCy8LLgwRDBEMEAwRDS0NEAwuDC4MEAwuDQAJsHI8DRALLg0QDBEMEQsRDBEMEQwQDBEMEQwQDBEMLg0QDBAMEQwRDBEMEAwRDBEMEAwuDRAMEQwQDBEMEQwRCxEMEQwRCxEMLg0QDC4NLQwQDBEMEQwRCy4NEAwuDS0NEAsuDQANBQAAAAAAAAAAAAAAAA=='
      - name: Channel Down
        command_on: 'JgDMAHE9DBELLgwRDBENEAwQDBEMEQwRDBAMEQwRDBEMLQ0QDBEMEQwRDBAMEQwRDBAMEQwuDBEMEAwRDRAMEQwQDBEMEQwuDBEMLgsRDC4NLQwRDBEMLgsRDC4MEQwuDC4NEAsuDQAJsXE9DBANLQwRDBEMEAwRDBEMEQwQDBEMEQwQDRAMLgwRDBEMEAwRDRAMEQsRDBEMEQwuDBAMEQwRDBELEQwRDRAMEQsuDBEMLgwRDC4MLgwQDBEMLgwRDC4MEAwuDC4NEAwuDAANBQAAAAAAAAAAAAAAAA=='

Did you check the entity id? Sometimes you need to update the id on lovelace. Does the remote entity work normally?

Did you check the entity id? Sometimes you have to update the id on lovelace. Does the remote entity work normally?

Hi @felipediel,
Thank you so much, I am manage to get the entities out after editing lovelace. the remote entity does work normally.
Thanks alot for all the hardwork on Broadlink intergration. Appreciate it.

What did you have to change to make it work again?

Go to /config/entities to see the name of your entities. Then go to your default view, click the button in the upper right (those ...), edit dashboard, and then you customize your UI.

Working now thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arangates picture arangates  路  3Comments

neonandu picture neonandu  路  3Comments

missedtheapex picture missedtheapex  路  3Comments

kirichkov picture kirichkov  路  3Comments

sh0rez picture sh0rez  路  3Comments