Open Danconnolly opened 5 months ago
I was able to fix the issue with a similar approach. If merged into the repo, I think this could solve the same issue among many users.
I am also waiting for this PR to be merged and released, I have the same issue (https://github.com/petretiandrea/home-assistant-tapo-p100/issues/759). As I am a Home Assistant OS user, I can only apply temporary fix to this lib in the file /usr/local/lib/python3.12/site-packages/plugp100/new/components/smart_door_component.py
through OS root access.
My T110 is returning the status as 'open'.
{'parent_device_id': '', 'hw_ver': '1.0', 'fw_ver': '1.9.0 Build 230704 Rel.154531', 'device_id': '', 'mac': '', 'type': 'SMART.TAPOSENSOR', 'model': 'T110', 'hw_id': '', 'oem_id': '', 'specs': 'EU', 'category': 'subg.trigger.contact-sensor', 'bind_count': 1, 'status_follow_edge': False, 'status': 'online', 'lastOnboardingTimestamp': 1716207870, 'rssi': -54, 'signal_level': 3, 'jamming_rssi': -115, 'jamming_signal_level': 1, 'at_low_battery': False, 'open': True, 'nickname': '', 'avatar': 'sensor_t110', 'report_interval': 16, 'region': ''}
This update enables handling both the possibilities of 'open' and 'is_open'.