Broadlink Switch doesn't work

The problem with the formatting is that you really need a blank line before and after the code that you are selecting then the </> button will work every time.

To your error the error is binascii.Error: Incorrect padding that means that your base64 string is not divisible by 4 so add enough AA chars to the end of the string to make it divisible by 4 then add == to the end of the string…

e.g.

nexaremote1top: 
  friendly_name: "Nexa1Top"
  command_on:  'sg40AA4AAYAOJScNDiUOJQ4lDiUOJQ4lDiUnDA4lJwwOJSgMDiUnDA4lJwwOJScMDiUOJQ4lJwwAAAAA=='
  command_off: 'sgo0AA4lDiUnDA4lJwwOJScMDiUnDA4lJw0OJScMDiUOJQ4lJw0OAAGADiUnDA4lDiUOJQ4lDiUAAAAA=='
2 Likes