I had my holiday lights working and while trying to add a different card I messed up my configuration and decided to start from scratch. My arduino side hasn’t changed and I can see the connection being made in the mqtt broker log. I thought I had everything installed again but when I move the slider on my lights, it just turns back off. I’m obviously missing something that I had before.
Here is my lovelace.ui code
title: Home
views:
- badges:
- entity: binary_sensor.updater
- entity: person.sander
- entity: sun.sun
cards:
- entity: weather.home
type: weather-forecast
- entities:
- light.holiday_lights
- light.color_1
- light.color_2
- light.color_3
- light.glitter
- light.lightning
- sensor.current_led
show_header_toggle: false
title: Holiday Lights
type: entities
path: default_view
title: Home
My groups.yaml:
houselights:
name: Holiday Lights
control: hidden
entities:
- light.holiday_lights
- light.color_1
- light.color_2
- light.color_3
- light.glitter
- light.lightning
- sensor.current_led
And my configuration.yaml
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
sensor:
- platform: mqtt
name: "Current LED"
state_topic: "[LightMCU]/locator"
light:
- platform: mqtt
name: "Holiday Lights"
command_topic: "[LightMCU]/power"
state_topic: "[LightMCU]/powerState"
brightness_command_topic: "[LightMCU]/brightness"
brightness_state_topic: "[LightMCU]/brightnessState"
brightness_scale: 255
white_value_command_topic: "[LightMCU]/modifier"
white_value_state_topic: "[LightMCU]/modifierState"
white_value_scale: 500
effect_command_topic: "[LightMCU]/effect"
effect_state_topic: "[LightMCU]/effectState"
effect_list:
- Color_Chase
- Color_Glitter
- Single_Race
- Double_Crash
- Rainbow
- Blocked_Colors
- BPM
- Twinkle
- Fire
- Fill_Solid
- Spooky_Eyes
- LED_Locator
retain: true
- platform: mqtt
name: "Color 1"
command_topic: "[LightMCU]/ColorPower"
state_topic: "[LightMCU]/powerState"
rgb_command_topic: "[LightMCU]/color1"
rgb_state_topic: "[LightMCU]/color1State"
retain: true
- platform: mqtt
name: "Color 2"
command_topic: "[LightMCU]/ColorPower"
state_topic: "[LightMCU]/powerState"
rgb_command_topic: "[LightMCU]/color2"
rgb_state_topic: "[LightMCU]/color2State"
retain: true
- platform: mqtt
name: "Color 3"
command_topic: "[LightMCU]/ColorPower"
state_topic: "[LightMCU]/powerState"
rgb_command_topic: "[LightMCU]/color3"
rgb_state_topic: "[LightMCU]/color3State"
retain: true
- platform: mqtt
name: "Glitter"
state_topic: "[LightMCU]/glitter/state"
command_topic: "[LightMCU]/addEffects"
payload_on: "Glitter On"
payload_off: "Glitter Off"
rgb_command_topic: "[LightMCU]/glitterColor"
rgb_state_topic: "[LightMCU]/glitterColorState"
white_value_command_topic: "[LightMCU]/glitterChance"
white_value_state_topic: "[LightMCU]/glitterChanceState"
white_value_scale: 255
retain: true
- platform: mqtt
name: "Lightning"
state_topic: "[LightMCU]/lightning/state"
command_topic: "[LightMCU]/addEffects"
payload_on: "Lightning On"
payload_off: "Lightning Off"
white_value_command_topic: "[LightMCU]/lightningChance"
white_value_state_topic: "[LightMCU]/lightningChanceState"
white_value_scale: 500
retain: true