Sometime (soon)[https://github.com/home-assistant/core/pull/33691] after HA-core 0.109 this module will not be used by HA-core's plugwise component!
A Python API made for use in conjunction with the Home Assistant Anna component, but this API can also be used in other projects.
Installation """""""""""" .. code-block:: bash
pip install haanna
..
Usage """""
.. code-block:: python3
from haanna import haanna
api = haanna.Haanna('smile', 'short_id', '192.168.1.60', 80, False)
direct_objects = api.get_direct_objects()
domain_objects = api.get_domain_objects()
temperature = api.set_temperature(domain_objects, 22.50) print(temperature)
temperature = api.get_current_temperature(domain_objects) print(temperature)
temperature = api.get_schedule_temperature print(temperature)
temperature = api.get_outdoor_temperature(domain_objects) print(temperature)
temperature = api.get_target_temperature(domain_objects) print(temperature)
temperature = api.get_thermostat_temperature(domain_objects) print(temperature)
presets = api.get_presets(domain_objects) print(presets)
current_preset = api.get_current_preset(domain_objects) print(current_preset)
preset = api.set_preset(domain_objects, 'away') print(preset)
mode = api.get_mode(domain_objects) print(mode)
boiler = api.get_boiler_status(direct_objects) print(boiler)
heating = api.get_heating_status(direct_objects) print(heating)
cooling = api.get_cooling_status(direct_objects) print(cooling)
hot_water = api.get_domestic_hot_water_status(direct_objects) print(hot_water)
illuminance = api.get_illuminance(domain_objects) print(illuminance)
boiler_temp = api.get_boiler_temperature(domain_objects) print(boiler_temp)
pressure = api.get_water_pressure(domain_objects) print(pressure)
schemas = get_schema_names(domain_objects) print(schemas)
set_schema_state(domain_objects, schema=None, state)
schema = get_active_schema_name(domain_objects) print(schemas)
state = get_schema_state(domain_objects) print(state)
""""
Please note: when the requested info/data is not available on your Anna, the function will return None
.
When you encouter an error, please report this via an Issue on this github or on the Home Assistant github.
To do: """"""