Skip to content
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

handle different possibilities for state of is_open #189

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Danconnolly
Copy link

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'.

@Danconnolly
Copy link
Author

Fixes issue petretiandrea/home-assistant-tapo-p100#759

@martorchio
Copy link

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.

@cmilanf
Copy link

cmilanf commented Aug 9, 2024

I am also waiting for this PR to be merged and released, I have the same issue (petretiandrea/home-assistant-tapo-p100#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants