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
752 stars 122 forks source link

Original TRV changing from on to off every external temperature or humidity sensor change #687

Closed Doxlike closed 1 year ago

Doxlike commented 1 year ago

Prerequisites

Output from Home Assistant Developer Tools state e.g.: hvac_modes:

Output from Home Assistant Device Diagnostic from BT:

{
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.11.4",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "5.15.74",
    "supervisor": "2022.11.2",
    "host_os": "Home Assistant OS 9.3",
    "docker_version": "20.10.18",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "ytube_music_player": {
      "version": "20220205.01",
      "requirements": [
        "ytmusicapi==0.24.0",
        "pytube==10.5.1",
        "integrationhelper==0.2.2"
      ]
    },
    "better_thermostat": {
      "version": "1.0.0-beta46",
      "requirements": []
    },
    "xiaomi_miio_fan": {
      "version": "2022.8.0.0",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.12"
      ]
    },
    "tapo_control": {
      "version": "4.1.3",
      "requirements": [
        "pytapo==2.5",
        "onvif-zeep-async==1.2.0"
      ]
    },
    "hacs": {
      "version": "1.28.3",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "frigate": {
      "version": "3.0.0",
      "requirements": []
    },
    "waste_collection_schedule": {
      "version": "1.27.0",
      "requirements": [
        "icalendar",
        "recurring_ical_events",
        "icalevents",
        "bs4"
      ]
    },
    "climate_group": {
      "version": "0.4.2",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "better_thermostat",
    "name": "Better Thermostat",
    "documentation": "https://github.com/KartoffelToby/better_thermostat",
    "issue_tracker": "https://github.com/KartoffelToby/better_thermostat/issues",
    "iot_class": "local_push",
    "version": "1.0.0-beta46",
    "config_flow": true,
    "dependencies": [
      "climate",
      "recorder"
    ],
    "after_dependencies": [
      "climate"
    ],
    "codeowners": [
      "@kartoffeltoby",
      "@RubenKelevra"
    ],
    "requirements": [],
    "is_built_in": false
  },
  "data": {
    "info": {
      "name": "1OG Arbeitszimmer ",
      "temperature_sensor": "sensor.t_and_h_xiaomi_1og_arbeitszimmer_temperature",
      "window_off_delay": 0,
      "off_temperature": 16,
      "outdoor_sensor": "sensor.temp_outside_temperature",
      "window_sensors": null,
      "humidity_sensor": null,
      "weather": null,
      "model": "generic"
    },
    "thermostat": {
      "climate.neq1397617": {
        "name": "Arbeitszimmer Heizung",
        "state": "heat",
        "attributes": {
          "hvac_modes": [
            "auto",
            "heat",
            "off"
          ],
          "min_temp": 4.5,
          "max_temp": 30.5,
          "target_temp_step": 0.5,
          "preset_modes": [
            "boost"
          ],
          "current_temperature": 20.2,
          "temperature": 15.5,
          "preset_mode": "none",
          "id": "NEQ1397617",
          "interface": "wireless",
          "battery": "High",
          "valve": 0,
          "mode": "Manual",
          "friendly_name": "Arbeitszimmer Heizung",
          "supported_features": 17
        },
        "bt_config": {
          "calibration": "target_temp_based",
          "heat_auto_swapped": true,
          "fix_calibration": false,
          "calibration_round": true,
          "child_lock": true,
          "homaticip": true
        },
        "bt_adapter": "homematic",
        "bt_integration": "homematic",
        "model": "generic"
      }
    },
    "external_temperature_sensor": {
      "entity_id": "sensor.t_and_h_xiaomi_1og_arbeitszimmer_temperature",
      "state": "19.67",
      "attributes": {
        "state_class": "measurement",
        "unit_of_measurement": "\u00b0C",
        "device_class": "temperature",
        "friendly_name": "T&H Xiaomi 1OG Arbeitszimmer Temperature"
      },
      "last_changed": "2022-11-25T07:26:42.809368+00:00",
      "last_updated": "2022-11-25T07:26:42.809368+00:00",
      "context": {
        "id": "01GJPTWXKSSAQ5AF2XHDBY2PWP",
        "parent_id": null,
        "user_id": null
      }
    },
    "window_sensor": "-"
  }
}
}

Description

Steps to Reproduce

Expected behavior:

change of the original trv should be not so frequent

Actual behavior:

the trv is schanging every minute or second, everytime the external temperature is changing the original trv goes from off to on and vice versa

image

Versions

HA 2022.11.4 BT 46

m-novitsky commented 1 year ago

Me too. TS0601 (_TZE200_ckud7u2l). Three TVRs in one instance of BT.

xtronets commented 1 year ago

same 5x TS0601 _TZE200_cwnjrr72 and 3x SEA802

xtronets commented 1 year ago

ok im complete remove Better thermostat from HA and add fresh install without external temperature sensor and works at now

Doxlike commented 1 year ago

@xtronets but without external temperature it makes no sense or? Or do you mean the outside temperature?

xtronets commented 1 year ago

sorry OUTSIDE

Doxlike commented 1 year ago

@xtronets so without the outside temperature your trv´s are not flapping? My devices are reacting to the external humidity and temperature sensor and not because of the outside sensor (it looks like that)

xtronets commented 1 year ago

my problem will be all devices set automatically to off mode, fresh reconfigure helps , there is problem with summer mode

Doxlike commented 1 year ago

Okay will test it. Maybe it helps, do I need to remove just the single better thermostat entity or do I need to uninstall the whole integration?

Doxlike commented 1 year ago

Hey it worked for me now ;) so since 37 minutes no change of the HVAC mode ;)