json_attributes is deprecated. Simple replacing json_attributes with json_attributes_topic gives me some errors.
Could someone give an example on how to use json_attributes_topic right? Is there a new format?
(string)(Optional)The MQTT topic subscribed to receive a JSON dictionary payload and then set as sensor attributes.
(list | string)(Optional)(Deprecated, replaced by json_attributes_topic) A list of keys to extract values from a JSON dictionary payload and then set as sensor attributes.
EDIT: It looks like with adding the whole topic as attributes we can no longer chose which attributes we like to show.
With the new way all attributes are shown. Am I right? Does someone know why this change happened?
Also this way we have duplicate values as state an attribute, like in this example the battery state: