Hi,
I’m stuck with a problem with DIY mqtt device becouse I have configured a MQTT light in the configuration.yaml file following the documentation, but the light is not visible in the entities list as expected and I cannot add the widget in the dashboard.
Here my configuration.yaml file:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
# Text to speech
tts:
- platform: google_translate
mqtt:
light:
- name: alogenasalotto
state_topic: "home/sala/alogena"
command_topic: "home/sala/alogena/set"
payload_on: "ON"
payload_off: "OFF"
optimistic: false
qos: 0
retain: true
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
The light is only on/off, not dimmerable.
I use hassio with version versions: Home Assistant 2023.8.4 Supervisor 2023.08.1 Operating System 10.5
Could you help me? Could you suggest me the right procedure to add an mqtt device?
Thank you for the reply, but it still not working. I’ve also tried to put the example of mqtt switch in the configuration file, but the switch is not added as entity and I can’t setup it in the widget in the dashboard.
I have solved the problem. The problem was that I have not activated/configurated the integration of mqtt as described here, but only installed the mqtt broker. Thank you for the help.
I didn’t ask if you had installed the MQTT integration because I thought it was self-evident. Without it, Home Assistant cannot communicate via MQTT or create MQTT entities.