better_thermostat icon indicating copy to clipboard operation
better_thermostat copied to clipboard

Temperature randomly changed to 17 degree

Open 0verEngineer opened this issue 1 year ago • 9 comments

Prerequisites

  • [ ] Model name of your Devices
  • [ ] Output from Home Assistant Developer Tools state e.g.
  • [ ] Output from Home Assistant Device Diagnostic from BT
{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2023.12.3",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.4.14-200.fc38.x86_64",
    "run_as_root": true
  },
  "custom_components": {
    "better_thermostat": {
      "version": "1.4.0",
      "requirements": []
    },
    "hacs": {
      "version": "1.33.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "simpleicons": {
      "version": "v2.2.0",
      "requirements": [
        "simpleicons==7.14.0"
      ]
    },
    "dual_smart_thermostat": {
      "version": "0.5.5",
      "requirements": []
    },
    "truenas": {
      "version": "0.0.0",
      "requirements": []
    },
    "momentary": {
      "version": "0.6.3",
      "requirements": []
    },
    "xiaomi_cloud_map_extractor": {
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "eventsensor": {
      "version": "3.3.1",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "better_thermostat",
    "name": "Better Thermostat",
    "after_dependencies": [
      "climate"
    ],
    "codeowners": [
      "@kartoffeltoby"
    ],
    "config_flow": true,
    "dependencies": [
      "climate",
      "recorder"
    ],
    "documentation": "https://github.com/KartoffelToby/better_thermostat",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/KartoffelToby/better_thermostat/issues",
    "requirements": [],
    "version": "1.4.0",
    "is_built_in": false
  },
  "data": {
    "info": {
      "name": "Thermostat B\u00fcro",
      "temperature_sensor": "sensor.temp_office_temperature",
      "off_temperature": 20,
      "tolerance": 1.0,
      "humidity_sensor": "sensor.temp_office_humidity",
      "outdoor_sensor": null,
      "weather": null,
      "window_off_delay": 60,
      "window_sensors": "binary_sensor.window_sensor_03_office_contact",
      "cooler": null,
      "window_off_delay_after": 60,
      "model": "ME168"
    },
    "thermostat": {
      "climate.thermostat_01_office": {
        "name": "Thermostat_01_Office",
        "state": "heat",
        "attributes": {
          "hvac_modes": [
            "auto",
            "heat",
            "off"
          ],
          "min_temp": 5.0,
          "max_temp": 35.0,
          "target_temp_step": 1.0,
          "current_temperature": 16.0,
          "temperature": 35.0,
          "hvac_action": "heating",
          "friendly_name": "Thermostat_01_Office",
          "supported_features": 1
        },
        "bt_config": {
          "calibration": "target_temp_based",
          "calibration_mode": "heating_power_calibration",
          "protect_overheating": false,
          "no_off_system_mode": false,
          "heat_auto_swapped": false,
          "child_lock": false,
          "homaticip": false
        },
        "bt_adapter": "mqtt",
        "bt_integration": "mqtt",
        "model": "ME168"
      }
    },
    "external_temperature_sensor": {
      "entity_id": "sensor.temp_office_temperature",
      "state": "20.48",
      "attributes": {
        "state_class": "measurement",
        "unit_of_measurement": "\u00b0C",
        "device_class": "temperature",
        "friendly_name": "Temp_Office Temperature"
      },
      "last_changed": "2023-12-31T09:23:00.013255+00:00",
      "last_updated": "2023-12-31T09:23:00.013255+00:00",
      "context": {
        "id": "01HJZJY29DSS41726H6YE2RAC9",
        "parent_id": null,
        "user_id": null
      }
    },
    "window_sensor": {
      "entity_id": "binary_sensor.window_sensor_03_office_contact",
      "state": "off",
      "attributes": {
        "device_class": "door",
        "friendly_name": "Window_Sensor_03_Office Door"
      },
      "last_changed": "2023-12-30T23:37:31.327280+00:00",
      "last_updated": "2023-12-30T23:37:31.327280+00:00",
      "context": {
        "id": "01HJYHE0XZQRQWZ9W85CENBSQE",
        "parent_id": null,
        "user_id": null
      }
    }
  }
}

Description

I woke up today and the Living room and Office are not heated because the better thermostat somehow changed to 17 degree celsius.

Steps to Reproduce

Expected behavior:

Do not change the heating temp i set.

Actual behavior:

It changed the temp randomly without any reason.

Versions

Additional Information

0verEngineer avatar Dec 31 '23 10:12 0verEngineer

Same issue but changes to random values between 28°C and 35°C

mi-ty avatar Jan 01 '24 14:01 mi-ty

@KartoffelToby How can this happen? Why is the code even able to change the temperature? Only the user should be able to do this.

0verEngineer avatar Jan 01 '24 14:01 0verEngineer

May a duplicate of #1097 ?

matschbirne avatar Jan 01 '24 20:01 matschbirne

I too observe random temperature setting changes.

Avinunca avatar Jan 05 '24 18:01 Avinunca

FWIW, I also had issues with "malfunctions" of outdoor sensors until I decided to completely disable them.

No real issue since then. Perhaps this is worth to check?

raoulbhatia avatar Jan 05 '24 19:01 raoulbhatia

Same issue but changes to random values between 28°C and 35°C

Same for me, it’s been randomly picking very high temps, leaving the heating on all night and waking up to a very warm room.

bensuffolk avatar Jan 20 '24 11:01 bensuffolk

I appear to have fixed the issue by not adding anything to do with outdoor temperature on all of the TRVs.

image

Not sure if this will work for others.

Ciaccona avatar Jan 20 '24 13:01 Ciaccona

I think from reading other similar issues the problem I had was that my tmp sensor died and I swapped it out for another one. Any changes to config seem to cause multiple instances to run and when the temp gets updated on the TRV its being read in the other instance as the user changing it, which then updates the value.

This seems to be a good thing to do :

https://github.com/KartoffelToby/better_thermostat/issues/1097#issuecomment-1817858536

  • Remove all better thermostats and integrations

  • Install better thermostaat 1.2.1

  • Configure the thermostats

  • Never change any better thermostat setting after the initial configuration!!! That causes the same problem, even in 1.2.1.

  • update tot 1.4.0, now no problems at all for about 5 days.

  • I have not installed and used BT UI in this setup

But I have actually just gone straight for the 1.5 beta after deleting the old version.

bensuffolk avatar Jan 20 '24 14:01 bensuffolk

The issue you are describing should be fixed - or at least better - with 1.5 Beta 4. See #1231

I'm still observing my setup and there might still have been some unexpected temperature changes, but it's a lot better already.

schummar avatar Jan 21 '24 00:01 schummar