Skip to content

Missing external temp display on the card #172

Closed
@klu16

Description

@klu16

Hi syssi,

before the update to 2024.8.1.1, there was a possibility to display a room temp from an external sensor.

I mean this part of the config:

climate:

  • platform: xiaomi_miio_airconditioningcompanion
    name: Aqara Air Conditioning Companion
    host: 192.168.1.xx
    token:
    target_sensor: sensor.aqara_temperature_humidity_sensor_temperature
    scan_interval: 2

Now I see a following errors in the log:

Logger: homeassistant.helpers.event
Source: helpers/event.py:327
First occurred: 03:27:08 (4 occurrences)
Last logged: 03:33:28

Error while dispatching event for sensor.aqara_temperature_humidity_sensor_temperature to <Job track state_changed event ['sensor.aqara_temperature_humidity_sensor_temperature'] HassJobType.Coroutinefunction <bound method XiaomiAirConditioningCompanion._async_sensor_changed of <entity climate.aqara_air_conditioning_companion=off>>>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 327, in _async_dispatch_entity_id_event
    hass.async_run_hass_job(job, event)
  File "/usr/src/homeassistant/homeassistant/core.py", line 950, in async_run_hass_job
    return self._async_add_hass_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 758, in _async_add_hass_job
    hassjob.target(*args), name=hassjob.name, loop=self.loop
    ^^^^^^^^^^^^^^^^^^^^^
TypeError: XiaomiAirConditioningCompanion._async_sensor_changed() missing 2 required positional arguments: 'old_state' and 'new_state'

Could you please fix this? Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions