I’m trying to learn how to use HA. I’m getting stuck on understanding which code goes in configuration.yaml and which code goes in groups, automations, etc. I’ve been watching a series on setting up holiday lights and have gotten my esp8266 to talk to my broker, but can’t seem to grasp the yaml files and my controls are not showing up on the overview tab. The only error I can see is a notification that says "
Invalid config
The following components and platforms could not be set up:
- [group]
- [script]
- [light]
- [automation]
- [default-config]
Please check your config."
Does this mean there is an error in my configuration.yaml or am I missing something elsewhere?
# 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: mydomain.duckdns.org:8123
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
##This version of the holiday lights code does not require the node red portion
##The "W" slider under the main "holiday LED" light modifies each effect
##The "W" slider under "Glitter" light modifies the frequency of glitter, the RGB selection changes the color of the glitter
##The "W" slider under "Lightning" switch modifies the frequency of lightning.
##You must replace the [MQTT_CLIENT_ID] with the USER_MQTT_CLIENT_NAME you specified in the arduino USER CONFIGURATION section
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