from huskoll import Huskoll #Import the library
TOKEN = "YOUR_TOKEN_HERE" #Replace this with your token
HARDWARE_ID = "YOUR_HARDWARE_ID_HERE" #Replace this with the hardware ID of the device you wish to control
device = Huskoll.Device(token=TOKEN, hardware_id=HARDWARE_ID) #Create an object to work with the device
input("Press enter to turn off your heat pump.")
device.power_off() #Quick function to power off the device
input("Press enter to turn on your heat pump.")
device.power_on() #Quick function to power on the device
input("Press enter to change the heating mode to cooling.")
device.set_cooling() #Quick function to set the device heating mode to cooling
input("Press enter to change the heating mode to heating.")
device.set_heating() #Quick function to set the device heating mode to heating
input("Press enter to change the device temperature to 20.")
device.set_temp(20) #Quick function to set the device temperature to a set point
input("Press enter to decrease the device temperature by 2 steps.")
device.decrease_temperature(by=2) #Quick function to decrease the device temperature. The by-parameter indicates by how many steps the temperature should be decreased.
input("Press enter to increase the device temperature by 1 step.")
device.increase_temperature() #The by parameter does not have to be set here, since its default is 1.