Skip to content
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

After update 0.115 Switch configuration with broadlink doesn´t work #40235

Closed
koslovsky opened this issue Sep 18, 2020 · 13 comments
Closed

After update 0.115 Switch configuration with broadlink doesn´t work #40235

koslovsky opened this issue Sep 18, 2020 · 13 comments

Comments

@koslovsky
Copy link

koslovsky commented Sep 18, 2020

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

@shirou93
Copy link

shirou93 commented Sep 18, 2020

Mine config Work:

switch:

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

@probot-home-assistant
Copy link

broadlink documentation
broadlink source
(message by IssueLinks)

@koslovsky
Copy link
Author

Mine config Work:

switch:

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

    • name: nasme
      command_on: x
      command_off: x

You are on 0.115?

@shirou93
Copy link

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

@felipediel
Copy link
Contributor

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

@NobleWolf
Copy link

NobleWolf commented Sep 18, 2020

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!

@koslovsky
Copy link
Author

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

@felipediel
Copy link
Contributor

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

@koslovsky
Copy link
Author

yes I used integration and checked MAC.

@koslovsky
Copy link
Author

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?

@felipediel
Copy link
Contributor

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

@koslovsky
Copy link
Author

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

Thanks a lot!!!!

@koslovsky
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants