A custom integration for home assistant to control the Tapo P100 plugs
To install the Tapo P100 integration:
- copy the
tapo_p100_control
folder into thecustom_components
folder on your home assistant instance.custom_components
folder should be where your configuration.yaml file is.
It could be in:/home/pi/.homeassistant/
If you have home assistant supervised (using docker) it could be in:/usr/share/hassio/homeassistant/
.
In this case you can enter with ssh and do:
cd /usr/share/hassio/homeassistant/
ls
if thecustom_components
doesn't exist:
sudo mkdir custom_components
cd custom_components
sudo git clone https://github.com/fishbigger/HomeAssistant-Tapo-P100-Control.git
sudo mv HomeAssistant-Tapo-P100-Control/tapo_p100_control/ .
sudo rm -r HomeAssistant-Tapo-P100-Control/
cd tapo_p100_control
pwd
Now you will see:
/usr/share/hassio/homeassistant/custom_components/tapo_p100_control
-
restart Home Assistant
-
add these lines to your
configuration.yaml
file after you setup the Tapo app (ip_address
can be found after you choose the device in the app, press the Gear in upper right and chooseDevice Info
):
#P100 or P105 Plug
switch:
platform: tapo_p100_control
ip_address: 192.168.x.x
email: [email protected]
password: Password123
#L510 Series Bulbs
light:
platform: tapo_p100_control
ip_address: 192.168.x.x
email: [email protected]
password: Password123
-
restart Home Assistant again
-
You should see no issues in Home Assistant
Configuration
,Logs
If there are issues with Credentials you should:
a) Change your password to 8 chars through the app (from Tapo app home screen, press Me at bottom right, press your email,Change Password
)
b) LOG OUT from the app and log in
c) Restart Home Assistant and see the Configuration, Logs again. -
Test your plug:
a) Go toDeveloper Tools
,Services
tab
b) SearchSwitch: Turn On
andPick entity: tapo plug router
andCall Service
. It should Turn on the plug (you can also check theStates
tab). -
Create basic automation:
a) Go toConfiguration
,Automations
,Add Automation
, give a name
b) atTriggers
chooseTime pattern
,seconds 40
(leave the other empty)
c) atActions
choose the same as before: (SearchSwitch: Turn On
andPick entity: tapo plug router
)
d) Save. Now, at every 40 seconds (e.g. 15:20:40, 15:21:40) the plug will turn on. Enjoy -
In order to add 2 plugs, take a look here.
-
Add them to your
Overview
by pressing the three dots at upper right corner,Edit Dashboard
, pressADD CARD
button, chooseBy entity
tab and searchswitch
.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change
- Support for L530 Colour Bulbs
- UI setup integration
- Uploading to HACS