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.
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.