def create_time_message(time): message = Message() message.type = "AC_timer" message.value = time message.save()
def create_AC_enabled_message(enabled): message = Message() message.type = "AC_enabled" message.value = enabled message.save()
def create_temperature_message(temperature): message = Message() message.type = "AC_temperature" message.value = temperature message.save()