Metadata-Version: 2.4 Name: pyintesishome Version: 1.8.8 Summary: A python3 library for running asynchronus communications with IntesisHome Smart AC Controllers Home-page: https://github.com/jnimmo/pyIntesisHome Author: James Nimmo Author-email: james@nimmo.net.nz License: MIT Classifier: Development Status :: 3 - Alpha Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator Description-Content-Type: text/markdown License-File: LICENSE Requires-Dist: aiohttp<4,>=3.7.4 Dynamic: author Dynamic: author-email Dynamic: classifier Dynamic: description Dynamic: description-content-type Dynamic: home-page Dynamic: license Dynamic: license-file Dynamic: requires-dist Dynamic: summary # pyIntesisHome This project is a python3 library for interfacing with Intesis air conditioning controllers, including cloud control of IntesisHome (Airconwithme + anywAiR) and local control of IntesisBox devices. It is fully asynchronous using the aiohttp library, and utilises the private API used by the IntesisHome mobile apps. ### Home Assistant To use with [Home Assistant](https://www.home-assistant.io/integrations/intesishome/), add the following to your configuration.yaml #### IntesisHome configuration example ```yaml climate: - platform: intesishome username: YOUR_USERNAME password: YOUR_PASSWORD ``` #### IntesisBox configuration example ```yaml climate: - platform: intesishome device: IntesisBox host: 192.168.1.50 ``` ## Library usage - Instantiate the IntesisHome controller device with username and password for the user.intesishome.com website. - Status can be polled using the poll_status command suggested maximum of once every 5 minutes. - Commands are sent using a TCP connection to the API which will then remain open until the connection times out. - While the persistent TCP connection is open, status updates are pushed to the device over the socket meaning polling is not required (check using _is_connected_ property) - Callbacks to be notified of state updates can be added with the add_callback() method. ### Library basic example ```python import asyncio from pyintesishome import IntesisHome async def main(loop): controller = IntesisHome('username', 'password', loop=loop, device_type='airconwithme') await controller.connect() print(repr(controller.get_devices())) # Imagine you have a device with id 12015601252591 if await controller.get_power_state('12015601252591') == 'off': await controller.set_power_on('12015601252591') await controller.set_mode_heat('12015601252591') await controller.set_temperature('12015601252591', 22) await controller.set_fan_speed('12015601252591','quiet') if __name__ == "__main__": loop = asyncio.get_event_loop() result = loop.run_until_complete(main(loop)) ``` ### Control methods - set_mode_heat(deviceID) - set_mode_cool(deviceID) - set_mode_fan(deviceID) - set_mode_dry(deviceID) - set_mode_auto(deviceID) - set_temperature(deviceID, temperature) - set_fan_speed(deviceID, 'quiet' | 'low' | 'medium' | 'high' | 'auto') - set_power_on(deviceID) - set_power_off(deviceID)