Parkside Battery Charger LocalTuya Integration (switches not working)

Hello! I’ve been running Home Assistant on a Raspberry Pi for the past few months and have been learning more about adding devices without an existing integration.

For the renovation of my house, I’ve been buying more and more into the Parkside brand. They recently released a new “Parkside Performance” charger that allows setting things such as charging current.

image

It turns out it runs on Tuya, so you can add it in Home Assistant with the Tuya/LocalTuya integration. I prefer non-cloud based configurations so I added it using LocalTuya after plugging/unplugging batteries and changing options in the Lidl Home app.

Here’s the overview of the Id’s and their purpose. I didn’t find all of them, I’m guessing they are used for when a “smart battery” (with inbuilt Bluetooth) is connected.

ID Description Values Type
1 Charge Start Switch True/False Switch
2 Name PLGS 2012 A1 Sensor
3 Charge Current (mA) 967, 963, 537 Sensor
4 Battery Voltage (/1000) 18754, 18928, 18974 Sensor
5 Battery percentage (%) 49, 50, 51, 52 Sensor
6 ? 0 ?
7 Charge Type ECO, quick (Performance), standard (Balance), individual (Expert) Sensor
8 60% Switch True/False Switch
9 Overheated notification True/False Switch
10 ? 0 ?
11 ? 0 ?
101 Max charge current (mA) 3800 Sensor
102 Time to Full (in minutes) 19, 61, 60, 103 Sensor
103 10 minutes to full charge notification True/False Switch
104 Fully charged notification True/False Switch

I configured it for LocalTuya in configuration.yaml:

host: 192.168.X.X
    device_id: X
    local_key: X
    friendly_name: Parkside Battery Charger
    protocol_version: "3.3"
    entities:
        #Functional Switches
      - platform: switch
        friendly_name: PBC Charge Switch
        id: 1
        current: 3
        voltage: 4
        
      - platform: switch
        friendly_name: PBC 60% Cutoff
        id: 8
        
        #Push Notification Switches
      - platform: switch
        friendly_name: PBC Overheat Notification
        id: 9
        
      - platform: switch
        friendly_name: PBC 10 Minutes to Full Notification
        id: 103
        
      - platform: switch
        friendly_name: PBC Fully Charged Notification
        id: 104
        
        #Sensors
      - platform: sensor
        friendly_name: PBC Name
        id: 2
        
      - platform: sensor
        friendly_name: PBC Charge Current
        id: 3
        unit_of_measurement: "mA"
        
      - platform: sensor
        friendly_name: PBC Battery Voltage
        id: 4
        scaling: 0.001
        unit_of_measurement: "V"
        
      - platform: sensor
        friendly_name: PBC Battery Percentage
        id: 5
        unit_of_measurement: "%"
        
      - platform: sensor
        friendly_name: PBC Charging Type
        id: 7
        
      - platform: sensor
        friendly_name: PBC Max Charge Current
        id: 101
        unit_of_measurement: "mA"
        
      - platform: sensor
        friendly_name: PBC Minutes to Full
        id: 102
        unit_of_measurement: "Minutes"

The sensors work great and I can use them to create graphs/glances for the charging status.

However, the switches do not work. I can see the current on/off status updating when I change toggles in the Lidl Home app, but toggling the switches from Home Assistant does not work (toggle switches to the previous state after a few seconds). Is there a step/configuration in the YAML I’m missing to make switches work? Help would be appreciated!

It turns out that switches won’t work if the Tuya app is running on your phone. Closing the app made the switches work.

4 Likes

Can you add some pictures please with the switches and the entities? How many charging ports it has?
Thanks

Hey Nicolae, here’s a picture of the entities and switches. There are two more unknown entities which I’m sure are used for the new bluetooth smart batteries, I’ll be able to test/add those as soon as the battery arrives. It has one charging slot.

this is my layout for charger
How can change charging mode in HA?

1 Like

Hi, i have also the same charger of Parkside… but do you have add this device first to Tuya website? and connect with the Lidl Home App? i can’t find this steps…

Looks good! I’m not sure how to set the charge mode. I tried getting help on this, but got the response to look into making custom components, templates, etc but I couldn’t figure it out using the documentation.

You can connect the charger in the Tuya app (Lidl-Home app is simply a copy of the Tuya app with a custom theme) and then access the charger in HA by using the LocalTuya integration. You’ll have to fetch the localkey using tuya-cli.

Hi, maybe you must reset your charger. (Hold 2 buttons on charger) And then you can add charger to “Tuya Smart” app. Then you need set up Tuya Local integration (in HA) with a Tuya IOT development account. (Tuya - Home Assistant). it’s a little complicated process.

FYI: ID 6 is the battery temperature.
If you change ID 7 to the “select” type, you can set the charging mode using HASS:


1 Like