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

HomeKit Bridge / AC / Change Temperature not working / Temperature out of range error #139048

Open
togume opened this issue Feb 22, 2025 · 2 comments

Comments

@togume
Copy link

togume commented Feb 22, 2025

The problem

Changing the temperature on Apple Home started not working and throwing an error in

What version of Home Assistant Core has the issue?

core-2025.2.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

HomeKit Bridge

Link to integration documentation on our website

No response

Diagnostics information

Error:

Logger: homeassistant.core
Source: core.py:2814
First occurred: 9:01:03 AM (2 occurrences)
Last logged: 9:01:20 AM

Error executing service: <ServiceCall climate.set_temperature (c:01JMPZCBJ7KGD79RBGFC56JM6Q): entity_id=['climate.kamis_bedroom_ac'], temperature=73.94>
Error executing service: <ServiceCall climate.set_temperature (c:01JMPZCW0P48648BBJY33W90TG): entity_id=['climate.kamis_bedroom_ac'], temperature=73.03999999999999>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2814, in _run_service_call_catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
        hass, entity, func, data, call.context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 955, in async_service_temperature_set
    await entity.async_set_temperature(**kwargs)
  File "/config/custom_components/smartthinq_sensors/climate.py", line 374, in async_set_temperature
    await self._device.set_target_temp(new_temp)
  File "/config/custom_components/smartthinq_sensors/wideq/devices/ac.py", line 739, in set_target_temp
    raise ValueError(f"Target temperature out of range: {temp}")
ValueError: Target temperature out of range: 73.94

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

@togume togume changed the title HomeKit Bridge, Change Temperature, HomeKit Bridge / AC / Change Temperature not working / Temperature out of range error Feb 22, 2025
@mib1185
Copy link
Contributor

mib1185 commented Feb 22, 2025

custom_components/smartthinq_sensors is a custom component, which is not maintained by the HA core project. Please report your issue to the maintainer or in the source repository of this custom component.
Thx 👍

@togume
Copy link
Author

togume commented Feb 22, 2025

Thanks, @mib1185! Will do.

In case it's helpful, the reason I reported it here vs. there is because I assumed that the issue was between HomeKit <> HA because it's weird that when I use Apple home to set to an integer temperature value (i.e. 74F), it's being passed to the custom component as 73.94F.

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

No branches or pull requests

2 participants