This integration will set up the following platforms.
Platform | Description |
---|---|
sensor |
WalkingPad usage metrics. |
- Open the HACS dashboard then click
Integrations
, - Click the
3 dots menu
on the top right corner - Click
Custom repository
- Enter the repo url
https://github.com/madmatah/hass-walkingpad
- Chose a the
Integration
category then Submit - Click on the new
Kingsmith WalkingPad
repo - Click on
Download
on the bottom right corner. - Restart Home Assistant
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledking_smith
. - Download all the files from the
custom_components/king_smith/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
- In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "WalkingPad"
To add your WalkingPad device to Home assistant, you must have a bluetooth adapter configured or a bluetooth proxy. This part is documented in the Bluetooth page of the official Home Assistant documentation.
Before all, ensure that your WalkingPad device is not connected to any device, or it will not be detected.
This custom integration offers 2 configuration modes :
Your WalkingPad can be detected automatically by HomeAssistant if its name is recognized by this integration.
In this case, you will see a new discovered device in Settings > Devices & Services
.
Just click and configure and enter a friendly name for your device:
That's it!
If your device is not detected, read the FAQ and try to use the Manual configuration mode.
In Settings > Devices & Services
, click on Add integration
and look for KingSmith WalkingPad
brand.
If you click on it, it will open the manual configuration form:
Enter your device MAC address in the "device" field and a friendly name in the "name" field.
See the FAQ for more details.
First, make sure no other Bluetooth device is connected to your WalkingPad.
If your device is still not automatically detected by Home Assistant, it's probably due to the fact that its bluetooth name is unknown. In this case, you can try to add it manually to Home Assistant.
First, launch a LE scan from your host system (or any other device with a Bluetooth LE scanner application) to get the MAC address of your WalkingPad device.
For example, to launch a bluetooth LE scan, on linux, you can run:
$> sudo hcitool lescan
LE Scan ...
85:AA:BB:CC:DD:FF KS-ST-A1P
85:AA:BB:CC:EE:FF KS-ST-A1P
Note the MAC address (85:AA:BB:CC:DD:FF
in the previous example), then go to
Home Assistant
> Settings
> Devices and Services
> Add integration
> Search for Kingsmith Walkingpad
.
It should open the manual configuration form. Enter the MAC address in the
Device
form field, any the name of your choice in the Name
field.
Click on Submit
and cross your fingers!
If it works, please open an issue here and tell me the Bluetooth name of your WalkingPad and which model it corresponds to. This will enable me to activate automatic detection for this model.
I've wasted some time on this problem, so here are a few pointers to get a working development environment. I assume you're running Linux. Sorry, I don't know how to do this for other operating systems.
Everything is documented on the Home Assistant Bluetooth page, but here is a summary of the steps to be performed on your host system:
See the official dbus-broker instructions for more details. On Ubuntu I had to run the following commands:
sudo apt install dbus-broker
sudo systemctl enable dbus-broker.service
sudo systemctl --global enable dbus-broker.service
reboot
You need to have Bluez >= 5.63 installed on your host system.
It should be OK in most case, but if your DBus socket is not
in /run/dbus
, you might have to tweak the .devcontainer.json (see runArgs
).
Then, you can run the devcontainer and start Home Assistant with scripts/develop
.
You might have a TLS error on the first run in the logs. Just restart the command and everything should be fine, your bluetooth adapter should be detected by Home Assistant.
This project uses ph4-walkingpad library to control the WalkingPad device. Thanks @ph4r05!
This project takes inspiration and code from @indiefan's king smith custom integration.