Async library to communicate with Heatmiser NeoHub 2 API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
938 B

#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2020-2021 Andrius Štikonas <>
# SPDX-License-Identifier: MIT
import asyncio
import datetime
import logging
import neohubapi.neohub as neohub
from neohubapi.enums import ScheduleFormat
async def run():
hub = neohub.NeoHub()
system = await hub.get_system()
hub_data, devices = await hub.get_live_data()
for device in devices['thermostats']:
print(f"Target temperature of {}: {device.target_temperature}")
await device.identify()
for device in devices['timeclocks']:
print(f"Timeclock {}: {device.target_temperature}")
print(await hub.set_timer_hold(False, 1, [device]))
print(await hub.target_temperature_step)
def main():
if (__name__ == '__main__'):