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

Missing external temp display on the card #172

Open
klu16 opened this issue Aug 24, 2024 · 5 comments
Open

Missing external temp display on the card #172

klu16 opened this issue Aug 24, 2024 · 5 comments

Comments

@klu16
Copy link

klu16 commented Aug 24, 2024

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 :)

@klu16
Copy link
Author

klu16 commented Sep 9, 2024

Any update on this, please? :)

@levanLuongnt
Copy link

Me too!

@zsqduke
Copy link

zsqduke commented Sep 21, 2024

Need this!

@sample
Copy link

sample commented Oct 13, 2024

Same problem

@I-G-1-1
Copy link

I-G-1-1 commented Nov 15, 2024

Same problem here.
The integration doesn't recognize anymore the "target_sensor" so the entity has "current_temperature: null" as attribute.

hvac_modes: heat, cool, auto, dry, fan_only, off
min_temp: 18
max_temp: 30
target_temp_step: 1
fan_modes: low, medium, high, auto
swing_modes: on, off, unknown2, unknown7, chigoon, chigooff
current_temperature: null #<-- here is the issue
temperature: 20
fan_mode: high
swing_mode: on
ac_model: XXXRedactedXXX
load_power: 2
hvac_mode: off
led: false
friendly_name: Aqara Air Conditioning Companion
supported_features: 425

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

5 participants