-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
758 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Maximum number of characters on a single line. | ||
max-line-length=900 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/python | ||
|
||
""" | ||
Demo Mitsubishi HVAC | ||
""" | ||
import time | ||
import datetime | ||
from hvac_ircontrol.ir_sender import LogLevel | ||
from hvac_ircontrol.mitsubishi import Mitsubishi, ClimateMode, FanMode, VanneVerticalMode, VanneHorizontalMode, ISeeMode, AreaMode, PowerfulMode | ||
|
||
if __name__ == "__main__": | ||
while True: | ||
print("=======================================================") | ||
print("Power OFF") | ||
HVAC = Mitsubishi(23, LogLevel.ErrorsOnly) | ||
HVAC.power_off() | ||
print("Wait 2 secs ...") | ||
time.sleep(2) | ||
print("It's gonna get cold here !") | ||
HVAC.send_command( | ||
climate_mode=ClimateMode.Cold, | ||
temperature=18, | ||
fan_mode=FanMode.Auto, | ||
vanne_vertical_mode=VanneVerticalMode.Auto, | ||
vanne_horizontal_mode=VanneHorizontalMode.NotSet, | ||
isee_mode=ISeeMode.ISeeOn, | ||
area_mode=AreaMode.Full, | ||
powerful=PowerfulMode.PowerfulOn | ||
) | ||
print("=======================================================") | ||
print("Go dormant for 30 secs ...") | ||
time.sleep(25) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
from .version import __version__ | ||
|
||
from .ir_sender import * | ||
from .mitsubishi import * |
Oops, something went wrong.