Hi there,
Please could someone assist me with my mqtt re-configuration. I have my mqtt files saved in one folder like this:
/config/packages/systems/ustou/ustou_lights.yaml
My old configuration was like this:
# Devices
light:
- platform: mqtt
name: "Entrance Hall Light"
command_topic: "cmnd/halllight/POWER"
state_topic: "stat/halllight/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
unique_id: entrance hall light
- platform: mqtt
name: "Dining Floor Light"
command_topic: "cmnd/floorlamp/POWER"
state_topic: "stat/floorlamp/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
unique_id: dining floor light
- platform: mqtt
name: "Telephone Table Lamp"
command_topic: "cmnd/table3/POWER"
state_topic: "stat/table3/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
unique_id: telephone table lamp
I have 3 .yaml files; one for sensors, one for lights and one for switches
Now after changing to RC 2022.6 I changed the above to this:
# Devices
mqtt:
light:
- name: "Entrance Hall Light"
command_topic: "cmnd/halllight/POWER"
state_topic: "stat/halllight/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
unique_id: entrance hall light
- name: "Dining Floor Light"
command_topic: "cmnd/floorlamp/POWER"
state_topic: "stat/floorlamp/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
unique_id: dining floor light
- name: "Telephone Table Lamp"
command_topic: "cmnd/table3/POWER"
state_topic: "stat/table3/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
unique_id: telephone table lamp
Now after restart all lights are “unavailable” but switches and climate sensors are working…?
I changed my switches from this:
# Power Outlets
switch:
- platform: mqtt
name: "Mums Blanket"
command_topic: "cmnd/mumblanket/POWER"
state_topic: "stat/mumblanket/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Dads Blanket"
command_topic: "cmnd/dadblanket/POWER"
state_topic: "stat/dadblanket/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Lili Blanket"
command_topic: "cmnd/liliblanket/POWER"
state_topic: "stat/liliblanket/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
To this and they are still present and working in my dashboard:
# Power Outlets
mqtt:
switch:
- name: "Mums Blanket"
command_topic: "cmnd/mumblanket/POWER"
state_topic: "stat/mumblanket/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
- name: "Dads Blanket"
command_topic: "cmnd/dadblanket/POWER"
state_topic: "stat/dadblanket/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
- name: "Lili Blanket"
command_topic: "cmnd/liliblanket/POWER"
state_topic: "stat/liliblanket/POWER"
payload_on: "ON"
payload_off: "OFF"
retain: true
I made the same changes made to my sensors and switches, as I did to my lights. So I’m confused as to why the lights no longer work.
Any advice would be greatfully received.