New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P110 Energy Monitoring support #64
Comments
@gshoebridge update your plugp100 to the experimental version using: use and run these snippet and report here the output: import asyncio
from plugp100 import TapoApiClient
async def main():
# create generic tapo api
sw = TapoApiClient("<ip>", "<email>", "<passwd>")
await sw.login()
print(await sw.get_state_as_dict())
print(await sw.get_energy_usage())
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.run_until_complete(asyncio.sleep(0.1))
loop.close() Thanks |
Happy to help - I'll get onto PC a little later today and |
All done 743e03c849dfa98b94c9394174d8f2544cc6b4d1 Guy |
Thanks a lot. Can you attach a screenshot of energy monitoring from Tapo App? In this way I can understand how these values are used |
A new beta version is released (1.1.5-RC1). To install it, reinstall the repository from HACS and check |
Had 1x issue with 1xP100 not loading Error unloading entry Power Desk for sensor The following integrations and platforms could not be set up: tapo.sensor Logger: homeassistant.setup Unable to prepare setup for platform tapo.sensor: Platform not found (cannot import name 'STATE_CLASS_TOTAL_INCREASING' from 'homeassistant.components.sensor' (/usr/src/homeassistant/homeassistant/components/sensor/init.py)). Just going to try adding power desk (Tapo P110) |
Logger: custom_components.tapo Error fetching tapo data: |
Update Home Assistant to the latest version |
Already there 2021.8.8 :) |
@gshoebridge @petretiandrea the platform STATE_CLASS_TOTAL_INCREASING was committed only a few days ago, will be available in HA 2021.9.0 later today on full release: home-assistant/core@7dd169b#diff-12949adc26a35f4bf5628940f9ffd274c30435abc9af1b60e5bd39bf76be198f |
Hi @petretiandrea :) |
Data run today from your updated script 743e03c849dfa98b94c9394174d8f2544cc6b4d1 |
Yes you're right, I'm using |
A new beta version is released (1.1.5-RC2), try it :) @gshoebridge |
Is it possible to get the "current_power" as an entity? |
Release into 1.2.0 try it :) |
I have P110 working great (on/off) but there are no energy monitoring! |
Request for energy monitoring support over P110 devices
get_energy_usage
method, but need to be checked if it's workingplugp100 2.1.10b0
contains a new methodget_energy_usage()
useful to establish if works.The text was updated successfully, but these errors were encountered: