core icon indicating copy to clipboard operation
core copied to clipboard

TypeError: core:TargetTemperatureState is not a float for DomesticHotWaterProduction (io:AtlanticDomesticHotWaterProductionV2_CETHI_V4_IOComponent) in Overkiz

Open JCSSCJ opened this issue 1 year ago • 25 comments

The problem

Hello,

I have a Water Heater Atlantic Calypso, controlled by Atlantic Cozytouch.

Hardware : io:AtlanticDomesticHotWaterProductionV2_CETHI_V4_IOComponent

I can only read values from sensors, I can't configure something (mode, temperature, away mode, boost..).

I always have the same error :

Échec de l'exécution de l'action number/set_value. core:TargetTemperatureState is not a float

https://github.com/home-assistant/core/blob/dev/homeassistant/components/overkiz/water_heater/domestic_hot_water_production.py#L207

I found this topic with de same hardware : https://github.com/iMicknl/ha-tahoma/issues/341

Maybe a solution ?

Thank's in advance !

What version of Home Assistant Core has the issue?

core-2025.3.3

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

Overkiz

Link to integration documentation on our website

https://www.home-assistant.io/integrations/overkiz/

Diagnostics information

Image

Image

Image

Diag : overkiz-01JPQZ21SZPN0PA55H7C5NBYV9-DHWP Actuator-4a05a30a6aca2811b106f941884b8e9e.json

Example YAML snippet


Anything in the logs that might be useful for us?

Enregistreur: homeassistant
Source: components/overkiz/water_heater/domestic_hot_water_production.py:207
S'est produit pour la première fois: 10:52:02 (366 occurrences)
Dernier enregistrement: 13:52:30

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 268, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 479, in _async_refresh
    self.async_update_listeners()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 178, in async_update_listeners
    update_callback()
    ~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 559, in _handle_coordinator_update
    self.async_write_ha_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1023, in async_write_ha_state
    self._async_write_ha_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1148, in _async_write_ha_state
    self.__async_calculate_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1087, in __async_calculate_state
    if state_attributes := self.state_attributes:
                           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/water_heater/__init__.py", line 238, in state_attributes
    self.target_temperature,
    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/overkiz/water_heater/domestic_hot_water_production.py", line 207, in target_temperature
    return target_temperature.value_as_float
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pyoverkiz/models.py", line 334, in value_as_float
    raise TypeError(f"{self.name} is not a float")
TypeError: core:TargetTemperatureState is not a float

Additional information

No response

JCSSCJ avatar Mar 20 '25 13:03 JCSSCJ

Hey there @imicknl, mind taking a look at this issue as it has been labeled with an integration (overkiz) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of overkiz can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign overkiz Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


overkiz documentation overkiz source (message by IssueLinks)

home-assistant[bot] avatar Mar 20 '25 13:03 home-assistant[bot]

Hi ! Same water heater and same problems : the services 'set_way_mode' and 'set_operating_mode' doesn't work. This Atlantic model away mode works with "start date/end date" in the control panel so maybe it's the same kind of problem as this one https://github.com/home-assistant/core/pull/121801 Thanks

Koknico avatar Mar 24 '25 18:03 Koknico

@Koknico that sounds like a different problem, right? Or do you also have core:TargetTemperatureState is not a float as an error?

@Koknico, @JCSSCJ would one of you be willing to work with me on Discord (_imick) to see if we can resolve your main issue? I will need some more information.

iMicknl avatar Apr 20 '25 16:04 iMicknl

Hi @iMicknl ! You're right, I don't have the exact same error but just "Unknown Error" ... Image But it is the same material "io:AtlanticDomesticHotWaterProductionV2_CETHI_V4_IOComponent" and same problems : no action are working ... The only things I can use are the temperatures (Temperature and Middle Water Temperature) to know if it needs heating. Everything else seems wrong Here is the detail of my error if it can help :

Enregistreur: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:524
S'est produit pour la première fois: 09:34:19 (1 occurrences)
Dernier enregistrement: 09:34:19

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'manualEcoActive'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 524, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1008, in _async_step_call_service
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<9 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 624, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  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/water_heater/__init__.py", line 369, in async_handle_set_operation_mode
    await self.async_set_operation_mode(operation_mode)
  File "/usr/src/homeassistant/homeassistant/components/overkiz/water_heater/domestic_hot_water_production.py", line 326, in async_set_operation_mode
    OverkizCommand.SET_DHW_MODE, self.operation_mode_to_overkiz[operation_mode]
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'manualEcoActive'

Koknico avatar Apr 22 '25 07:04 Koknico

@Koknico please create a new issue for your specific problem.

iMicknl avatar Apr 22 '25 07:04 iMicknl

@Koknico that sounds like a different problem, right? Or do you also have core:TargetTemperatureState is not a float as an error?

@Koknico, @JCSSCJ would one of you be willing to work with me on Discord (_imick) to see if we can resolve your main issue? I will need some more information.

I wrote you on Discord, thank you ! 😃

JCSSCJ avatar Apr 25 '25 06:04 JCSSCJ

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

The issue remains open, being discussed on Discord but nothing new to date.

JCSSCJ avatar Jul 24 '25 09:07 JCSSCJ

Got the same issue since a long time, any news ?

Image

hugochar avatar Aug 23 '25 22:08 hugochar

Got the same issue since a long time, any news ?

Non rien à ce jour.. je n'ai même plus de nouvelle..

JCSSCJ avatar Aug 25 '25 06:08 JCSSCJ

ah 😭

hugochar avatar Aug 25 '25 07:08 hugochar

raise TypeError(f"{self.name} is not a float") TypeError: core:TargetTemperatureState is not a float

Fix inside /usr/src/homeassistant/homeassistant/components/overkiz/water_heater/domestic_hot_water_production.py", line 207: domestic_hot_water_production.py

Yvan13120 avatar Sep 17 '25 13:09 Yvan13120

Hello,

thank's but :

➜  ~ ls /usr/src/homeassistant/homeassistant/components/overkiz/water_heater/domestic_hot_water_production.py
ls: /usr/src/homeassistant/homeassistant/components/overkiz/water_heater/domestic_hot_water_production.py: No such file or directory
➜  ~ find / -name "domestic_hot_water_production.py" 2>/dev/null
➜  ~ 
➜  ~ sudo find / -type d -name "overkiz" 2>/dev/null
➜  ~ 

I can't find the file on my HA (last update) ?

Thank's in advance. JCS

JCSSCJ avatar Sep 17 '25 14:09 JCSSCJ

J'utilise les commandes suivantes avec cet exemple, mais à chaque mise à jour le fichier est écrasé. je vais le déposer sur le Git

Image

Yvan13120 avatar Sep 17 '25 18:09 Yvan13120

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

core:TargetTemperatureState is not a float should be fixed in the last update. Can you confirm? (so we can close this issue).

iMicknl avatar Dec 17 '25 09:12 iMicknl

core:TargetTemperatureState is not a float should be fixed in the last update. Can you confirm? (so we can close this issue).

Hi,

Image
  • If a touch the away entity, I always have this message Échec de l'exécution de l'action number/set_value. core:TargetTemperatureState is not a float.

  • If a touch the boost entity, I always have this message Échec de l'exécution de l'action number/set_value. core:TargetTemperatureState is not a float.

And the device status pass on Performance but there is a problem :

Le mode de fonctionnement n'est pas valide pour water_heater.chauffe_eau. Les modes de fonctionnement valides sont : manualEcoActive, manualEcoInactive, autoMode.

  • On the mode selection, I have 3 others messages than confirm I can't control the WaterHeater with HA :
Image
  • Échec de l'exécution de l'action water_heater/set_operation_mode. 'manualEcoActive'
  • Échec de l'exécution de l'action water_heater/set_operation_mode. 'manualEcoInactive'
  • Échec de l'exécution de l'action water_heater/set_operation_mode. 'autoMode'

All this control are functionnal in Cozytouch application.

  • If I set Auto in Cozytouch APP, in HA it show Eco ⁉️

  • If I set Man and Eco in Cozytouch APP, in HA it show Eco ✅

  • If I set Man and disable Eco in Cozytouch APP, in HA it show Eteint (down) ⁉️

  • For the Freeze Protection I have an other message that say the device don't have this option (not important).

Échec de l'exécution de l'action number/set_value. No such command : setSecuredPositionTemperature on device io://0832-9901-1263/5767598#1 (io:AtlanticDomesticHotWaterProductionV2_CETHI_V4_IOComponent)

I'm always available for tests or to give you access for debug, I really would like (and I'm sure others persons too) to control the basic options and get basic informations from the device.. If it's in Cozytouch App we can have it no ?

Many thank's :)

JCSSCJ avatar Dec 19 '25 11:12 JCSSCJ

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

up 🙄

JCSSCJ avatar Mar 19 '26 13:03 JCSSCJ

Hi,

Indeed, the error in the logs has disappeared. Regarding functionality, Somfy is partially compatible with other brands. For the water heater, I recommend the Aquamqtt project if you're comfortable with the technical aspects. The result is more comprehensive than CosyTouch.

Bye

Yvan13120 avatar Mar 19 '26 15:03 Yvan13120