A custom integration for home assistant to control the Tapo P100 plugs
To install the Tapo P100 integration:
- copy the
tapo_p100_controlfolder into thecustom_componentsfolder on your home assistant instance.custom_componentsfolder 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_componentsdoesn'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.yamlfile after you setup the Tapo app (ip_addresscan 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@gmail.com
password: Password123
#L510 Series Bulbs
light:
platform: tapo_p100_control
ip_address: 192.168.x.x
email: email@gmail.com
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,Servicestab
b) SearchSwitch: Turn OnandPick entity: tapo plug routerandCall Service. It should Turn on the plug (you can also check theStatestab). -
Create basic automation:
a) Go toConfiguration,Automations,Add Automation, give a name
b) atTriggerschooseTime pattern,seconds 40(leave the other empty)
c) atActionschoose the same as before: (SearchSwitch: Turn OnandPick 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
Overviewby pressing the three dots at upper right corner,Edit Dashboard, pressADD CARDbutton, chooseBy entitytab 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