Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External temperature from HomeAssistant not stable #150

Open
jonthekiller opened this issue Apr 30, 2024 · 1 comment
Open

External temperature from HomeAssistant not stable #150

jonthekiller opened this issue Apr 30, 2024 · 1 comment

Comments

@jonthekiller
Copy link

I have configured the project on an ESP-01 and I have an issue when using an external temperature sensor from HomeAssistant. The temperature is taken into account but the code seems to rollback to the internal temperature the majority of the time.

I took the temperature from a Philips Hue motion sensor, so I was thinking that the issue was maybe because the value was too old as not refreshed every tick. So I have configured a MQTT to update the value each 2 seconds but the issue stay.

Here is the history of the value retrieved by HomeAssistant from the ESP-01.
image

Here is the ESP configuration:

sensor:
  # HomeAssistant sensor to retrieve temperature
  - platform: homeassistant
    name: "Temperature Sensor From Home Assistant"
    entity_id: sensor.temperature_bureau_infra_3
    on_value:
      then:
        - lambda: 'id(hp_infra).set_remote_temperature(x);'

climate:
  - platform: mitsubishi_heatpump
    id: hp_infra
    name: "Clim Infra"
    baud_rate: 2400
    # Optional
    hardware_uart: UART0

    # Optional
    update_interval: 2s
    visual:
      min_temperature: 17
      max_temperature: 28
      temperature_step: 0.5

I can see inside the logs that the configuration seems correct:
image

@mrgadget
Copy link

mrgadget commented Jun 24, 2024

I had the same issue (I think) - mine kept reverting to the internal sensor. Resolved it with a heartbeat setting:

sensor:
  - platform: homeassistant
    name: "Temperature Sensor From Home Assistant"
    entity_id: sensor.house_lounge_weather_temperature
    on_value:
      then:
        - lambda: 'id(hp).set_remote_temperature(x);'
    filters:
      - heartbeat: 15s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants