Just a random quick question,
I see that the old way of doing MQTT manual entries is to be killed off soon so I would like to start migrating things, just wanted to run things past people far smarter than myself to see what I am doing wrong as I can’t seem to get them to work, I am using a rather strange setup as I have fully broken my config out in to separate files:
![image](https://community-assets.home-assistant.io/original/4X/c/f/a/cfa1f4eea4b2cae7d57ab63fbb06f31bd76279fb.png)
My confuguration.yaml loads packages, one of which is my MQTT.yaml
#####
# This loads up my MQTT configurations.
#
# https://www.home-assistant.io/integrations/mqtt/
#####
MQTT: !include_dir_list ../entities/mqtt
This bit seems OK, now my old formatting for a light for example is this and doesn’t throw any errors when checking the YAML
#####
# MQTT - Manual MQTT entry for a Shelly Duo RGB Bulb
# https://www.home-assistant.io/integrations/mqtt
#####
light: mqtt_living_room_ceiling
name: "Living Room Ceiling Bulb MQTT"
unique_id: living_room_ceiling_bulb_mqtt
state_topic: "shellies/shellycolorbulb-E8DB84AA63BE/color/0"
command_topic: "shellies/shellycolorbulb-E8DB84AA63BE/color/0/command"
brightness_state_topic: "shellies/shellycolorbulb-E8DB84AA63BE/color/0/status"
brightness_value_template: "{{ value_json.gain | float | multiply(2.55) | round(0) }}"
qos: 0
payload_on: "on"
payload_off: "off"
optimistic: false
But when I try and do what I think is the new format based on an example found here it throws an error
The code tried is:
#####
# MQTT - Manual MQTT entry for a Shelly Duo RGB Bulb
# https://www.home-assistant.io/integrations/mqtt
#####
light:
- name: "Living Room Ceiling Bulb MQTT"
unique_id: living_room_ceiling_bulb_mqtt
state_topic: "shellies/shellycolorbulb-E8DB84AA63BE/color/0"
command_topic: "shellies/shellycolorbulb-E8DB84AA63BE/color/0/command"
brightness_state_topic: "shellies/shellycolorbulb-E8DB84AA63BE/color/0/status"
brightness_value_template: "{{ value_json.gain | float | multiply(2.55) | round(0) }}"
qos: 0
payload_on: "on"
payload_off: "off"
optimistic: false
I get the below error:
Configuration validation
Validate your configuration if you recently made some changes to it and want to make sure that it is all valid.
Configuration invalid!
Package mqtt setup failed. Component MQTT Integration 'MQTT' not found.
I do indeed have the MQTT integration installed and running as it picks up and auto adds a number of devices already:
Not sure what I am doing wrong, anyone have any ideas?
System info:
Home Assistant Core 2022.6.0
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.0