Skip to content

Commit

Permalink
Merge pull request #72 from ahori/master
Browse files Browse the repository at this point in the history
How about to have status values of "empty" or "not empty" of the icem…
  • Loading branch information
nao-pon committed May 14, 2024
2 parents d4d0775 + 1182af6 commit 7d83203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pychonet/Refrigerator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from pychonet.EchonetInstance import EchonetInstance
from pychonet.lib.epc_functions import (
DICT_41_EMPTY_OR_NOT,
DICT_41_ENABLED_DISABLED,
DICT_41_ENABLED_DISABLED_TEMPDISABLED,
DICT_41_OPEN_CLOSED,
Expand Down Expand Up @@ -88,7 +89,7 @@ class Refrigerator(EchonetInstance):
], # "Quick refrigeration function setting",
0xA4: [_int, DICT_41_ENABLED_DISABLED_TEMPDISABLED], # "Icemaker setting",
0xA5: [_int, DICT_41_ENABLED_DISABLED], # "Icemaker operation status",
0xA6: [_int, DICT_41_ENABLED_DISABLED], # "Icemaker tank status",
0xA6: [_int, DICT_41_EMPTY_OR_NOT], # "Icemaker tank status",
0xA8: [
_int,
DICT_41_ON_OFF,
Expand Down
1 change: 1 addition & 0 deletions pychonet/lib/epc_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
DICT_41_AVAILABLE_NOT_AVAILABLE = {0x41: "available", 0x42: "not available"}
DICT_41_HEATING_NOT_HEATING = {0x41: "heating", 0x42: "not heating"}
DICT_41_PERMITTED_PROHIBITED = {0x41: "permitted", 0x42: "prohibited"}
DICT_41_EMPTY_OR_NOT = {0x41: "not empty", 0x42: "empty"}
DICT_30_TRUE_FALSE = {0x30: True, 0x31: False}
DICT_30_ON_OFF = {0x30: DATA_STATE_ON, 0x31: DATA_STATE_OFF}
DICT_30_OPEN_CLOSED = {0x30: DATA_STATE_OPEN, 0x31: DATA_STATE_CLOSE}
Expand Down

0 comments on commit 7d83203

Please sign in to comment.