KartoffelToby / better_thermostat

This custom component for Home Assistant will add crucial features to your climate-controlling TRV (Thermostatic Radiator Valves) to save you the work of creating automations to make it smart. It combines a room-temperature sensor, window/door sensors, weather forecasts, or an ambient temperature probe to decide when it should call for heat and automatically calibrate your TRVs to fix the imprecise measurements taken in the radiator's vicinity.
https://better-thermostat.org
GNU Affero General Public License v3.0
822 stars 126 forks source link

HVAC not switching off on low temperatures #1238

Open Christian-Thiem opened 10 months ago

Christian-Thiem commented 10 months ago

Prerequisites

{
{
  "home_assistant": {
    "installation_type": "Home Assistant Supervised",
    "version": "2024.1.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "5.4.180",
    "supervisor": "2023.12.0",
    "host_os": "Debian GNU/Linux 11 (bullseye)",
    "docker_version": "24.0.5",
    "chassis": "",
    "run_as_root": true
  },
  "custom_components": {
    "growatt_server_api": {
      "version": "1.0.4",
      "requirements": [
        "growattServer==1.3.0"
      ]
    },
    "better_thermostat": {
      "version": "1.5.0-beta4",
      "requirements": []
    },
    "tuya_local": {
      "version": "2023.12.2",
      "requirements": [
        "tinytuya==1.13.1"
      ]
    },
    "hacs": {
      "version": "1.33.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "samsungtv_smart": {
      "version": "0.13.3",
      "requirements": [
        "websocket-client!=1.4.0,>=0.58.0",
        "wakeonlan>=2.0.0",
        "aiofiles>=0.8.0",
        "casttube>=0.2.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "fritz",
    "name": "AVM FRITZ!Box Tools",
    "codeowners": [
      "@mammuth",
      "@AaronDavidSchneider",
      "@chemelli74",
      "@mib1185"
    ],
    "config_flow": true,
    "dependencies": [
      "network"
    ],
    "documentation": "https://www.home-assistant.io/integrations/fritz",
    "iot_class": "local_polling",
    "loggers": [
      "fritzconnection"
    ],
    "requirements": [
      "fritzconnection[qr]==1.13.2",
      "xmltodict==0.13.0"
    ],
    "ssdp": [
      {
        "st": "urn:schemas-upnp-org:device:fritzbox:1"
      }
    ],
    "is_built_in": true
  },
  "data": {
    "entry": {
      "entry_id": "4ff21c51ad29d87765fd94e039552578",
      "version": 1,
      "minor_version": 1,
      "domain": "fritz",
      "title": "FRITZ!Box 6850 LTE",
      "data": {
        "host": "192.168.178.1",
        "password": "**REDACTED**",
        "port": 49000,
        "username": "**REDACTED**"
      },
      "options": {
        "consider_home": 180.0,
        "old_discovery": false
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "ssdp",
      "unique_id": "123402409-bccb-40e7-8e6c-485D35776349",
      "disabled_by": null
    },
    "device_info": {
      "model": "FRITZ!Box 6850 LTE",
      "unique_id": "485D35XX:XX9",
      "current_firmware": "7.57",
      "latest_firmware": "",
      "update_available": false,
      "connection_type": "WANIPConnection",
      "is_router": true,
      "mesh_role": "master",
      "last_update success": true,
      "last_exception": null,
      "discovered_services": [
        "any1",
        "WANCommonIFC1",
        "WANDSLLinkC1",
        "WANIPConn1",
        "WANIPv6Firewall1",
        "DeviceInfo1",
        "DeviceConfig1",
        "Layer3Forwarding1",
        "LANConfigSecurity1",
        "ManagementServer1",
        "Time1",
        "UserInterface1",
        "X_AVM-DE_Storage1",
        "X_AVM-DE_WebDAVClient1",
        "X_AVM-DE_UPnP1",
        "X_AVM-DE_Speedtest1",
        "X_AVM-DE_RemoteAccess1",
        "X_AVM-DE_MyFritz1",
        "X_VoIP1",
        "X_AVM-DE_OnTel1",
        "X_AVM-DE_Dect1",
        "X_AVM-DE_TAM1",
        "X_AVM-DE_AppSetup1",
        "X_AVM-DE_Homeauto1",
        "X_AVM-DE_Homeplug1",
        "X_AVM-DE_Filelinks1",
        "X_AVM-DE_Auth1",
        "X_AVM-DE_HostFilter1",
        "X_AVM-DE_USPController1",
        "WLANConfiguration1",
        "WLANConfiguration2",
        "WLANConfiguration3",
        "Hosts1",
        "LANEthernetInterfaceConfig1",
        "LANHostConfigManagement1",
        "WANCommonInterfaceConfig1",
        "WANDSLInterfaceConfig1",
        "X_AVM-DE_WANMobileConnection1",
        "WANDSLLinkConfig1",
        "WANEthernetLinkConfig1",
        "WANPPPConnection1",
        "WANIPConnection1"
      ],
      "client_devices": [
        {
          "connected_to": "fritz.box",
          "connection_type": "LAN",
          "hostname": "Khadas",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699226+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "shellyplus1-441793d5cbe4",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699267+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "ESP-15582B",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699287+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "ESP-15C709",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699307+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "ESP-F450F7",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699326+00:00",
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "SonosZP",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "shellyplus1-0cdc7ef6fba4",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699360+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "shellyplusi4-d4d4da7e3d20",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699379+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "shellyplus1-441793d65668",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699398+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "PC-E8-C7-CF-1F-BC-67",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699418+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "shellyplug-s-4022D88E2D49",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699437+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "shellyrgbw2-349454956F07",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699457+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "shellyrgbw2-349454956960",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699475+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "shellyrgbw2-349454956B84",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699494+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "shellyrgbw2-349454956D2F",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699514+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "ws-gateway",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699534+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "PC-D8-1F-12-FF-6B-E7",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699553+00:00",
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "iPhone-von-Christian",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "PC-5A-A3-A5-AB-65-91",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "MBPvonCstian600",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "linux",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699615+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "PC-DC-97-58-37-A1-7C",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699634+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "PC-DC-97-58-35-A3-F1",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699654+00:00",
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "PC-DC-97-58-30-28-0B",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699672+00:00",
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "solar-inverter",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "shellyflood-C8C9A315EC02",
          "is_connected": false,
          "last_activity": "2024-01-08T22:09:59.680487+00:00",
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "shellyplusht-08b61fcd029c",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "S22-Ultra-von-Michael",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "S22-Ultra-von-Michael",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "Z-Flip3-von-Gesche",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "Samsung",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "none",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "PC-E2-71-7E-D0-B7-98",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "Schlafzimmer-TV",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699816+00:00",
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "Galaxy-S20",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "PC-0E-0B-0B-05-57-E3",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "Gnaag-Mobil",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        },
        {
          "connected_to": "fritz.box",
          "connection_type": "WLAN",
          "hostname": "PC-192-168-178-63",
          "is_connected": true,
          "last_activity": "2024-01-08T22:31:59.699876+00:00",
          "wan_access": true
        },
        {
          "connected_to": "",
          "connection_type": "",
          "hostname": "PC-6A-49-1A-75-E8-0F",
          "is_connected": false,
          "last_activity": null,
          "wan_access": true
        }
      ],
      "wan_link_properties": {
        "NewWANAccessType": "X_AVM-DE_Mobile",
        "NewLayer1UpstreamMaxBitRate": 0,
        "NewLayer1DownstreamMaxBitRate": 0,
        "NewPhysicalLinkStatus": "Up",
        "NewX_AVM-DE_DownstreamCurrentUtilization": "656,2866,81,79,325,26,110,363,86,26,111,133,4427,5241,81,26,44039,138,928,196",
        "NewX_AVM-DE_UpstreamCurrentUtilization": "3196,845,101,147,1663,60,179,544,206,81,640,255,1970,1520,103,151,2656,543,819,188",
        "NewX_AVM-DE_DownstreamCurrentMaxSpeed": 44039,
        "NewX_AVM-DE_UpstreamCurrentMaxSpeed": 3196
      }
    }
  }
}
}

Description

When thermostat is set to lowest setting (10°C) and the set temperature is reached, the climate system is not turned off, but remains in heating mode, consequantially overheating the room.

Steps to Reproduce

  1. Add Melcloud based device to better thermostat
  2. Set device to lowest setting
  3. Wait until system starts to heat

Expected behavior:

After desired delta is reached, the device should be switched off

Actual behavior:

The device is never turned off, overheating the room

Versions

HA 2024.1.2 BT 1.5.0 beta4 but also tested with 1.4.0

Additional Information

BT

grafik

Melcloud

grafik
b1ggi commented 8 months ago

Its not a specific problem to Mitsubishi or MEL cloud i guess, my Panasonic HVAC also does this. I switched from Panasonic cloud to a local DIY esphome adapter, but the behaviour is still the same. HVAC have a tendency to ocasionally heat even below target temp. Maybe its fixed by setting the target temp really low, to stop it from heating under target temp.