-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional features #7
Comments
Hi! I added these features and also #9 in my python implementation: https://gist.github.com/mildsunrise/a53bd50d529d92631fdaaed2368f903f |
@mildsunrise can you give a usage example of your python script? |
Just call import daikin
frames = daikin.encode_remote_control_transmission(
power=True, mode=daikin.Mode.HEAT,
temperature=21*2, fan_speed=daikin.FanSpeed.AUTO,
) |
ah ok. but how do you actually send that to an IR interface on the raspi for example? |
you'll want to pass your frames to daikin.frames_to_signal(frames) and this will return an IR signal, such as: [450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 25000, 3500, 1700, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 1286, 450, 420, 450, 1286, 450, 1286, 450, 1286, 450, 1286, 450, 1286, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 1286, 450, 1286, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 1286, 450, 35000, 3500, 1700, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 1286, 450, 420, 450, 1286, 450, 1286, 450, 1286, 450, 1286, 450, 1286, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 1286, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 1286, 450, 1286, 450, 420, 450, 1286, 450, 35000, 3500, 1700, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 1286, 450, 420, 450, 1286, 450, 1286, 450, 1286, 450, 1286, 450, 1286, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 1286, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 420, 450, 1286, 450, 1286, 450, 420, 450, 1286, 450, 420, 450, 420, 450, 1286, 450, 420, 450] which you would then emit through your blaster. I have never used a raspi as an IR blaster, so I don't know what are the steps to emit a signal with that. |
Added Horizontal/Vertical swing, Silent outdoor unit feature (denoted as Silent), Eco Sensing feature.
The second frame seems to be related to timer feature, which mine has a byte ticking to the minute, but I am not yet sure.
The text was updated successfully, but these errors were encountered: