Skip to content

Commit

Permalink
! do not incorporate the readable device name into the message name
Browse files Browse the repository at this point in the history
This is no longer allowed as of HA version 2023.08.
See: https://developers.home-assistant.io/blog/2023-057-21-change-naming-mqtt-entities/
  • Loading branch information
langchr86 committed Aug 28, 2023
1 parent bc661a2 commit bb2cfc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/src/homeassistant/sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ String Sensor::GetConfigPayload() const
{
StaticJsonDocument<JSON_OBJECT_SIZE(64)> json;

json["name"] = device_readable_name_ + " " + readable_name_;
json["name"] = readable_name_;
json["unique_id"] = device_unique_id_ + "_" + unique_id_;
json["state_topic"] = device_state_topic_;
json["value_template"] = "{{ value_json." + unique_id_ + " }}";
Expand Down

0 comments on commit bb2cfc4

Please sign in to comment.