ollo69 / ha-smartthinq-sensors

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

Refrigerator and Freezer temperatures not accurate #709

Closed ryansosin closed 8 months ago

ryansosin commented 8 months ago

Describe the bug The value for sensor.refrigerator_freezer_temp and sensor.refrigerator_fridge_temp appear to be the same as the target temperature. They never change, even if the door is open for long periods. My freezer failed and has essentially defrosted, but is still reading -1 degree. Could be an API issue and not a plugin issue, but I couldn't tell while reading the json.

    "domain": "smartthinq_sensors",
    "name": "SmartThinQ LGE Sensors",
    "codeowners": [
      "@ollo69"
    ],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/ollo69/ha-smartthinq-sensors",
    "integration_type": "hub",
    "iot_class": "cloud_polling",
    "issue_tracker": "https://github.com/ollo69/ha-smartthinq-sensors/issues",
    "requirements": [
      "pycountry<23.0.0,>=22.1.10",
      "xmltodict>=0.13.0",
      "charset_normalizer>=3.2.0"
    ],
    "version": "0.38.3",
    "is_built_in": false
  },
  "data": {
    "entry": {
      "entry_id": "b43b96cb376d3dd1a756614201352aee",
      "version": 1,
      "minor_version": 1,
      "domain": "smartthinq_sensors",
      "title": "LGE Devices",
      "data": {
        "region": "US",
        "language": "en-US",
        "token": "**REDACTED**",
        "use_api_v2": true,
        "oauth2_url": "https://us.lgeapi.com/"
      },
      "options": {},
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": null,
      "disabled_by": null
    },
    "lge_devices": {
      "REFRIGERATOR": {
        "REFRIGERATOR:5152982d-ac92-1242-a89a-44cb8b09eb61": {
          "device_info": {
            "appType": "NUTS",
            "modelAppType": "NUTS",
            "modelCountryCode": "WW",
            "countryCode": "US",
            "modelName": "2REF11EID___2",
            "deviceType": 101,
            "deviceCode": "KI0102",
            "alias": "Refrigerator",
            "deviceId": "5152982d-ac92-1242-a89a-44cb8b09eb61",
            "fwVer": "",
            "imageFileName": "home_appliances_img_fridge.png",
            "imageUrl": "https://objectcontent.lgthinq.com/af46bfb8-048b-4cb7-ab15-93ba970803f8?hdnts=exp=1761984025~hmac=871b0b59208ffaac3cd6e8f53ba1e394ef2a95211b2d3f52d5d8b8e413d5943e",
            "smallImageUrl": "https://objectcontent.lgthinq.com/de2f76ea-0b74-4ff9-9846-a9f56d6cf64d?hdnts=exp=1761984025~hmac=f6f7b3ef4136ccf6c4e65919c83ed78d0f2bfd42e2fd37a51745dd4eaf429d0e",
            "ssid": "**REDACTED**",
            "softapId": "",
            "softapPass": "",
            "macAddress": "",
            "networkType": "02",
            "timezoneCode": "America/New_York",
            "timezoneCodeAlias": "USA/New_York",
            "utcOffset": -5,
            "utcOffsetDisplay": "-05:00",
            "dstOffset": -4,
            "dstOffsetDisplay": "-04:00",
            "curOffset": -5,
            "curOffsetDisplay": "-05:00",
            "sdsGuide": "{\"deviceCode\":\"KI01\"}",
            "newRegYn": "N",
            "remoteControlType": "",
            "userNo": "**REDACTED**",
            "tftYn": "N",
            "modelJsonVer": 1.07,
            "modelJsonUri": "https://objectcontent.lgthinq.com/817ab31e-e432-4152-a845-13e879d50576?hdnts=exp=1763907473~hmac=90f006f8c2f2e9979f6d60fcf4e76b2fad5fb952f444f6e63e9a3c70640b36d1",
            "appModuleVer": 303.38,
            "appModuleUri": "https://objectcontent.lgthinq.com/cd27e1af-f163-49cf-8e85-e91623559e2e?hdnts=exp=1769212847~hmac=e2f377ea909d1ddcb774ff95e1b80768c10ee49767507d0757dc2dbfc87974fc",
            "appRestartYn": "Y",
            "appModuleSize": 8484461,
            "langPackProductTypeVer": 76.6,
            "langPackProductTypeUri": "https://objectcontent.lgthinq.com/b4f02f57-8a9f-43f6-999e-b997d8a95185?hdnts=exp=1770957516~hmac=c874b7a84c522e8ddc3c743ced45339976e45888f23adaf3e043946416f1d915",
            "deviceState": "E",
            "snapshot": {
              "mid": 231728439.0,
              "online": true,
              "static": {
                "deviceType": "101",
                "countryCode": "US"
              },
              "meta": {
                "allDeviceInfoUpdate": false,
                "messageId": "DXxIgpmiSDecBN4FwLtH4A"
              },
              "refState": {
                "displayLock": "IGNORE",
                "freezerTemp": 9.0,
                "sabbathMode": "OFF",
                "tempUnit": "FAHRENHEIT",
                "ecoFriendly": "IGNORE",
                "activeSaving": "IGNORE",
                "smartSavingRun": "STOP",
                "atLeastOneDoorOpen": "CLOSE",
                "fridgeTemp": 11.0,
                "expressMode": "OFF",
                "freshAirFilter": "AUTO",
                "monStatus": "NORMAL",
                "smartSavingMode": "SMARTGRID_DD_ON",
                "convertibleTemp": 255.0,
                "waterFilter": "0_MONTH"
              },
              "timestamp": 1708727032374.0
            },
            "online": true,
            "platformType": "thinq2",
            "area": 334505,
            "regDt": 20231129134343.0,
            "blackboxYn": "Y",
            "modelProtocol": "STANDARD",
            "order": 0,
            "drServiceYn": "N",
            "fwInfoList": [
              {
                "checksum": "0136B57C",
                "order": 2.0,
                "partNumber": "SAA40259801"
              },
              {
                "checksum": "000013C5",
                "order": 1.0,
                "partNumber": "SAA40500901"
              }
            ],
            "modemInfo": {
              "appVersion": "clip_hna_v1.9.198",
              "modelName": "2REF11EID___2",
              "modemType": "QCOM_QCA4010",
              "ruleEngine": "y"
            },
            "guideTypeYn": "Y",
            "guideType": "TYPE1",
            "regDtUtc": "20231129174343",
            "regIndex": 0,
            "groupableYn": "N",
            "controllableYn": "N",
            "combinedProductYn": "N",
            "masterYn": "Y",
            "pccModelYn": "Y",
            "sdsPid": {
              "sds4": "",
              "sds3": "",
              "sds2": "",
              "sds1": ""
            },
            "autoOrderYn": "N",
            "initDevice": false,
            "existsEntryPopup": "N",
            "tclcount": 0
          },
          "model_info": {
            "Info": {
              "productType": "REF",
              "country": "WW",
              "modelType": "FD",
              "model": "T20_18 Majesty US",
              "modelName": "2REF11EID___2",
              "networkType": "WIFI",
              "version": "1.07"
            },
            "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": [
                "GRM_ENM01_Main",
                "GCM_SDS01_SdsMain",
                "GRM_SET01_Main"
              ]
            },
            "Config": {
              "targetRoot": "refState",
              "ignoreValue": {
                "key": "IGNORE",
                "index": -99
              },
              "replaceStateValue": "@RE_STATE_REPLACE_FILTER_W",
              "wifiDiagnosis": "true",
              "hasInsideView": false,
              "fota": "true",
              "hasdoor": "Y",
              "blackBox": "Y",
              "hasExchangables": {
                "_comment": "\uad50\uccb4\ud615 \ud544\ud130\uac00 \uc788\ub294 \ubaa8\ub378\uc5d0 \ub300\ud574 hasExchangables \uac1d\uccb4\ub97c \ucd94\uac00\ud55c\ub2e4.",
                "value": true,
                "showAutoOrder": false
              },
              "supportFoodManager": false,
              "smartCare": {
                "useActiveCooling": false,
                "useSmartStorage": false,
                "useActiveSavings": false
              },
              "sabbathDefaultIndex": {
                "fridgeTemp": {
                  "tempUnit_C": 10,
                  "tempUnit_F": 10
                },
                "convertibleTemp": {
                  "tempUnit_C": 1,
                  "tempUnit_F": 1,
                  "exceptionIndex": 4
                },
                "freezerTemp": {
                  "tempUnit_C": 9,
                  "tempUnit_F": 8
                },
                "expressMode": 0
              },
              "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_REFRIGERATOR_W",
                  "controlTitle": "@RE_TERM_REFRIGERATOR_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": "freshAirFilter",
                  "imageUrl": "image/icon_fridge_fresh.png",
                  "monTitle": "@RE_NEW_TERM_FRESH_AIR_FILTER_W",
                  "controlTitle": "@RE_NEW_TERM_FRESH_AIR_FILTER_W",
                  "templateType": "typeButton.html",
                  "description": "@RE_FRESH_AIR_FILTER_DESC_S"
                },
                {
                  "feature": "expressMode",
                  "imageUrl": "image/ref_home_ic_iceplus.png",
                  "monTitle": "@RE_TERM_ICE_PLUS_W",
                  "controlTitle": "@RE_TERM_ICE_PLUS_W",
                  "templateType": "typeSwitch.html"
                },
                {
                  "feature": "waterFilter",
                  "imageUrl": "image/ref_home_ic_waterfilter.png",
                  "monTitle": "@RE_NEW_TERM_WATER_FILTER_W",
                  "controlTitle": "@RE_NEW_TERM_WATER_FILTER_W",
                  "templateType": "NONE"
                },
                {
                  "feature": "sabbathMode",
                  "imageUrl": "wpm/GRM/image/ref_home_ic_sabbath.png",
                  "monTitle": "@RE_TERM_SABBATH",
                  "controlTitle": "@RE_TERM_SABBATH",
                  "templateType": "typeSwitch.html"
                },
                {
                  "feature": "smartSavingMode",
                  "imageUrl": "image/ref_home_ic_smartsaving.png",
                  "monTitle": "@RE_TERM_SMARTSAVING_W",
                  "controlTitle": "@RE_TERM_SMARTSAVING_W",
                  "templateType": "typeSmartGrid.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": [
                    1,
                    2
                  ]
                },
                "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": [
                    0,
                    1
                  ]
                },
                "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": [
                    0,
                    3,
                    4
                  ]
                },
                "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,
                    3,
                    5,
                    7,
                    9,
                    10,
                    12,
                    14
                  ],
                  "controlIndex": [
                    1,
                    3,
                    5,
                    7,
                    9,
                    10,
                    12,
                    14
                  ]
                },
                "valueMapping": {
                  "1": {
                    "index": 1,
                    "label": "8",
                    "_comment": ""
                  },
                  "3": {
                    "index": 3,
                    "label": "7",
                    "_comment": ""
                  },
                  "5": {
                    "index": 5,
                    "label": "6",
                    "_comment": ""
                  },
                  "7": {
                    "index": 7,
                    "label": "5",
                    "_comment": ""
                  },
                  "9": {
                    "index": 9,
                    "label": "4",
                    "_comment": ""
                  },
                  "10": {
                    "index": 10,
                    "label": "3",
                    "_comment": ""
                  },
                  "12": {
                    "index": 12,
                    "label": "2",
                    "_comment": ""
                  },
                  "14": {
                    "index": 14,
                    "label": "1",
                    "_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,
                    5,
                    7,
                    9,
                    11,
                    12,
                    13
                  ],
                  "controlIndex": [
                    1,
                    2,
                    3,
                    5,
                    7,
                    9,
                    11,
                    12,
                    13
                  ]
                },
                "valueMapping": {
                  "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": ""
                  }
                }
              },
              "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
                  ],
                  "controlIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    13
                  ]
                },
                "valueMapping": {
                  "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": ""
                  }
                }
              },
              "convertibleTemp_C": {
                "dataType": "enum",
                "default": "1",
                "_comment": "Temperature Unit :\u2109 or \u2103 ",
                "visibleItem": {
                  "monitoringIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "1": {
                    "index": 1,
                    "label": "-",
                    "_comment": ""
                  },
                  "2": {
                    "index": 2,
                    "label": "-",
                    "_comment": ""
                  },
                  "3": {
                    "index": 3,
                    "label": "-",
                    "_comment": ""
                  },
                  "4": {
                    "index": 4,
                    "label": "-",
                    "_comment": ""
                  },
                  "5": {
                    "index": 5,
                    "label": "-",
                    "_comment": ""
                  },
                  "6": {
                    "index": 6,
                    "label": "-",
                    "_comment": ""
                  },
                  "7": {
                    "index": 7,
                    "label": "-",
                    "_comment": ""
                  },
                  "255": {
                    "index": 255,
                    "label": "IGNORE",
                    "_comment": ""
                  }
                }
              },
              "convertibleTemp_F": {
                "dataType": "enum",
                "default": "1",
                "_comment": "Temperature Unit :\u2109 or \u2103 ",
                "visibleItem": {
                  "monitoringIndex": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7
                  ],
                  "controlIndex": []
                },
                "valueMapping": {
                  "1": {
                    "index": 1,
                    "label": "-",
                    "_comment": ""
                  },
                  "2": {
                    "index": 2,
                    "label": "-",
                    "_comment": ""
                  },
                  "3": {
                    "index": 3,
                    "label": "-",
                    "_comment": ""
                  },
                  "4": {
                    "index": 4,
                    "label": "-",
                    "_comment": ""
                  },
                  "5": {
                    "index": 5,
                    "label": "-",
                    "_comment": ""
                  },
                  "6": {
                    "index": 6,
                    "label": "-",
                    "_comment": ""
                  },
                  "7": {
                    "index": 7,
                    "label": "-",
                    "_comment": ""
                  },
                  "255": {
                    "index": 255,
                    "label": "IGNORE",
                    "_comment": ""
                  }
                }
              },
              "smartSavingModeCustomOpt": {
                "dataType": "string"
              }
            },
            "ControlWifi": {
              "basicCtrl": {
                "command": "Set",
                "data": {
                  "refState": {
                    "fridgeTemp": "{{fridgeTemp}}",
                    "fridgeDoorOpen": "{{fridgeDoorOpen}}",
                    "freezerTemp": "{{freezerTemp}}",
                    "freezerDoorOpen": "{{freezerDoorOpen}}",
                    "convertibleTemp": "{{convertibleTemp}}",
                    "convertibleDoorOpen": "{{convertibleDoorOpen}}",
                    "didDoorOpen": "{{didDoorOpen}}",
                    "smartSavingMode": "{{smartSavingMode}}",
                    "smartSavingRun": "{{smartSavingRun}}",
                    "activeSaving": "{{activeSaving}}",
                    "ecoFriendly": "{{ecoFriendly}}",
                    "expressMode": "{{expressMode}}",
                    "tempUnit": "{{tempUnit}}",
                    "freshAirFilter": "{{freshAirFilter}}",
                    "waterFilter": "{{waterFilter}}",
                    "displayLock": "{{displayLock}}",
                    "sabbathMode": "{{sabbathMode}}",
                    "atLeastOneDoorOpen": "{{atLeastOneDoorOpen}}"
                  }
                }
              }
            },
            "Push": [
              {
                "category": "PUSH_REF_STATE",
                "label": "@RE_SETTING_PUSH_PRODUCT_STATE_W",
                "groupCode": "10101"
              }
            ],
            "SmartMode": {
              "MODE010": {
                "_comment": "MODE_HOME_OUT",
                "actionName": "@CP_TERM_DELAY_DEFROST_ON_W",
                "control": [
                  {
                    "ctrlKey": "basicCtrl",
                    "command": "Set",
                    "dataSetList": {
                      "refState": {
                        "smartSavingMode": "SMARTGRID_DD_ON"
                      }
                    }
                  }
                ]
              },
              "MODE030": {
                "_comment": "MODE_VACATION",
                "actionName": "@CP_TERM_DELAY_DEFROST_ON_W",
                "control": [
                  {
                    "ctrlKey": "basicCtrl",
                    "command": "Set",
                    "dataSetList": {
                      "refState": {
                        "smartSavingMode": "SMARTGRID_DD_ON"
                      }
                    }
                  }
                ]
              },
              "MODE040": {
                "_comment": "MODE_SLEEP",
                "actionName": "@CP_TERM_DELAY_DEFROST_ON_W",
                "control": [
                  {
                    "ctrlKey": "basicCtrl",
                    "command": "Set",
                    "dataSetList": {
                      "refState": {
                        "smartSavingMode": "SMARTGRID_DD_ON"
                      }
                    }
                  }
                ]
              }
            }
          },
          "device_status": {
            "displayLock": "IGNORE",
            "freezerTemp": 11.0,
            "sabbathMode": "OFF",
            "tempUnit": "FAHRENHEIT",
            "ecoFriendly": "IGNORE",
            "activeSaving": "IGNORE",
            "smartSavingRun": "STOP",
            "atLeastOneDoorOpen": "CLOSE",
            "fridgeTemp": 11.0,
            "expressMode": "OFF",
            "freshAirFilter": "AUTO",
            "monStatus": "NORMAL",
            "smartSavingMode": "SMARTGRID_DD_ON",
            "convertibleTemp": 255.0,
            "waterFilter": "0_MONTH"
          },
          "home_assistant": {
            "name": "Refrigerator",
            "name_by_user": null,
            "model": "2REF11EID___2-FD (REFRIGERATOR)",
            "manufacturer": "LG",
            "sw_version": "clip_hna_v1.9.198",
            "disabled": false,
            "disabled_by": null,
            "entities": {
              "sensor.refrigerator_fridge_temp": {
                "name": null,
                "original_name": "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": "\u00b0F",
                "state": {
                  "state": "36",
                  "attributes": {
                    "state_class": "measurement",
                    "unit_of_measurement": "\u00b0F",
                    "device_class": "temperature",
                    "friendly_name": "Refrigerator Fridge temp",
                    "supported_features": 0
                  },
                  "last_changed": "2024-02-23T23:26:43.239914+00:00",
                  "last_updated": "2024-02-23T23:26:43.239914+00:00"
                }
              },
              "sensor.refrigerator_freezer_temp": {
                "name": null,
                "original_name": "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": "\u00b0F",
                "state": {
                  "state": "-3",
                  "attributes": {
                    "state_class": "measurement",
                    "unit_of_measurement": "\u00b0F",
                    "device_class": "temperature",
                    "friendly_name": "Refrigerator Freezer temp",
                    "supported_features": 0
                  },
                  "last_changed": "2024-02-24T20:24:35.164312+00:00",
                  "last_updated": "2024-02-24T20:24:35.164312+00:00"
                }
              },
              "switch.refrigerator_express_mode": {
                "name": null,
                "original_name": "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": "2024-02-23T23:26:43.243599+00:00",
                  "last_updated": "2024-02-23T23:26:43.243599+00:00"
                }
              },
              "climate.refrigerator_fridge": {
                "name": null,
                "original_name": "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": 33,
                    "max_temp": 46,
                    "target_temp_step": 1,
                    "current_temperature": 36,
                    "temperature": 36,
                    "icon": "mdi:fridge-top",
                    "friendly_name": "Refrigerator Fridge",
                    "supported_features": 1
                  },
                  "last_changed": "2024-02-23T23:26:43.238717+00:00",
                  "last_updated": "2024-02-23T23:27:13.149413+00:00"
                }
              },
              "climate.refrigerator_freezer": {
                "name": null,
                "original_name": "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": -6,
                    "max_temp": 8,
                    "target_temp_step": 1,
                    "current_temperature": -3,
                    "temperature": -3,
                    "icon": "mdi:fridge-bottom",
                    "friendly_name": "Refrigerator Freezer",
                    "supported_features": 1
                  },
                  "last_changed": "2024-02-23T23:26:43.239264+00:00",
                  "last_updated": "2024-02-24T20:24:35.163945+00:00"
                }
              },
              "sensor.refrigerator": {
                "name": "Fridge",
                "original_name": null,
                "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": 36,
                    "freezer_temp": -3,
                    "temp_unit": "\u00b0F",
                    "door_open": "off",
                    "ice_plus": "off",
                    "smart_saving_mode": "Seasonal Energy Saver",
                    "fresh_air_filter": "Auto",
                    "water_filter_used_month": "0",
                    "icon": "mdi:fridge-outline",
                    "friendly_name": "Fridge",
                    "supported_features": 0
                  },
                  "last_changed": "2024-02-23T23:26:43.239696+00:00",
                  "last_updated": "2024-02-24T20:49:05.202382+00:00"
                }
              },
              "binary_sensor.refrigerator_door_open": {
                "name": "Fridge door",
                "original_name": "Door open",
                "disabled": false,
                "disabled_by": null,
                "entity_category": null,
                "device_class": null,
                "original_device_class": "door",
                "icon": null,
                "original_icon": null,
                "unit_of_measurement": null,
                "state": {
                  "state": "off",
                  "attributes": {
                    "device_class": "door",
                    "friendly_name": "Fridge door"
                  },
                  "last_changed": "2024-02-24T20:49:05.201564+00:00",
                  "last_updated": "2024-02-24T20:49:05.201564+00:00"
                }
              }
            }
          }
        }
      }
    }
  }
}

Expected behavior sensor.refrigerator_freezer_temp and sensor.refrigerator_fridge_temp should show actual temperature status of the fridge and freezer.

Screenshots If applicable, add screenshots to help explain your problem.

Environment details:

Additional context Add any other context about the problem here.

ollo69 commented 8 months ago

This is neither an API problem nor an integration problem, refrigerators simply do not provide the current temperature but only the set one, as you can see from this piece of your payload:

              "refState": {
                "displayLock": "IGNORE",
                "freezerTemp": 9.0,
                "sabbathMode": "OFF",
                "tempUnit": "FAHRENHEIT",
                "ecoFriendly": "IGNORE",
                "activeSaving": "IGNORE",
                "smartSavingRun": "STOP",
                "atLeastOneDoorOpen": "CLOSE",
                "fridgeTemp": 11.0,
                "expressMode": "OFF",
                "freshAirFilter": "AUTO",
                "monStatus": "NORMAL",
                "smartSavingMode": "SMARTGRID_DD_ON",
                "convertibleTemp": 255.0,
                "waterFilter": "0_MONTH"
              },

I suppose that LG app just provide exactly the same value provided by integration, right?

I close this, not an integration issue.