ssut / wideq-js

A Node.JS(TypeScript) port of wideq, a reverse-engineered client for the LG SmartThinQ API
https://ssut.github.io/wideq-js/
MIT License
17 stars 7 forks source link

Add smart grid features to SmartSavingMode refrigerator enum #14

Open ncovercash opened 4 years ago

ncovercash commented 4 years ago

My refrigerator (LFXS28566D) supports the three added options as part of it's "smart grid" functionality. None of the initial three options were in my fridge, so I figure they are mutually exclusive modes (although OFF and SMART_GRID_OFF are similar, as is CUSTOM and SMART_GRID_CUSTOM).

As best I can tell, SMART_GRID_OFF is for when the smart grid feature is disabled overall, SMART_GRID_DEMAND_RESPONSE is something certain power companies can do to tell the fridge not to defrost when the power grid is stressed (I cannot test as I am ineligible), and SMART_GRID_CUSTOM is used whenever the button on the fridge is pushed or "Seasonal Energy Saver" is enabled in the app.

For reference, here is an excerpt from my model's JSON dump:

{
...
"SmartSavingMode": {
    "type": "Enum",
    "default": "0",
    "option": {
        "0": "@CP_OFF_EN_W",
        "2": "@RE_TERM_DELAY_DEFROST_CAPABILITY_W",
        "3": "@RE_TERM_DEMAND_RESPONSE_FUNCTIONALITY_W"
    }
}
...
}
ncovercash commented 4 years ago

For the associated PR in the main wideq repo, see https://github.com/sampsyo/wideq/pull/95 .