fishbigger / HomeAssistant-Tapo-P100-Control

A custom integration for home assistant to control the Tapo P100 plugs
MIT License
208 stars 69 forks source link

Updated plug firmware causes integration to fail #51

Closed stevendodd closed 2 years ago

stevendodd commented 2 years ago

Thanks for creating this integration. I have it working with one of my smart plugs I upgraded the firmware on another one and the plug is no longer working via this integration.

Logger: homeassistant.helpers.service Source: helpers/service.py:130 First occurred: 20:32:51 (9 occurrences) Last logged: 20:38:44

Unable to find referenced entities switch.smart_plug

stevendodd commented 2 years ago

from PyP100 import PyP100 p100 = PyP100.P100("192.168.X.X", "user@gmail.com", "Password") p100.handshake() p100.login() p100.turnOn() p100.turnOff() p100.getDeviceInfo() {'error_code': 0, 'result': {'device_id': '8022C17D081C8912911CE6A3C5DA8E681E461194', 'fw_ver': '1.4.10 Build 20211104 Rel. 35882', 'hw_ver': '1.20.0', 'type': 'SMART.TAPOPLUG', 'model': 'P100', 'mac': 'XXX', 'hw_id': '9994A0A7D5B29645B8150C392284029D', 'fw_id': '1D18AD293A25ABDE41405B20C6F98816', 'oem_id': 'D43E293FEA5A174CC7534285828B0D15', 'specs': 'UK', 'device_on': False, 'on_time': 0, 'overheated': False, 'nickname': 'U21hcnQgUGx1Zw==', 'location': 'living_room', 'avatar': 'plug', 'longitude': X, 'latitude': X, 'has_set_location_info': True, 'ip': '192.168.X.X', 'ssid': 'QlQtQ1NBVFQy', 'signal_level': 3, 'rssi': -48, 'region': 'Europe/London', 'time_diff': 0, 'lang': 'en_US', 'default_states': {'type': 'last_states', 'state': {}}}}

Python lib is working fine - perhaps something is cached in HA?

stevendodd commented 2 years ago

I had to delete the config in the yaml, restart the server and the restore the config and another restart. Its all working fine.