BRUH digital led strip in HA 0.84.1

Hi All,

Since the new update to home assistant 0.84.1 MQTT lights have all been put under one single platform. This means that if you are using something such as the digital LED strip controller from @bruhautomation they will no longer show up in the new release.

Fixing is a simple one all that needs to be done is to change the platform and add the schema flag like this.

- platform: mqtt
  schema: json
  name: "LED Strip"
  state_topic: "bruh/porch"
  command_topic: "bruh/porch/set"
  effect: true
  effect_list:
    - bpm
    - candy cane  
    - confetti  
    - cyclon rainbow  
    - dots  
    - fire  
    - glitter  
    - juggle  
    - lightning
    - noise  
    - police all  
    - police one  
    - rainbow  
    - rainbow with glitter  
    - ripple  
    - sinelon  
    - solid  
    - twinkle  
  brightness: true
  flash: true
  rgb: true
 optimistic: false
 qos: 0

This does not impact on the functionality of your LED strip it just tells HA that it needs to use the new MQTT light platform and to use JSON as the method for control.

Hope this helps anyone wondering why their strips are not working!

Riley.

11 Likes

Thanks for posting this, saved me a bunch of time.

1 Like

FWIW, the modification (breaking change) to MQTT Light is documented both in the main documentation and the release notes for 0.84.0:

Mqtt light refactor (@emontnemery - #18227) (mqtt docs) (light.mqtt docs) (breaking change) (new-platform)

Nevertheless, it’s still handy to announce how ’ breaking changes’ impact readily identifiable devices because, when it comes to reading release notes, they don’t always get the scrutiny they deserve.

Thank you!

Thank you!

Thanks for this!

I have made the changes to the yaml file that calls my bruh lights

light:
  - platform: mqtt
    schema: json
    name: Bar_Shelf_Lights
    state_topic: "bar/shelves"
    command_topic: "bar/shelves/set"
    effect: true
    effect_list:
      - bpm
      - candy cane  
      - confetti  
      - cyclon rainbow  
      - dots  
      - fire   
      - glitter  
      - juggle  
      - lightning
      - noise  
      - police all  
      - police one  
      - rainbow  
      - rainbow with glitter  
      - ripple  
      - sinelon  
      - solid  
      - twinkle  
    brightness: true
    flash: true
    rgb: true
    optimistic: false
    qos: 0

When I call it from the groups.yaml file I am using this

Bar_RGB_Lights:
  entities:
  - light.Bar_Shelf_Lights
  - automation.Animation_Speed
  - input_number.animation_speed

Any reason I am getting this error when I check my config and the switch / color wheel are not showing up?
Platform not found: light.mqtt_json

Are you sure you are on version 0.84.1 or higher?

You did restart Hass completely?
Do you have more light: items in your config?
Then put then all together. So 1 “light:”
and then all items below that with - as separation.

You can also turn on debug log and look at errors prior to the error you see.

Ah that makes sense after I read your response. I do have three temperature sensors that I corrected to the correct format with the new schema setting. So checking my config finally got rid of all my errors. However, after doing so and after the reload I still do not have the color wheel popping up on any of the lights on the sensors or the RGB strip. Are you sure that combining the lights into one function call will do the work? they were separated before and it all worked fine. An easy fix just checking to make sure I am not having another problem.

Nevermind, did a full restart and everything worked. Thanks again! It is great to get this kind of help!

1 Like

Since the upgrade to 87.1 I am now having an issue with the BRUH digital led strip and the reference to the following line…Have they changed something else in the json schema

indent preformatted text by 4 spacesTesting configuration at /tmp/config
Failed config
light.mqtt:
- Invalid config for [light.mqtt]: [flash] is an invalid option for [light.mqtt]. Check: light.mqtt->flash. (See ?, line ?). Please check the docs at https://home-assistant.io/components/light.mqtt/
- platform: mqtt
brightness: True
command_topic: brins/rgbstrip/set
effect: True
effect_list: [source /tmp/config/configuration.yaml:497]
- bpm
- candy cane
- Christmas Day
- confetti
- cyclon rainbow
- dots
- Easter Sunday
- fire
- glitter
- Halloween
- juggle
- lightning
- noise
- police all
- police one
- rainbow
- rainbow with glitter
- Red, White, Blue
- ripple
- sinelon
- solid
- St. Patricks Day
- Star Wars
- Thanksgiving
- twinkle
- Valentines Day
flash: True
name: RGB Intelligent Strip
optimistic: False
qos: 0
rgb: True
schema: json
state_topic: brins/rgbstrip

Successful config (partial)
light.mqtt:

Try removing flash: true

1 Like

In the release notes for 0.87. changes to mqtt

Oh… and you don’t have schema, here is my working config:

light:
  - platform: mqtt
    schema: json
    name: "RGB traka"
    state_topic: "rgb/abovetv"
    command_topic: "rgb/abovetv/set"
    effect: true
    effect_list:
      - bpm  
      - candy cane  
      - animations  
      - template  
      - blendwave  
      - beatwave  
      - blur  
      - confetti  
      - confetti 2  
      - confetti pal  
      - dotbeat  
      - every n example  
      - fill grad  
      - inoise8 mover  
      - inoise8 pal  
      - noise 16 1  
      - noise 16 2  
      - noise 16 3  
      - one sine pal  
      - palette cross fade  
      - rainbow march  
      - rainbow beat  
      - ripple pal  
      - sinelon  
      - cyclon rainbow  
      - dots  
      - fire  
      - glitter  
      - juggle  
      - lightning  
      - noise  
      - police all  
      - police one  
      - rainbow  
      - rainbow with glitter  
      - ripple  
      - sinelon  
      - solid  
      - twinkle
    brightness: true
    # flash: true
    rgb: true
    optimistic: false
    qos: 0

Juste replace effect list, we don’t have the same

2 Likes

Thanks for your help on this, I’ve hashed out the flash and that seems to have done the trick…

1 Like

A lot of platforms are evolving at the moment.
The flash: true has been replaced with more specific long and short flash settings.

Personally, I never used the basic “flash” function on my LED Strips and the time I did try it to test, it never worked anyway. I just use the effects built in.

I have found that sometimes turning off does not work if one of the effects is in place instead of just solid. Not sure if others have found this also. It looks like the MQTT message is getting through, but processing the JSON is a little bit flakey at times.

DrZZ’s has a modification of the BRUH script that doesn’t use JSON formatting for those that want to do it a different way.