-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from nao-pon/BathroomDryer
Add Bathroom dryer
- Loading branch information
Showing
4 changed files
with
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
from pychonet.EchonetInstance import EchonetInstance | ||
from pychonet.lib.epc_functions import ( | ||
DICT_41_AUTO_8_LEVELS, | ||
DICT_41_AUTO_STANDARD, | ||
DICT_41_ON_OFF, | ||
DICT_41_YES_NO, | ||
_int, | ||
_signed_int, | ||
) | ||
|
||
|
||
class BathroomDryer(EchonetInstance): | ||
EOJGC = 0x02 | ||
EOJCC = 0x73 | ||
|
||
EPC_FUNCTIONS = { | ||
0xB0: [ | ||
_int, | ||
{ | ||
0x10: "ventilation", | ||
0x20: "prewarming", | ||
0x30: "heating", | ||
0x40: "drying", | ||
0x50: "circulation", | ||
0x60: "mistSauna", | ||
0x61: "waterMist", | ||
0x00: "stop", | ||
}, | ||
], # "Operation setting", | ||
0xB1: [ | ||
_int, | ||
{**DICT_41_AUTO_STANDARD, **DICT_41_AUTO_8_LEVELS}, | ||
], # "Ventilation operation setting", | ||
0xB2: [ | ||
_int, | ||
{**DICT_41_AUTO_STANDARD, **DICT_41_AUTO_8_LEVELS}, | ||
], # "Bathroom pre-warmer operation setting", | ||
0xB3: [ | ||
_int, | ||
{**DICT_41_AUTO_STANDARD, **DICT_41_AUTO_8_LEVELS}, | ||
], # "Bathroom heater operation setting", | ||
0xB4: [ | ||
_int, | ||
{**DICT_41_AUTO_STANDARD, **DICT_41_AUTO_8_LEVELS}, | ||
], # "Bathroom dryer operation setting", | ||
0xB5: [ | ||
_int, | ||
{**DICT_41_AUTO_STANDARD, **DICT_41_AUTO_8_LEVELS}, | ||
], # "Cool air circulator operation setting", | ||
0xB6: [ | ||
_int, | ||
{**DICT_41_AUTO_STANDARD, **DICT_41_AUTO_8_LEVELS}, | ||
], # "Mist sauna operation setting", | ||
0xB7: [ | ||
_int, | ||
{**DICT_41_AUTO_STANDARD, **DICT_41_AUTO_8_LEVELS}, | ||
], # "Water mist operation setting", | ||
0xBA: _int, # "Measured relative bathroom humidity", | ||
0xBB: _signed_int, # "Measured bathroom temperature", | ||
0xC2: [_int, DICT_41_AUTO_8_LEVELS], # "Ventilation air flow rate setting", | ||
0xCF: [_int, DICT_41_ON_OFF], # "Filter cleaning reminder sign setting", | ||
0xE0: [_int, DICT_41_ON_OFF], # "Human body detection status", | ||
# 0x90: "“ON timer-based reservation” setting 1", | ||
# 0xE1: "“ON timer-based reservation” setting 2", | ||
# 0x91: "ON timer setting (time)", | ||
# 0x92: "ON timer setting (relative time)", | ||
# 0x94: "“OFF timer-based reservation” setting", | ||
# 0x95: "OFF timer setting (time)", | ||
# 0x96: "OFF timer setting (relative time)", | ||
} | ||
|
||
def __init__(self, host, api_connector=None, instance=0x1): | ||
self._eojgc = self.EOJGC | ||
self._eojcc = self.EOJCC | ||
super().__init__(host, self._eojgc, self._eojcc, instance, api_connector) |
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