{"id":15707469,"url":"https://github.com/compatech/haanna-bouwe","last_synced_at":"2025-03-30T16:15:53.624Z","repository":{"id":80096942,"uuid":"205419995","full_name":"CoMPaTech/haanna-bouwe","owner":"CoMPaTech","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-30T16:38:11.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T17:39:27.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CoMPaTech.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-30T16:35:32.000Z","updated_at":"2019-08-30T16:35:49.000Z","dependencies_parsed_at":"2023-09-20T12:00:59.752Z","dependency_job_id":null,"html_url":"https://github.com/CoMPaTech/haanna-bouwe","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoMPaTech%2Fhaanna-bouwe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoMPaTech%2Fhaanna-bouwe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoMPaTech%2Fhaanna-bouwe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoMPaTech%2Fhaanna-bouwe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoMPaTech","download_url":"https://codeload.github.com/CoMPaTech/haanna-bouwe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246342994,"owners_count":20761947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T20:40:35.257Z","updated_at":"2025-03-30T16:15:53.601Z","avatar_url":"https://github.com/CoMPaTech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Haanna (HA Anna)\n----------------\nA Python API made for use in conjunction with the Home Assistant Anna component, but this API can also be used in other projects.\n\nInstallation\n\"\"\"\"\"\"\"\"\"\"\"\"\n.. code-block:: bash\n\n  pip install haanna\n\n..\n\nUsage\n\"\"\"\"\"\n\n.. code-block:: python3\n\n  from haanna import haanna\n\n  # Create the API\n  api = haanna.Haanna('smile', 'short_id', '192.168.1.60', 80)\n\n  # Fetch the domain objects\n  domain_objects = api.get_domain_objects()\n\n  # Set the temperature\n  temperature = api.set_temperature(domain_objects, 22.50)\n  print(temperature)\n\n  # Get the temperature\n  temperature = api.get_temperature(domain_objects)\n  print(temperature)\n\n  # Get the outdoor temperature\n  temperature = api.get_outdoor_temperature(domain_objects)\n  print(temperature)\n\n  # Get the target temperature\n  temperature = api.get_target_temperature(domain_objects)\n  print(temperature)\n\n  # Get the available presets\n  presets = api.get_presets(domain_objects)\n  print(presets)\n\n  # Get the current active preset, can now also be 'none'\n  current_preset = api.get_current_preset(domain_objects)\n  print(current_preset)\n\n  # Set a preset, e.g. 'away'\n  preset = api.set_preset(domain_objects, 'away')\n  print(preset)\n\n  # Get operation mode (true = active schedule - false = no active schedules)\n  # it 'walks' all schedules and sends true if one is active\n  mode = api.get_mode(domain_objects)\n  print(mode)\n\n  # Get heating status (true = heating is on, flame on display)\n  heating = api.get_heating_status(domain_objects)\n  print(heating)\n\n  # Get domestic hot water status (true = water is being heated, tap on display)\n  hot_water = api.get_domestic_hot_water_status(domain_objects)\n  print(hot_water)\n  \n  # Get schemas or schedules available on the device.\n  schemas = get_schema_names(domain_objects)\n  print(schemas)\n\n  # Sends a set request to the schema with the given name\n  set_schema_state(domain_objects, schema=None, state)\n\n  # Get active schema or determine last modified.\n  schema = get_active_schema_name(domain_objects)\n  print(schemas)\n\n  # Gets the mode the thermostat is in (active schedule true or false)\n  state = get_schema_state(domain_objects)\n  print(state)\n\"\"\"\"\n\n\nTo do:\n\"\"\"\"\"\"\n- Optimize fetching of domain objects\n- Add support for custom port mapping\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompatech%2Fhaanna-bouwe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompatech%2Fhaanna-bouwe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompatech%2Fhaanna-bouwe/lists"}