plugp100 icon indicating copy to clipboard operation
plugp100 copied to clipboard

handle different possibilities for state of is_open

Open Danconnolly opened this issue 9 months ago • 3 comments

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 avatar May 20 '24 14:05 Danconnolly