Broadlink RM-PRO and A1 sensor

@Danielhiversen. yes - the switch does not show in the UI, the log doesn’t show any messages either.

I created a switch with my A/C remote code for COLD 23 degrees and another for HEAT 26 degrees, and it is working fine.
Both switches turn the A/C on and off, each with its own mode and temperature.

Does anyone know if is there a Discrete Code for A/C ?

Tried and got this error on log:

Testing configuration at /home/hass/.homeassistant
16-12-22 00:37:19 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [switch.broadlink]: expected a dictionary for dictionary value @ data[‘switches’][‘name’]. Got None. (See ?:?). Please check the docs at Broadlink - Home Assistant

Got it working without any error with this:

switch:
  platform: broadlink
  host: IP_ADDRESS
  mac: 'MAC_ADDRESS'
  type: sp2
  switches:
    name:
      friendly_name: 'Humidifier'

I got the switch working on the web interface as well !!!
Another step forward !!!

Does the sp2 read energy consumption?

it work for my on sp3 .
thanks

you use only on /off switch?

work thanks

No power consumption here. I don’t think so.

I have a SPMini, two RM-Pro, and a A1, all working now, including the status info from SPMini when turned manually or from another app.

Is there support for TC switches from Broadlink already? or planned to ? (@Danielhiversen)

Hi rf code working fine.
.
Ir code of TV not working. The code is very long. Maybe I need to break it in 2 lines?

No errors in log

Usually very long codes are not working, and I think they are error results…
Try learning again and again and see if sometime you get a shorter one…

And I think that is not possible breaking the code into 2 lines…

ahh I understand, ok will try again

is the pycrypto error resolved?

Now I can’t get rid of it even doing sudo reboot (before with sudo reboot it would start well)

I just replaced my original in the components folder.

Rename the original to broadlink_old.pyold and copy the last one.

Erase all broadlink files from custom_components

That is the way I did.

Hi, I got it to work, it seems the friendly_name: ‘XYZ’ is mandatory?
(docs are a bit confusing at this stage - i took oliverdog’s as a reference)

the ‘status light’ which can be switched independently of the switch proper is not supported.
and the (initial) status is incorrect - assumes ‘off’

otherwise it seems stable, i’ll report back if/when i see some anomaly.
thanks for the good work and merry xmas y’all!

done but it still has problems

Hello @oliverdog. What is code length? Typically it should be 24bit. The first 16 bits are control id and rest are button id.

that’s one of my code

JgCEAw4ODg4ODg4ODQ4OK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g4qDgAJlHM4Dg4OKw4ODg4ODg4ODg4ODQ4ODg4ODg4ODg4OKw4ODg4ODg4NDg4ODg4ODg4ODg4rDg4ODg4ODg0ODg4ODg4ODg4ODisOKg8qDisOKw4ODg4ODQ8qDisOKw4qDisODg4rDgANBQAAAAA’

This is my biggest code:

JgDwAA4ACHUAASyUFTcVNxQSFBEUEhURFRAVOBIUEjgUNxMTFBMTExMSExQSOBQ4FBEUOBITFBITExMTFBMSOBMUEhMVOBITEjgTExQTFBETExMTFBMSFBMSFRETExMTExIVEhQRFBMUERQSFAABCxISFBQSEhQSFBIUExQRFBIUEhMTFBITExQSExMUERQSFREUExMSFRITExITExMUEhQSExMUEhMTFBITEhQSFBMTEhQSFBIVERUSEhMTExMUFRATExMTFBIUEhMTExIVERQSFBITExQSFBIUExMSExUTOBQSExMTOBM4ExMUOBMSEwANBQAAAAAAAAAA

It is from an A/C Cold 23 degrees command.

Most of my IR codes are half of this and all my working RF codes are 1/4 of this…