Core: After update 0.115 Switch configuration with broadlink doesn麓t work

Created on 18 Sep 2020  路  13Comments  路  Source: home-assistant/core

The problem


After update to 0.115 broadlink switch doesn麓t work. I configured all devices with integration, remote is ok, but when I reconfigure switch.yaml with this example:

  • platform: broadlink
    mac: !secret mac_bdlk_sala
    switches:

    • name: Ar Sala

      command_on: JgBoARUAAkpkAAElEw4SMBIOEw4SDxIPEg4SDxIQETAREBEQEDEREBIPEi8SLxMvEi8SMBIPEg4SEBEQEQ8SDxEQERAQEBIPEg8SDxIOEg8SDxIOEw4SDxIPEg4SEBEQEQ8SDxEQERARDxIPEg8SDxIOEg8SLxMvEi8TLxJhYwABJhIwERARDxIPEg8SDxIOEg8SDxIvEg8SDxIvEhARMBIwETARMRIvEjASDhMOEg8SDxIOEg8SDxIQEQ8REBEQEBAREBEQEg8SDhIPEg8SDhMOEg8SDxIOEg8SDxIQEQ8REBEQEQ8REBEQEg8SDhIPEg8SYWMAASUTLxIPEg8SDhIQERARDxIPEg8RMBEQEg8SDhMOEjASLxIPEi8SMBIwETERMBEwETESLxMOEg8SDxIvEjASLxIQEQ8SDxEQERAQMREwEy8SDxIvEg8SDxIOEjASDxIPERAREBEPERAREBEwEjASLxIwEgANBQ==

      command_off: JgBoARcAAkhkAAElEw4TLhMOEw4SDxIPEg4TDhIPEi8TDhIQETARMBIPEjASLxMuEy8SLxMOEw4TDhIPEg8SDxAQEg8REBEQEg4TDhMOEg8SDhMOEw4SDxIOEw4SDxIPEg8SDxAREQ8REBIPEg4TDhMOEg8SDhMOEy8SLxNgYwABJhIwEg8QEREPERASDxIPEg4TDhIvEw4TDhIvEw4TLxIvEy8SMBIvEjASDxIOEw4SDxIOEw4TDhIPEg4TDhMOEhARDxEQERASDhIPEg8SDxIOEw4TDhIPEg4TDhIPEg8SDhMOEhARDxEQERASDhMOEg8SYWQAASUSLxMOEg8SDhMOEw4SDxIPEg8RMBEQEg8SDxIvEi8TLxIPEi8TLxIvEy8SMA8yEjASLxMOEg8SDxIvEi8TLxIPEg4TDxIPEQ8SMBIvEjASDxIvEg8SDhMOEy8SDhMOEw4SDxIPEg8REBEPEg8SLxMvEwANBQ==

    • name: TV Sala

      command_on: gAYAVATKBMVEygTFRIpExQTFRMoExQTFRMUExUAA09QEygTFRIpExQTKBMVExQTKRIVExUSFRMUAANPUBMpEhUTKBMVEygTFBMVEygTFRIVExUSFQADUVASKRMUEygTFRMoExUSFRMoExUSFRMVEhUAA1FQEikTFBMpEhUTKBMVEhUTKBMVExQTFRIVAANQURIpEhUTKBMVEygTFBMVEygTFRIVExUSFQADUFATKRIVEygTFRIpExQTFRIpExQTFRMUExUAA1BQEykTFBMoExUSKRMUExUSKRMUExUTFBMVAANQUBMoExUSKRMUEykSFRMUEykSFRMVEhUTFAADUVATKBMVEikSFRMoExUTFBMoExUTFBMVEhUADQU=

      command_off: JgAYAVATKBMVEygTFRIpExQTFRMoExQTFRMUExUAA09QEygTFRIpExQTKBMVExQTKRIVExUSFRMUAANPUBMpEhUTKBMVEygTFBMVEygTFRIVExUSFQADUVASKRMUEygTFRMoExUSFRMoExUSFRMVEhUAA1FQEikTFBMpEhUTKBMVEhUTKBMVExQTFRIVAANQURIpEhUTKBMVEygTFBMVEygTFRIVExUSFQADUFATKRIVEygTFRIpExQTFRIpExQTFRMUExUAA1BQEykTFBMoExUSKRMUExUSKRMUExUTFBMVAANQUBMoExUSKRMUEykSFRMUEykSFRMVEhUTFAADUVATKBMVEikSFRMoExUTFBMoExUTFBMVEhUADQU=

When I go to dash I try to find in a group I receive this error.

image

Environment

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

Problem-relevant configuration.yaml


Traceback/Error logs


Additional information

broadlink

Most helpful comment

Felipe, you were right, I went to check the MAC that was registered in the secrets file and it was wrong. Amazing that the previous version asked to register but did not use to send command. Thank you

All 13 comments

Mine config Work:

switch:

  • platform: broadlink
    mac: 'mac:adress'
    switches:

    • name: nasme

      command_on: x

      command_off: x

broadlink documentation
broadlink source
(message by IssueLinks)

Mine config Work:

switch:

  • platform: broadlink
    mac: 'mac:adress'
    switches:

    • name: nasme
      command_on: x
      command_off: x

You are on 0.115?

Yes, 0.115.

You have switch: before "platform: broadlink" like this?:

switch:

  • platform: broadlink
    mac: 'mac:adress'
    switches:
    name: nasme
    command_on: x
    command_off: x

Did you add the device via config flow? Did you double check the MAC address?

You are on 0.115?

Mine did not work after the 0.115 upgrade. Here is what I did to fix it.

Her is my original config:

switch:
  - platform: broadlink
    host: 192.168.ip.address
    mac: 'MAC:ADD:RE:SS'
    type: rm2_pro_plus
    switches:
    #Kitchen Cabinet Lights
      kitchen_cabinet_lights:
        friendly_name: "Kitchen Cabinet Lights"
        command_on: "JgCYAAABJpMSExMSEzYSNxITExITNhM2EjcSExM2EjcTNxMRExITEhMSExITEhMSExITEhMSEzYROBI3EjcTNhM2EjcTNhMSEwAFGQABJ0gUAAxLAAEnSBQADEsAASVKEwAMTAABJUoVAAxKAAElShIADE0AASdJEgAMTAABJ0gTAAxMAAEmSRIADE0AASZJEgAMTQABJkkTAA0F"
        command_off: "JgCIAAABJZQTEhMSEzYSNxMSExITNhI3EjcSExM2EjcSNxMSExITEhM2EhMTEhMSExITEhMSEzYRFBM2EzYSNxI3EjcTNhMSEwAFGQABJkkTAAxMAAEmSRQADEsAASVKEwAMTAABJUoSAAxNAAEnSBQADEsAASZJEgAMTQABJkkSAAxNAAElShIADQU="

I previously followed instructions from Dr.Zzs Youtube video, but as I periodically remind myself "always check current official documentation". Let me say, it is so refreshing to use an OpenSource project with good official documentation.

I had never setup the Broadlink integration using the UI as the Broadlink integration documentation instructs in the first paragraph under Configuration. @felipediel good catch. So I did this, then followed the instructions for 'switch' and put this in my config:

switch:
  - platform: broadlink
    mac: 'mac:add:re:ss'
    switches:
      - name: Kitchen Cabinet Lights
        command_on: "JgCYAAABJpMSExMSEzYSNxITExITNhM2EjcSExM2EjcTNxMRExITEhMSExITEhMSExITEhMSEzYROBI3EjcTNhM2EjcTNhMSEwAFGQABJ0gUAAxLAAEnSBQADEsAASVKEwAMTAABJUoVAAxKAAElShIADE0AASdJEgAMTAABJ0gTAAxMAAEmSRIADE0AASZJEgAMTQABJkkTAA0F"
        command_off: "JgCIAAABJZQTEhMSEzYSNxMSExITNhI3EjcSExM2EjcSNxMSExITEhM2EhMTEhMSExITEhMSEzYRFBM2EzYSNxI3EjcTNhMSEwAFGQABJkkTAAxMAAEmSRQADEsAASVKEwAMTAABJUoSAAxNAAEnSBQADEsAASZJEgAMTQABJkkSAAxNAAElShIADQU="

And now everything is working again (including UI entity controls and Nabu Casa Alexa integration)! @koslovsky hopefully this helps!

I just updated version, before that, all devices work perfectly. After this I changed switch.yaml and added device on integration. Where do you configure config flow?
Thanks

Configure via Integration == via config flow. Check the MAC address.

yes I used integration and checked MAC.

The point that I find strange that the function of the Switch, even with wrong configuration, it should appear on the dashboard as a switch, Correct?

No. If you use the wrong MAC the switch won't be configured. Please double check, I'm 99% sure that's your problem.

I have another 2 devices and works. I will try to find what is wrong with this one.

Thanks a lot!!!!

Felipe, you were right, I went to check the MAC that was registered in the secrets file and it was wrong. Amazing that the previous version asked to register but did not use to send command. Thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Elmardus picture Elmardus  路  3Comments

piitaya picture piitaya  路  3Comments

sogeniusio picture sogeniusio  路  3Comments

TheZoker picture TheZoker  路  3Comments

Konstigt picture Konstigt  路  3Comments