ISY994i, Failed to call service number/set_value

Hello,

I just updated to the new ISY994i integration, where it is now using the number.set_value service vs. the isy994.set_variable service. After upgrading, HA asked to repair the ISY994i integration, which I did. After a RESTART, I was looking at my Overview Dashboard and see new entities under “HOME”. When I went to increment an entity ( HA.Integer_String1 ), that I believe will set the variable to this value on my ISY994i, I get an error.

“Failed to call service number/set_value. Could not set HA.Integer_String1 to 12459.0 for 1.67”

Here are the two log entries for the error.

Logger: pyisy
Source: components/isy994/number.py:236
First occurred: 4:23:23 PM (2 occurrences)
Last logged: 4:23:23 PM
ISY Reported an Invalid Command Received /vars/set/1/67/12462.0
ISY could not set variable: 1.67

Second error:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/isy994/number.py:237
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 4:23:23 PM (1 occurrences)
Last logged: 4:23:23 PM

[548043736592] Could not set HA.Integer_String1 to 12462.0 for 1.67

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1787, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 968, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 720, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 96, in async_set_value
    await entity.async_set_native_value(native_value)
  File "/usr/src/homeassistant/homeassistant/components/isy994/number.py", line 237, in async_set_native_value
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Could not set HA.Integer_String1 to 12462.0 for 1.67

My system is up to date:

Home Assistant 2023.2.2
Supervisor 2023.01.1
Operating System 9.5
Frontend 20230202.0 - latest

Any insight to this error is appreciated, thank you!

Perhaps the value needs to be an integer? Try using INT function on the value of 12462.0 to turn it into an integer.

Hello, thank you for replying!

I just want to clarify that the error is coming directly from the “Overview” Dashboard, that is generated from the isy994 integration. I would have thought that the integration would be sending back to the ISY994i, the correct format. Unless I misunderstand, I can not change the integration format of the function, that the isy994 integration uses to set the isy994 variable, from the “Overview” page. Which sounds to me to be an integration problem. Here are images from the “Overview” page.

isy994

isy994_error

I originally fixed the problem I stated here:

But the isy994.set_variable is deprecated based on the last isy994 integration update.