Local Tuya - Tuya Circuit Breaker. How to get info?

I have circuit breaker like this.

https://www.aliexpress.com/i/1005002505542131.html

From tuya cloud I can get the device properties:

{
  "result": {
    "properties": [
      {
        "code": "total_forward_energy",
        "custom_name": "",
        "dp_id": 1,
        "time": 1690966038446,
        "value": 52249
      },
      {
        "code": "phase_a",
        "custom_name": "",
        "dp_id": 6,
        "time": 1690966040454,
        "value": "CQAAFDIAA/Q="
      },
      {
        "code": "fault",
        "custom_name": "",
        "dp_id": 9,
        "time": 1688454836985,
        "value": 0
      },
      {
        "code": "switch_prepayment",
        "custom_name": "",
        "dp_id": 11,
        "time": 1690862456450,
        "value": false
      },
      {
        "code": "clear_energy",
        "custom_name": "",
        "dp_id": 12,
        "time": 1687798095902,
        "value": false
      },
      {
        "code": "balance_energy",
        "custom_name": "",
        "dp_id": 13,
        "time": 1690862456455,
        "value": 0
      },
      {
        "code": "charge_energy",
        "custom_name": "",
        "dp_id": 14,
        "time": 1687798095902,
        "value": 0
      },
      {
        "code": "leakage_current",
        "custom_name": "",
        "dp_id": 15,
        "time": 1690966039411,
        "value": 11
      },
      {
        "code": "switch",
        "custom_name": "",
        "dp_id": 16,
        "time": 1690862456001,
        "value": true
      },
      {
        "code": "alarm_set_1",
        "custom_name": "",
        "dp_id": 17,
        "time": 1690862456014,
        "value": "BAEAFA=="
      },
      {
        "code": "alarm_set_2",
        "custom_name": "",
        "dp_id": 18,
        "time": 1690862456142,
        "value": "AQEAKAMBAQ4EAQCq"
      },
      {
        "code": "breaker_id",
        "custom_name": "",
        "dp_id": 19,
        "time": 1690862456013,
        "value": "1234"
      },
      {
        "code": "leakagecurr_test",
        "custom_name": "",
        "dp_id": 21,
        "time": 1687798095902,
        "value": false
      },
      {
        "code": "clr_all_energy",
        "custom_name": "",
        "dp_id": 101,
        "time": 1687798095902,
        "value": false
      }
    ]
  },
  "success": true,
  "t": 1690966051315,
  "tid": "37a54750311111ee8ecbe2b0bc7235c7"
}

As you can see to fetch current/voltage etc I have to parse the base64 encoded block of dp 6.

Doing it manually as shown in this commit Updated the support of Tuya Circuit Breaker 'dlq' by slydiman · Pull Request #63519 · home-assistant/core · GitHub works.

How do I integrate this with local tuya?

(Manually adding dp 6 shows up as -1)

I found this. Have not checked if it works yet.