MQTT sensor with two listening topics, to record

I have sensor that i would like to record two invidual mqtt state_topic

I have tried to set state_topic: to topic one above, but then sensor stays unknown

I also tried to add attribute, it kind of worked, it shows as attributes in UI, but not the way it was supposed to, also after adding json_attributes_topic it broke my sensor recorder, value is json message but it recorded it like it would be configured as value, not as value_json, also it did not record any attributes, only state_topic

Attribute shows as multiple attributes in UI, i would like to have it as one string, i tried to configure it value | string but it did no change how it showed in UI.

Here is how i have my sensor configured:

    - name: "e-Up!_raw_data"
      unique_id: "eup_raw_data"
      state_topic: "wican/e-up/can/rx"
      value_template: "{{value_json}}"
#      json_attributes_topic: "wican/e-up/can/tx"
#      value_template: "{{value_json}}"

This is how message shows in recorder when attribute not configured
sensor.e_up_raw_data,"{'bus': '0', 'type': 'rx', 'ts': 5101, 'frame': [{'id': 1999, 'dlc': 8, 'rtr': False, 'extd': False, 'data': [16, 9, 98, 29, 218, 3, 20, 2]}]}",2025-01-08T18:50:31.797Z
And this is how it showed when attribute was set
sensor.e_up_raw_data,"{""bus"":""0"",""type"":""rx"",""ts"":18197,""frame"":[{""id"":1999,""dlc"":8,""rtr"":false,""extd"":false,""data"":[16,9,98,29,218,3,20,2]}]}",2025-01-08T18:51:44.901Z

Noticed my error, stupid copy-paste error, had value_template twice, should have json_attributes_template, thats why json message was not formated correctly in recorder.

Changed my sensor to this, I can see attributes in UI, but i cant see those in log, recorder does not record those, how i can get attributes to record?

    - name: "e-Up!_raw_data"
      unique_id: "eup_raw_data"
      state_topic: "wican/e-up/can/rx"
      value_template: "{{value_json}}"
      json_attributes_topic: "wican/e-up/can/tx"
      json_attributes_template: >-
        {"ID": {{value_json.frame[0].id}}, "data": {{value_json.frame[0].data}} }

My main goal is to get my RX topic and TX topic recorded under same sensor log.