{"library":"python-xsense","title":"XSense Python Module","description":"Python module to control XSense air purifiers and sensors. Current version 0.0.16, released irregularly with small feature updates.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install python-xsense"],"cli":null},"imports":["from xsense import XSenseDevice","from xsense import XSenseStation"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import asyncio\nfrom xsense import XSenseDevice, XSenseStation\n\nasync def main():\n    station = XSenseStation()\n    await station.login('username', 'password')\n    await station.update_devices()\n    for device in station.devices:\n        print(device.name, device.type)\n\nasyncio.run(main())","lang":"python","description":"Login, fetch devices, and print their names.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}