ollo69 / ha-smartthinq-sensors

HomeAssistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface.
Apache License 2.0
1.12k stars 156 forks source link

Add shabbat mode switch #297

Closed yuvalabou closed 1 year ago

yuvalabou commented 2 years ago

Is your feature request related to a problem? Please describe. This feature is available on the device itself as a long press button. And is shown as state in the wideq api

Describe the solution you'd like Add it as a switch, or at least as a binary sensor to help remind if not set when needed

ollo69 commented 2 years ago

Please attach integration diagnostic file

yuvalabou commented 2 years ago
{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2022.3.1",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.9.9",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Asia/Jerusalem",
    "os_name": "Linux",
    "os_version": "5.10.60-rockchip64",
    "run_as_root": true
  },
  "custom_components": {
    "pyscript": {
      "version": "1.3.2",
      "requirements": [
        "croniter==1.0.2",
        "watchdog==2.0.3"
      ]
    },
    "feedparser": {
      "version": "0.1.7",
      "requirements": [
        "feedparser==6.0.8"
      ]
    },
    "breaking_changes": {
      "version": "21.12.0",
      "requirements": [
        "pyhaversion>=21.3.0",
        "integrationhelper>=0.2.2",
        "awesomeversion"
      ]
    },
    "smartthinq_sensors": {
      "version": "0.12.10",
      "requirements": [
        "pycountry>=20.7.3"
      ]
    },
    "watchman": {
      "version": "0.5.0",
      "requirements": [
        "prettytable==3.0.0"
      ]
    },
    "hacs": {
      "version": "1.23.0",
      "requirements": [
        "aiogithubapi>=21.11.0"
      ]
    },
    "xiaomi_cloud_map_extractor": {
      "version": "v2.1.5",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "thermal_comfort": {
      "version": "1.4.3",
      "requirements": []
    },
    "home_connect_alt": {
      "version": "0.4.4",
      "requirements": [
        "home-connect-async==0.6.3"
      ]
    }
  },
  "integration_manifest": {
    "domain": "smartthinq_sensors",
    "name": "SmartThinQ LGE Sensors",
    "documentation": "https://github.com/ollo69/ha-smartthinq-sensors",
    "issue_tracker": "https://github.com/ollo69/ha-smartthinq-sensors/issues",
    "dependencies": [],
    "codeowners": [
      "@ollo69"
    ],
    "requirements": [
      "pycountry>=20.7.3"
    ],
    "config_flow": true,
    "iot_class": "cloud_polling",
    "version": "0.12.10",
    "is_built_in": false
  },
  "data": {
    "entry": {
      "entry_id": "10ecadd412d86d751f6dda021f186338",
      "version": 1,
      "domain": "smartthinq_sensors",
      "title": "LGE Devices",
      "data": {
        "token": "**REDACTED**",
        "region": "IL",
        "language": "he-IL",
        "use_api_v2": true,
        "use_tls_v1": false,
        "exclude_dh": false,
        "outh_url": "https://gb.lgeapi.com/"
      },
      "options": {},
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": null,
      "disabled_by": null
    },
    "lge_devices": {
      "REFRIGERATOR": {
        "REFRIGERATOR:67cb65ae-d02a-1763-9677-24e853a6d675": {
          "device_info": {
            "appType": "NUTS",
            "modelCountryCode": "WW",
            "countryCode": "IL",
            "modelName": "2REF12EBN_NQ2",
            "deviceType": 101,
            "deviceCode": "KI0102",
            "alias": "Refrigerator",
            "deviceId": "67cb65ae-d02a-1763-9677-24e853a6d675",
            "fwVer": "",
            "imageFileName": "home_appliances_img_fridge.png",
            "imageUrl": "https://objectcontent.lgthinq.com/af46bfb8-048b-4cb7-ab15-93ba970803f8?hdnts=exp=1701594047~hmac=2f74488124185c1c701da7f28f5bc8521e0d20a6200c31ef90779583fcb72c8a",
            "smallImageUrl": "https://objectcontent.lgthinq.com/de2f76ea-0b74-4ff9-9846-a9f56d6cf64d?hdnts=exp=1701594084~hmac=76d47fbfcf1bb025958d1335eca53558d5c74d7cd11405bd5aac4b0ca8703954",
            "ssid": "**REDACTED**",
            "softapId": "",
            "softapPass": "",
            "macAddress": "**REDACTED**",
            "networkType": "02",
            "timezoneCode": "Asia/Jerusalem",
            "timezoneCodeAlias": "Asia/Jerusalem",
            "utcOffset": 2,
            "utcOffsetDisplay": "+02:00",
            "dstOffset": 3,
            "dstOffsetDisplay": "+03:00",
            "curOffset": 2,
            "curOffsetDisplay": "+02:00",
            "sdsGuide": "{\"deviceCode\":\"KI01\"}",
            "newRegYn": "N",
            "remoteControlType": "",
            "userNo": "**REDACTED**",
            "tftYn": "N",
            "modelJsonVer": 1.0,
            "modelJsonUri": "https://objectcontent.lgthinq.com/def82401-ff5e-4716-a2a8-29d687b319a9?hdnts=exp=1668153644~hmac=6c175e4586ca6fadb41abc348d66a29b32680f80efacc5436808f336ce1290f6",
            "appModuleVer": 222.09,
            "appModuleUri": "https://objectcontent.lgthinq.com/75e0414f-1836-44bf-9ed6-604145b93216?hdnts=exp=1695798043~hmac=089fc7af6da6bdce777888ac6bea73d3457c45a060e08950c1d8cbac1ed6e37b",
            "appRestartYn": "Y",
            "appModuleSize": 1563441,
            "deviceState": "D",
            "snapshot": {
              "mid": 4977126.0,
              "online": false,
              "static": {
                "deviceType": "101",
                "countryCode": "IL"
              },
              "meta": {
                "allDeviceInfoUpdate": true,
                "messageId": "1cvx6QAhSSCGqNAzu2WKOw"
              },
              "refState": {
                "displayLock": "LOCK",
                "freezerTemp": 3.0,
                "tempUnit": "CELSIUS",
                "activeSaving": "OFF",
                "smartSavingRun": "STOP",
                "productLoadBalance": 1.0,
                "atLeastOneDoorOpen": "CLOSE",
                "foodPoisonIndex": 41.0,
                "fridgeTemp": 3.0,
                "expressMode": "OFF",
                "freshAirFilter": "AUTO",
                "monStatus": "NORMAL",
                "smartSavingMode": "OFF",
                "waterFilter": "0_MONTH"
              },
              "timestamp": 1646251014842.0
            },
            "online": false,
            "platformType": "thinq2",
            "area": 213225,
            "regDt": 20220211100546.0,
            "blackboxYn": "Y",
            "order": 0,
            "drServiceYn": "N",
            "fwInfoList": [
              {
                "checksum": "0000BDD3",
                "order": 2.0,
                "partNumber": "SAA40679201"
              },
              {
                "checksum": "0000A48B",
                "order": 1.0,
                "partNumber": "SAA41205601"
              }
            ],
            "modemInfo": {
              "appVersion": "clip_hna_v1.9.116",
              "modelName": "2REF12EBN_NQ2",
              "modemType": "QCOM_QCA4010",
              "ruleEngine": "y"
            },
            "guideTypeYn": "Y",
            "guideType": "TYPE1",
            "regDtUtc": "20220211070546",
            "regIndex": 0,
            "groupableYn": "N",
            "controllableYn": "N",
            "combinedProductYn": "N",
            "masterYn": "Y",
            "pccModelYn": "N",
            "autoOrderYn": "N",
            "initDevice": false,
            "existsEntryPopup": "N",
            "tclcount": 0
          },
          "model_info": {
            "Info": {
              "productType": "REF",
              "country": "WW",
              "modelType": "FD",
              "model": "T20_18Next8 1DID Wi-Fi",
              "modelName": "2REF12EBN_NQ2",
              "networkType": "WIFI",
              "version": "1.00"
            },
            "Module": {
              "WPM": {
                "GRM_CEN01_Main": "201",
                "GRM_CEN02_UserSaving": "202",
                "GRM_CEN04_RefViewer": "202",
                "GRM_CEN05_ImgViewer": "202",
                "GRM_FOD01_Main": "201",
                "GRM_FOD02_EditFoodInfo": "201",
                "GRM_FOD03_EditFoodIcon": "201",
                "GRM_FOD04_AddFood": "201",
                "GRM_ENM01_Main": "201",
                "GRM_ENM02_DoorOpenings": "201",
                "GRM_ENM03_PowerConsume": "201",
                "GRM_ENM04_SetSaving": "202",
                "GRM_ECO01_Main": "201",
                "GRM_ECO02_Active": "201",
                "GRM_ECO03_SavingRatio": "201",
                "GRM_ECO04_SavingDetail": "201",
                "GRM_ECO05_ViewTip": "201",
                "GCM_SDS01_SdsMain": "201",
                "GRM_FOT01_Main": "201",
                "GRM_SET01_Main": "201",
                "GRM_SET02_PushList": "201",
                "GRM_SMC01_Main": "201",
                "GRM_SMC02_SafeStore": "201",
                "GRM_SMC03_ActiveCooling": "201",
                "GRM_PHO01_Main": "201",
                "GRM_SHO01_Main": "201"
              },
              "Menu": [
                "GCM_SDS01_SdsMain",
                "GRM_SET01_Main"
              ]
            },
            "Config": {
              "targetRoot": "refState",
              "ignoreValue": {
                "key": "IGNORE",
                "index": -1
              },
              "replaceStateValue": "@RE_STATE_REPLACE_FILTER_W",
              "wifiDiagnosis": "true",
              "hasInsideView": false,
              "fota": "true",
              "hasdoor": "Y",
              "blackBox": "Y",
              "supportFoodManager": true,
              "smartCare": {
                "useActiveCooling": false,
                "useSmartStorage": false,
                "useActiveSavings": false
              },
              "sideMenuInfo": {
                "GRM_FOD01_Main": {
                  "title": "@RE_FOOD_MANAGEMENT_W",
                  "image": "image/ref_sidemenu_btn_foodmanager.png"
                },
                "GRM_ENM01_Main": {
                  "title": "@RE_ENM_TITLE_W",
                  "image": "image/ref_sidemenu_btn_energymonitoring.png"
                },
                "GCM_SDS01_SdsMain": {
                  "title": "@CP_NAME_SMART_DIAGNOSIS_W",
                  "image": "image/ref_sidemenu_btn_smart_diagnosis.png"
                },
                "GRM_SET01_Main": {
                  "title": "@CP_SETTING_W",
                  "image": "image/ref_sidemenu_btn_setting.png"
                },
                "GRM_ECO01_Main": {
                  "title": "@RE_ENM_TITLE_W",
                  "image": "wpm/GRM/image/ref_sidemenu_btn_energymonitoring.png"
                },
                "GRM_SMC01_Main": {
                  "title": "@RE_SMARTCARE_RUN_W",
                  "image": "wpm/GRM/image/ref_sidemenu_btn_smartcare.png"
                },
                "GRM_PHO01_Main": {
                  "title": "@RE_PHOTO_SEND_W",
                  "image": "wpm/GRM/image/ref_sidemenu_btn_photosend.png"
                },
                "GRM_SHO01_Main": {
                  "title": "@RE_GROCERY_LIST_W",
                  "image": "wpm/GRM/image/ref_sidemenu_btn_shopping.png"
                }
              },
              "visibleItems": [
                {
                  "feature": "fridgeTemp",
                  "imageUrl": "",
                  "monTitle": "@RE_TERM_FRIDGE_W",
                  "controlTitle": "@RE_TERM_FRIDGE_W",
                  "controlDisabledOption": [
                    {
                      "optionValue": "@CP_OFF_EN_W",
                      "replaceOptionValue": "IGNORE"
                    }
                  ]
                },
                {
                  "feature": "freezerTemp",
                  "imageUrl": "",
                  "monTitle": "@RE_TERM_FREEZER_W",
                  "controlTitle": "@RE_TERM_FREEZER_W",
                  "controlDisabledOption": [
                    {
                      "optionValue": "@CP_OFF_EN_W",
                      "replaceOptionValue": "IGNORE"
                    }
                  ]
                },
                {
                  "feature": "expressMode",
                  "imageUrl": "image/icon_fridge_ice.png",
                  "monTitle": "@RE_TERM_EXPRESS_FREEZE_W",
                  "controlTitle": "@RE_TERM_EXPRESS_FREEZE_W",
                  "templateType": "typeSwitch.html"
                }
              ]
            },
            "MonitoringValue": {
              "monStatus": {
                "_comment": "Monitoring Status _ Not Shown Item",
                "dataType": "enum",
                "default": "NORMAL",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1,
                    2
                  ],
                  "controlIndex": [
                    0,
                    1,
                    2
                  ]
                },
                "valueMapping": {
                  "FAIL": {
                    "index": 0,
                    "label": "",
                    "_comment": "Fail"
                  },
                  "NOT_WORK": {
                    "index": 1,
                    "label": "",
                    "_comment": "Not working"
                  },
                  "NORMAL": {
                    "index": 2,
                    "label": "",
                    "_comment": "Normal"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "fridgeTemp": {
                "_comment": "Fridge Target Temperature",
                "dataType": "range",
                "default": 1,
                "visibleItem": {
                  "monitoringIndex": [],
                  "controlIndex": []
                },
                "targetKey": {
                  "tempUnit": {
                    "CELSIUS": "fridgeTemp_C",
                    "FAHRENHEIT": "fridgeTemp_F"
                  }
                },
                "valueMapping": {
                  "min": 0,
                  "max": 255,
                  "step": 1
                }
              },
              "freezerTemp": {
                "_comment": "Freezer Target Temperature",
                "dataType": "range",
                "default": 1,
                "visibleItem": {
                  "monitoringIndex": [],
                  "controlIndex": []
                },
                "targetKey": {
                  "tempUnit": {
                    "CELSIUS": "freezerTemp_C",
                    "FAHRENHEIT": "freezerTemp_F"
                  }
                },
                "valueMapping": {
                  "min": 0,
                  "max": 255,
                  "step": 1
                }
              },
              "convertibleTemp": {
                "_comment": "Convertible Target Temperature",
                "dataType": "range",
                "default": 1,
                "visibleItem": {
                  "monitoringIndex": [],
                  "controlIndex": []
                },
                "targetKey": {
                  "tempUnit": {
                    "CELSIUS": "convertibleTemp_C",
                    "FAHRENHEIT": "convertibleTemp_F"
                  }
                },
                "valueMapping": {
                  "min": 0,
                  "max": 255,
                  "step": 1
                }
              },
              "expressMode": {
                "_comment": "Express Fridge, ExpressFreeze, Rapid Freeze",
                "dataType": "enum",
                "default": "OFF",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1
                  ],
                  "controlIndex": [
                    0,
                    1
                  ]
                },
                "valueMapping": {
                  "OFF": {
                    "index": 0,
                    "label": "@CP_OFF_EN_W",
                    "_comment": "Express Mode OFF"
                  },
                  "EXPRESS_ON": {
                    "index": 1,
                    "label": "@CP_ON_EN_W",
                    "_comment": "Express Fridge or Express Freeze ON"
                  },
                  "RAPID_ON": {
                    "index": 2,
                    "label": "@RE_MAIN_SPEED_FREEZE_TERM_W",
                    "_comment": "Rapid Freeze ON"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "tempUnit": {
                "_comment": "Temperature Unit",
                "dataType": "enum",
                "default": "FAHRENHEIT",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "CELSIUS": {
                    "index": 0,
                    "label": "\u02daC",
                    "_comment": "Celsius Unit"
                  },
                  "FAHRENHEIT": {
                    "index": 1,
                    "label": "\u02daF",
                    "_comment": "Fahrenheit Unit"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "freshAirFilter": {
                "_comment": "Fresh Air Filter Status",
                "dataType": "enum",
                "default": "OFF",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1,
                    2,
                    3
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "OFF": {
                    "index": 0,
                    "label": "@CP_TERM_OFF_KO_W",
                    "_comment": "Fresh Air Filter OFF"
                  },
                  "AUTO": {
                    "index": 1,
                    "label": "@RE_STATE_FRESH_AIR_FILTER_MODE_AUTO_W",
                    "_comment": "Fresh Air Filter AUTO"
                  },
                  "POWER": {
                    "index": 2,
                    "label": "@RE_STATE_FRESH_AIR_FILTER_MODE_POWER_W",
                    "_comment": "Fresh Air Filter POWER"
                  },
                  "REPLACE": {
                    "index": 3,
                    "label": "@RE_STATE_REPLACE_FILTER_W",
                    "_comment": "Fresh Air Filter REPLACE"
                  },
                  "SMART_STORAGE_POWER": {
                    "index": 4,
                    "label": "",
                    "_comment": "Fresh Air Filter Smart Storage POWER"
                  },
                  "SMART_STORAGE_OFF": {
                    "index": 5,
                    "label": "",
                    "_comment": "Fresh Air Filter Smart Storage OFF"
                  },
                  "SMART_STORAGE_ON": {
                    "index": 6,
                    "label": "",
                    "_comment": "Fresh Air Filter Smart Storage ON"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "waterFilter": {
                "_comment": "Water Filter Status",
                "dataType": "enum",
                "default": "0_MONTH",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    6
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "0_MONTH": {
                    "index": 0,
                    "label": "@RE_TERM_OK_W",
                    "_comment": "Water Filter 0 Month Passed"
                  },
                  "1_MONTH": {
                    "index": 1,
                    "label": "@RE_TERM_OK_W",
                    "_comment": "Water Filter 1 Month Passed"
                  },
                  "2_MONTH": {
                    "index": 2,
                    "label": "@RE_TERM_OK_W",
                    "_comment": "Water Filter 2 Month Passed"
                  },
                  "3_MONTH": {
                    "index": 3,
                    "label": "@RE_TERM_OK_W",
                    "_comment": "Water Filter 3 Month Passed"
                  },
                  "4_MONTH": {
                    "index": 4,
                    "label": "@RE_TERM_OK_W",
                    "_comment": "Water Filter 4 Month Passed"
                  },
                  "5_MONTH": {
                    "index": 5,
                    "label": "@RE_TERM_OK_W",
                    "_comment": "Water Filter 5 Month Passed"
                  },
                  "6_MONTH": {
                    "index": 6,
                    "label": "@RE_STATE_REPLACE_FILTER_W",
                    "_comment": "Water Filter 6 Month Passed"
                  },
                  "7_MONTH": {
                    "index": 7,
                    "label": "@RE_STATE_REPLACE_FILTER_W",
                    "_comment": "Water Filter 7 Month Passed"
                  },
                  "8_MONTH": {
                    "index": 8,
                    "label": "@RE_STATE_REPLACE_FILTER_W",
                    "_comment": "Water Filter 8 Month Passed"
                  },
                  "9_MONTH": {
                    "index": 9,
                    "label": "@RE_STATE_REPLACE_FILTER_W",
                    "_comment": "Water Filter 9 Month Passed"
                  },
                  "10_MONTH": {
                    "index": 10,
                    "label": "@RE_STATE_REPLACE_FILTER_W",
                    "_comment": "Water Filter 10 Month Passed"
                  },
                  "11_MONTH": {
                    "index": 11,
                    "label": "@RE_STATE_REPLACE_FILTER_W",
                    "_comment": "Water Filter 11 Month Passed"
                  },
                  "12_MONTH": {
                    "index": 12,
                    "label": "@RE_STATE_REPLACE_FILTER_W",
                    "_comment": "Water Filter 12 Month Passed"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "displayLock": {
                "_comment": "Display Lock Status(unlock, lock)",
                "dataType": "enum",
                "default": "UNLOCK",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "UNLOCK": {
                    "index": 0,
                    "label": "",
                    "_comment": "Display Panel Unlocked"
                  },
                  "LOCK": {
                    "index": 1,
                    "label": "",
                    "_comment": "Display Panel Locked"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "sabbathMode": {
                "_comment": "Sabbath Mode State (ON, OFF)",
                "dataType": "enum",
                "default": "OFF",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "OFF": {
                    "index": 0,
                    "label": "@CP_OFF_EN_W",
                    "_comment": "Sabbath Mode OFF"
                  },
                  "ON": {
                    "index": 1,
                    "label": "@CP_ON_EN_W",
                    "_comment": "Sabbath Mode ON"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "atLeastOneDoorOpen": {
                "_comment": "Door Open State(Close or Open) global",
                "dataType": "enum",
                "default": "CLOSE",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "CLOSE": {
                    "index": 0,
                    "label": "",
                    "_comment": "Door Closed"
                  },
                  "OPEN": {
                    "index": 1,
                    "label": "",
                    "_comment": "Door Open"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "smartSavingMode": {
                "_comment": "Smart Saving Setting Status",
                "dataType": "enum",
                "default": "OFF",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    3,
                    4
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "OFF": {
                    "index": 0,
                    "label": "@CP_OFF_EN_W",
                    "_comment": "Smart Saving OFF"
                  },
                  "NIGHT_ON": {
                    "index": 1,
                    "label": "@RE_SMARTSAVING_MODE_NIGHT_W",
                    "_comment": "Smart Saving Night Mode ON"
                  },
                  "CUSTOM_ON": {
                    "index": 2,
                    "label": "@RE_SMARTSAVING_MODE_CUSTOM_W",
                    "_comment": "Smart Saving Custom Mode ON"
                  },
                  "SMARTGRID_DR_ON": {
                    "index": 3,
                    "label": "@RE_TERM_DEMAND_RESPONSE_FUNCTIONALITY_W",
                    "_comment": "Smart Grid Demand Response Mode ON"
                  },
                  "SMARTGRID_DD_ON": {
                    "index": 4,
                    "label": "@RE_TERM_DELAY_DEFROST_CAPABILITY_W",
                    "_comment": "Smart Grid Delay Defrost Mode ON"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "smartSavingRun": {
                "_comment": "Smart Saving Running Status",
                "dataType": "enum",
                "default": "STOP",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "STOP": {
                    "index": 0,
                    "label": "@CP_OFF_EN_W",
                    "_comment": "Smart Saving Stop (Smart Grid)"
                  },
                  "RUN": {
                    "index": 1,
                    "label": "@CP_ON_EN_W",
                    "_comment": "Smart Saving Running (Smart Grid)"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "activeSaving": {
                "_comment": "Active Saving Status",
                "dataType": "enum",
                "default": "OFF",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "OFF": {
                    "index": 0,
                    "label": "@CP_OFF_EN_W",
                    "_comment": "Active Saving OFF"
                  },
                  "ON": {
                    "index": 1,
                    "label": "@CP_ON_EN_W",
                    "_comment": "Active Saving ON"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "ecoFriendly": {
                "_comment": "Eco Friendly Status",
                "dataType": "enum",
                "default": "OFF",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "OFF": {
                    "index": 0,
                    "label": "@CP_OFF_EN_W",
                    "_comment": "Eco Friendly OFF"
                  },
                  "ON": {
                    "index": 1,
                    "label": "@CP_ON_EN_W",
                    "_comment": "Eco Friendly ON"
                  },
                  "IGNORE": {
                    "index": 255,
                    "label": "",
                    "_comment": "Please ignore me"
                  }
                }
              },
              "fridgeTemp_C": {
                "dataType": "enum",
                "default": "1",
                "_comment": "Temperature Unit :\u2109 or \u2103 ",
                "visibleItem": {
                  "monitoringIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7
                  ],
                  "controlIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7
                  ]
                },
                "valueMapping": {
                  "1": {
                    "index": 1,
                    "label": "6",
                    "_comment": ""
                  },
                  "2": {
                    "index": 2,
                    "label": "5",
                    "_comment": ""
                  },
                  "3": {
                    "index": 3,
                    "label": "4",
                    "_comment": ""
                  },
                  "4": {
                    "index": 4,
                    "label": "3",
                    "_comment": ""
                  },
                  "5": {
                    "index": 5,
                    "label": "2",
                    "_comment": ""
                  },
                  "6": {
                    "index": 6,
                    "label": "1",
                    "_comment": ""
                  },
                  "7": {
                    "index": 7,
                    "label": "0",
                    "_comment": ""
                  },
                  "255": {
                    "index": 255,
                    "label": "IGNORE",
                    "_comment": ""
                  }
                }
              },
              "fridgeTemp_F": {
                "dataType": "enum",
                "default": "1",
                "_comment": "Temperature Unit :\u2109 or \u2103 ",
                "visibleItem": {
                  "monitoringIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    13,
                    14
                  ],
                  "controlIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    13,
                    14
                  ]
                },
                "valueMapping": {
                  "1": {
                    "index": 1,
                    "label": "46",
                    "_comment": ""
                  },
                  "2": {
                    "index": 2,
                    "label": "45",
                    "_comment": ""
                  },
                  "3": {
                    "index": 3,
                    "label": "44",
                    "_comment": ""
                  },
                  "4": {
                    "index": 4,
                    "label": "43",
                    "_comment": ""
                  },
                  "5": {
                    "index": 5,
                    "label": "42",
                    "_comment": ""
                  },
                  "6": {
                    "index": 6,
                    "label": "41",
                    "_comment": ""
                  },
                  "7": {
                    "index": 7,
                    "label": "40",
                    "_comment": ""
                  },
                  "8": {
                    "index": 8,
                    "label": "39",
                    "_comment": ""
                  },
                  "9": {
                    "index": 9,
                    "label": "38",
                    "_comment": ""
                  },
                  "10": {
                    "index": 10,
                    "label": "37",
                    "_comment": ""
                  },
                  "11": {
                    "index": 11,
                    "label": "36",
                    "_comment": ""
                  },
                  "12": {
                    "index": 12,
                    "label": "35",
                    "_comment": ""
                  },
                  "13": {
                    "index": 13,
                    "label": "34",
                    "_comment": ""
                  },
                  "14": {
                    "index": 14,
                    "label": "33",
                    "_comment": ""
                  },
                  "255": {
                    "index": 255,
                    "label": "IGNORE",
                    "_comment": ""
                  }
                }
              },
              "freezerTemp_C": {
                "dataType": "enum",
                "default": "1",
                "_comment": "Temperature Unit :\u2109 or \u2103 ",
                "visibleItem": {
                  "monitoringIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9
                  ],
                  "controlIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9
                  ]
                },
                "valueMapping": {
                  "1": {
                    "index": 1,
                    "label": "-16",
                    "_comment": ""
                  },
                  "2": {
                    "index": 2,
                    "label": "-17",
                    "_comment": ""
                  },
                  "3": {
                    "index": 3,
                    "label": "-18",
                    "_comment": ""
                  },
                  "4": {
                    "index": 4,
                    "label": "-19",
                    "_comment": ""
                  },
                  "5": {
                    "index": 5,
                    "label": "-20",
                    "_comment": ""
                  },
                  "6": {
                    "index": 6,
                    "label": "-21",
                    "_comment": ""
                  },
                  "7": {
                    "index": 7,
                    "label": "-22",
                    "_comment": ""
                  },
                  "8": {
                    "index": 8,
                    "label": "-23",
                    "_comment": ""
                  },
                  "9": {
                    "index": 9,
                    "label": "-24",
                    "_comment": ""
                  },
                  "255": {
                    "index": 255,
                    "label": "IGNORE",
                    "_comment": ""
                  }
                }
              },
              "freezerTemp_F": {
                "dataType": "enum",
                "default": "1",
                "_comment": "Temperature Unit :\u2109 or \u2103 ",
                "visibleItem": {
                  "monitoringIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    13,
                    14,
                    15
                  ],
                  "controlIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    13,
                    14,
                    15
                  ]
                },
                "valueMapping": {
                  "1": {
                    "index": 1,
                    "label": "7",
                    "_comment": ""
                  },
                  "2": {
                    "index": 2,
                    "label": "6",
                    "_comment": ""
                  },
                  "3": {
                    "index": 3,
                    "label": "5",
                    "_comment": ""
                  },
                  "4": {
                    "index": 4,
                    "label": "4",
                    "_comment": ""
                  },
                  "5": {
                    "index": 5,
                    "label": "3",
                    "_comment": ""
                  },
                  "6": {
                    "index": 6,
                    "label": "2",
                    "_comment": ""
                  },
                  "7": {
                    "index": 7,
                    "label": "1",
                    "_comment": ""
                  },
                  "8": {
                    "index": 8,
                    "label": "0",
                    "_comment": ""
                  },
                  "9": {
                    "index": 9,
                    "label": "-1",
                    "_comment": ""
                  },
                  "10": {
                    "index": 10,
                    "label": "-2",
                    "_comment": ""
                  },
                  "11": {
                    "index": 11,
                    "label": "-3",
                    "_comment": ""
                  },
                  "12": {
                    "index": 12,
                    "label": "-7",
                    "_comment": ""
                  },
                  "13": {
                    "index": 13,
                    "label": "-12",
                    "_comment": ""
                  },
                  "14": {
                    "index": 14,
                    "label": "-15",
                    "_comment": ""
                  },
                  "15": {
                    "index": 15,
                    "label": "-17",
                    "_comment": ""
                  },
                  "255": {
                    "index": 255,
                    "label": "IGNORE",
                    "_comment": ""
                  }
                }
              },
              "convertibleTemp_C": {
                "dataType": "enum",
                "default": "1",
                "_comment": "Temperature Unit :\u2109 or \u2103 ",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1,
                    2,
                    3,
                    5,
                    7,
                    9,
                    11,
                    12,
                    13
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "0": {
                    "index": 0,
                    "label": "-13",
                    "_comment": ""
                  },
                  "1": {
                    "index": 1,
                    "label": "-13",
                    "_comment": ""
                  },
                  "2": {
                    "index": 2,
                    "label": "-14",
                    "_comment": ""
                  },
                  "3": {
                    "index": 3,
                    "label": "-15",
                    "_comment": ""
                  },
                  "5": {
                    "index": 5,
                    "label": "-16",
                    "_comment": ""
                  },
                  "7": {
                    "index": 7,
                    "label": "-17",
                    "_comment": ""
                  },
                  "9": {
                    "index": 9,
                    "label": "-18",
                    "_comment": ""
                  },
                  "11": {
                    "index": 11,
                    "label": "-19",
                    "_comment": ""
                  },
                  "12": {
                    "index": 12,
                    "label": "-20",
                    "_comment": ""
                  },
                  "13": {
                    "index": 13,
                    "label": "-21",
                    "_comment": ""
                  },
                  "255": {
                    "index": 255,
                    "label": "IGNORE",
                    "_comment": ""
                  }
                }
              },
              "convertibleTemp_F": {
                "dataType": "enum",
                "default": "1",
                "_comment": "Temperature Unit :\u2109 or \u2103 ",
                "visibleItem": {
                  "monitoringIndex": [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    13
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "0": {
                    "index": 0,
                    "label": "8",
                    "_comment": ""
                  },
                  "1": {
                    "index": 1,
                    "label": "8",
                    "_comment": ""
                  },
                  "2": {
                    "index": 2,
                    "label": "6",
                    "_comment": ""
                  },
                  "3": {
                    "index": 3,
                    "label": "5",
                    "_comment": ""
                  },
                  "4": {
                    "index": 4,
                    "label": "4",
                    "_comment": ""
                  },
                  "5": {
                    "index": 5,
                    "label": "3",
                    "_comment": ""
                  },
                  "6": {
                    "index": 6,
                    "label": "2",
                    "_comment": ""
                  },
                  "7": {
                    "index": 7,
                    "label": "1",
                    "_comment": ""
                  },
                  "8": {
                    "index": 8,
                    "label": "0",
                    "_comment": ""
                  },
                  "9": {
                    "index": 9,
                    "label": "-1",
                    "_comment": ""
                  },
                  "10": {
                    "index": 10,
                    "label": "-2",
                    "_comment": ""
                  },
                  "11": {
                    "index": 11,
                    "label": "-3",
                    "_comment": ""
                  },
                  "12": {
                    "index": 12,
                    "label": "-4",
                    "_comment": ""
                  },
                  "13": {
                    "index": 13,
                    "label": "-6",
                    "_comment": ""
                  },
                  "255": {
                    "index": 255,
                    "label": "IGNORE",
                    "_comment": ""
                  }
                }
              },
              "smartSavingModeCustomOpt": {
                "dataType": "string"
              }
            },
            "ControlWifi": {
              "basicCtrl": {
                "command": "Set",
                "data": {
                  "refState": {
                    "fridgeTemp": "IGNORE",
                    "fridgeDoorOpen": "IGNORE",
                    "freezerTemp": "IGNORE",
                    "freezerDoorOpen": "IGNORE",
                    "convertibleTemp": "IGNORE",
                    "convertibleDoorOpen": "IGNORE",
                    "didDoorOpen": "IGNORE",
                    "smartSavingMode": "IGNORE",
                    "smartSavingRun": "IGNORE",
                    "activeSaving": "IGNORE",
                    "ecoFriendly": "IGNORE",
                    "expressMode": "EXPRESS_ON",
                    "tempUnit": "IGNORE",
                    "freshAirFilter": "IGNORE",
                    "waterFilter": "IGNORE",
                    "displayLock": "IGNORE",
                    "sabbathMode": "IGNORE",
                    "atLeastOneDoorOpen": "IGNORE"
                  }
                }
              }
            },
            "Push": [
              {
                "category": "PUSH_REF_FOOD_EXPIRED",
                "label": "@RE_SETTING_PUSH_STORED_PERIOD_W",
                "groupCode": "10102"
              },
              {
                "category": "PUSH_REF_STATE",
                "label": "@RE_SETTING_PUSH_PRODUCT_STATE_W",
                "groupCode": "10101"
              }
            ],
            "SmartMode": {}
          },
          "device_status": {
            "displayLock": "LOCK",
            "freezerTemp": 3.0,
            "tempUnit": "CELSIUS",
            "activeSaving": "OFF",
            "smartSavingRun": "STOP",
            "productLoadBalance": 1.0,
            "atLeastOneDoorOpen": "CLOSE",
            "foodPoisonIndex": 41.0,
            "fridgeTemp": 3.0,
            "expressMode": "OFF",
            "freshAirFilter": "AUTO",
            "monStatus": "NORMAL",
            "smartSavingMode": "OFF",
            "waterFilter": "0_MONTH"
          },
          "home_assistant": {
            "name": "Refrigerator",
            "name_by_user": null,
            "model": "2REF12EBN_NQ2-FD (REFRIGERATOR)",
            "manufacturer": "LG",
            "sw_version": "clip_hna_v1.9.116",
            "disabled": false,
            "disabled_by": null,
            "entities": {
              "sensor.refrigerator": {
                "name": null,
                "original_name": "Refrigerator",
                "disabled": false,
                "disabled_by": null,
                "entity_category": null,
                "device_class": null,
                "original_device_class": null,
                "icon": null,
                "original_icon": "mdi:fridge-outline",
                "unit_of_measurement": null,
                "state": {
                  "state": "on",
                  "attributes": {
                    "fridge_temp": "4",
                    "freezer_temp": "-18",
                    "temp_unit": "\u00b0C",
                    "door_open": "off",
                    "express_freeze": "off",
                    "icon": "mdi:fridge-outline",
                    "friendly_name": "Refrigerator"
                  },
                  "last_changed": "2022-03-04T14:53:01.791314+00:00",
                  "last_updated": "2022-03-04T14:53:01.791314+00:00"
                }
              },
              "sensor.refrigerator_fridge_temp": {
                "name": null,
                "original_name": "Refrigerator Fridge temp",
                "disabled": false,
                "disabled_by": null,
                "entity_category": null,
                "device_class": null,
                "original_device_class": "temperature",
                "icon": null,
                "original_icon": null,
                "unit_of_measurement": "\u00b0C",
                "state": {
                  "state": "4",
                  "attributes": {
                    "state_class": "measurement",
                    "unit_of_measurement": "\u00b0C",
                    "device_class": "temperature",
                    "friendly_name": "Refrigerator Fridge temp"
                  },
                  "last_changed": "2022-03-04T14:53:01.792956+00:00",
                  "last_updated": "2022-03-04T14:53:01.792956+00:00"
                }
              },
              "sensor.refrigerator_freezer_temp": {
                "name": null,
                "original_name": "Refrigerator Freezer temp",
                "disabled": false,
                "disabled_by": null,
                "entity_category": null,
                "device_class": null,
                "original_device_class": "temperature",
                "icon": null,
                "original_icon": null,
                "unit_of_measurement": "\u00b0C",
                "state": {
                  "state": "-18",
                  "attributes": {
                    "state_class": "measurement",
                    "unit_of_measurement": "\u00b0C",
                    "device_class": "temperature",
                    "friendly_name": "Refrigerator Freezer temp"
                  },
                  "last_changed": "2022-03-04T14:53:01.795630+00:00",
                  "last_updated": "2022-03-04T14:53:01.795630+00:00"
                }
              },
              "binary_sensor.refrigerator_door_open": {
                "name": null,
                "original_name": "Refrigerator Door open",
                "disabled": false,
                "disabled_by": null,
                "entity_category": null,
                "device_class": null,
                "original_device_class": "opening",
                "icon": null,
                "original_icon": null,
                "unit_of_measurement": null,
                "state": {
                  "state": "off",
                  "attributes": {
                    "device_class": "opening",
                    "friendly_name": "Refrigerator Door open"
                  },
                  "last_changed": "2022-03-04T14:52:58.661640+00:00",
                  "last_updated": "2022-03-04T14:52:58.661640+00:00"
                }
              },
              "climate.refrigerator_fridge": {
                "name": null,
                "original_name": "Refrigerator Fridge",
                "disabled": false,
                "disabled_by": null,
                "entity_category": null,
                "device_class": null,
                "original_device_class": null,
                "icon": null,
                "original_icon": "mdi:fridge-top",
                "unit_of_measurement": null,
                "state": {
                  "state": "auto",
                  "attributes": {
                    "hvac_modes": [
                      "auto"
                    ],
                    "min_temp": 0,
                    "max_temp": 6,
                    "target_temp_step": 1,
                    "current_temperature": 4,
                    "temperature": 4,
                    "icon": "mdi:fridge-top",
                    "friendly_name": "Refrigerator Fridge",
                    "supported_features": 1
                  },
                  "last_changed": "2022-03-04T14:52:59.140517+00:00",
                  "last_updated": "2022-03-04T14:53:28.623395+00:00"
                }
              },
              "climate.refrigerator_freezer": {
                "name": null,
                "original_name": "Refrigerator Freezer",
                "disabled": false,
                "disabled_by": null,
                "entity_category": null,
                "device_class": null,
                "original_device_class": null,
                "icon": null,
                "original_icon": "mdi:fridge-bottom",
                "unit_of_measurement": null,
                "state": {
                  "state": "auto",
                  "attributes": {
                    "hvac_modes": [
                      "auto"
                    ],
                    "min_temp": -24,
                    "max_temp": -16,
                    "target_temp_step": 1,
                    "current_temperature": -18,
                    "temperature": -18,
                    "icon": "mdi:fridge-bottom",
                    "friendly_name": "Refrigerator Freezer",
                    "supported_features": 1
                  },
                  "last_changed": "2022-03-04T14:52:59.143070+00:00",
                  "last_updated": "2022-03-04T14:53:28.624510+00:00"
                }
              },
              "switch.refrigerator_express_mode": {
                "name": null,
                "original_name": "Refrigerator Express mode",
                "disabled": false,
                "disabled_by": null,
                "entity_category": null,
                "device_class": null,
                "original_device_class": "switch",
                "icon": null,
                "original_icon": "mdi:snowflake",
                "unit_of_measurement": null,
                "state": {
                  "state": "off",
                  "attributes": {
                    "device_class": "switch",
                    "icon": "mdi:snowflake",
                    "friendly_name": "Refrigerator Express mode"
                  },
                  "last_changed": "2022-03-04T14:52:58.502324+00:00",
                  "last_updated": "2022-03-04T14:52:58.502324+00:00"
                }
              }
            }
          }
        }
      }
    }
  }
}
ollo69 commented 2 years ago

In refState section I don't see any reference about sabbathMode, so there are no way to add switch or sensor to provide this status. Is this information available in LG app?

yuvalabou commented 2 years ago

Nope unfortunately, however I can see it in other places in the log, why is that? Also thank you for the quick response

ollo69 commented 2 years ago

Reference that you see in diagnostic are related to the format of this value, because probably some models provide this information. But the monitorable data are the ones inside refData section, and your model is not providing this information.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.