Hi all,
With the update of 2022.11.3 i got the message to do 4 repairs before the 2022.12 release.
This mentions the new mqtt configuration format.
I already put [sensor], [binary_sensor], [select] below the mqtt element last month or so. Without any problems.
Today i put [number], [cover], [climate] and [light] below the mqtt element.
When i specify unique_id for an number-item, then it won t show up in HA.
The mqtt [climate], [light] and [cover] stopped working also. No priority yet, i will look into this in a few days.
Question: What can i do to make items unique, so that it not breaks on changing de friendlyname.
Greetings,
Robin
Using Home Assistant 2022.11.3 on HassOS 9.3
Invalid configuration:
mqtt:
number:
- unique_id: mqtt_hv_setpointrookgas
name: "Houtvergasser Setpoint Rookgastemperatuur"
command_topic: "modbus/HvSpRookgasTemperatuur/set"
command_template: >
{{value * 10 |round|int}}
state_topic: "modbus/HvSpRookgasTemperatuur"
unit_of_measurement: "°C"
value_template: >
{{value | float / 10 }}
min: 0
max: 300
sensor:
- unique_id: mqtt_buffer_ah
name: "MQTT Modbus: Buffer A Hoog"
device_class: temperature
state_topic: "modbus/BufferAH"
unit_of_measurement: "°C"
value_template: >
{{value | float / 10 }}
Valid/Working configuration:
mqtt:
number:
# - unique_id: mqtt_hv_setpointrookgas
- name: "Houtvergasser Setpoint Rookgastemperatuur"
command_topic: "modbus/HvSpRookgasTemperatuur/set"
command_template: >
{{value * 10 |round|int}}
state_topic: "modbus/HvSpRookgasTemperatuur"
unit_of_measurement: "°C"
value_template: >
{{value | float / 10 }}
min: 0
max: 300
sensor:
- unique_id: mqtt_buffer_ah
name: "MQTT Modbus: Buffer A Hoog"
device_class: temperature
state_topic: "modbus/BufferAH"
unit_of_measurement: "°C"
value_template: >
{{value | float / 10 }}