This is a python port of the great Arduino heatpumpir library by ToniA
Currently supported devices:
pip install hvac_ir
import hvac_ir
Sender = hvac_ir.get_sender('gree')
if Sender is None:
print("Unknown sender")
exit(2)
my_ac = Sender()
my_ac.send(Sender.POWER_OFF, Sender.MODE_HEAT, Sender.FAN_AUTO, 24, Sender.VDIR_SWING_DOWN,
Sender.HDIR_SWING, False)
durations = my_ac.get_durations()
my_ir_sender.transmit(durations)
Example for sending codes via Broadlink controller is in the examples folder