preheat_open.api.adapter.ApiAdapter
- class preheat_open.api.adapter.ApiAdapter(config=None, _api_session=None, _cache=None)
Bases:
Adapter- __init__(config=None, _api_session=None, _cache=None)
Methods
__init__([config, _api_session, _cache])close()get_all_locations_collection()- rtype:
get_all_locations_information()- rtype:
list[LocationInformation]
get_comfort_profile_setpoints(date_range, ...)- rtype:
get_devices(location_id)- rtype:
list[Device]
get_electricity_prices(date_range, unit[, ...])- rtype:
list[ElectricityPrices]
get_features(location_id)get_location(location_id)- rtype:
get_locations(location_ids)- rtype:
list[Location]
get_price_components(supply_point_ids)- rtype:
dict[int,list[AppliedPriceComponent]]
get_price_data(date_range, price_component_ids)- rtype:
dict[int,PriceData]
get_setpoint_schedule(date_range, control_unit)- rtype:
load_measurements(components, date_range[, ...])- rtype:
None
location_key(location_id)- rtype:
str
location_post_setup(location)open()put_setpoint_schedule(schedule, control_unit)- rtype:
Response
update_location_cache(location)Attributes
building_modelconfig