superduper1969 schreef op donderdag 29 mei 2025 @ 22:30:
[...]
You need to provide more info + screenshots:
- Battery V1 or V2
- Cabling photo
- Elfin Serial Port Screenshot
- Elfin Configuration Settings Screenshot
- Elfin Home screen > does it show the IP of the Client (HA) Screenshot
- Top part of config Screenshot
- HA Error log
Remember that the Elwin is the SERVER and the HA is the Client so do not mix up the IP addresses.
I should have the Version 1

The host IP is the same IP as the upper IP in the status image. And the lower IP in the Status image is the IP from my HA.
Error Log from HA:
2025-05-30 09:02:45.350 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-05-30 09:03:04.351 ERROR (MainThread) [homeassistant.components.mqtt.entity] The option `last_reset_value_template` cannot be used together with state class `None` for manually configured MQTT sensor item, in /config/configuration.yaml, line 17 Got {'state_topic': 'energy/solar', 'json_attributes_topic': 'energy/solar', 'payload_available': '1', 'last_reset_value_template': '1970-01-01T00:00:00+00:00'}
2025-05-30 09:03:04.415 WARNING (MainThread) [homeassistant.components.mqtt.sensor] The unit of measurement `sec` is not valid together with device class `duration`. this will stop working in HA Core 2025.7.0
2025-05-30 09:03:05.428 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.growatt_gesamt_laufzeit (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'sec' which is not a valid unit for the device class ('duration') it is using; expected one of ['s', 'ms', 'h', 'd', 'min', 'μs']; Please update your configuration if your entity is manually configured, otherwise create a bug report at
https://github.com/home-a...%22integration%3A+mqtt%22
2025-05-30 09:03:19.948 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:03:19.948 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: MarstekVenus: Error: device: 1 address: 32100 -> Modbus Error: [Input/Output] No response received after 3 retries, continue with next request
2025-05-30 09:03:39.994 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:04:00.038 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:04:20.084 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:04:40.130 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:05:00.174 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:05:20.221 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:06:00.422 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:06:20.467 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:06:40.511 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:07:00.557 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:07:20.602 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:07:40.645 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:08:00.691 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:08:05.337 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for bootstrap waiting on {<Task pending name='call_later 0.1' coro=<BasePlatform._async_update_if_not_in_progress() running at /usr/src/homeassistant/homeassistant/components/modbus/entity.py:137> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='call_later 0.1' coro=<BasePlatform._async_update_if_not_in_progress() running at /usr/src/homeassistant/homeassistant/components/modbus/entity.py:137> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='call_later 0.1' coro=<BasePlatform._async_update_if_not_in_progress() running at /usr/src/homeassistant/homeassistant/components/modbus/entity.py:137> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='call_later 0.1' coro=<BasePlatform._async_update_if_not_in_progress() running at /usr/src/homeassistant/homeassistant/components/modbus/entity.py:137> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>} - moving forward
2025-05-30 09:08:05.388 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set mode = states('sensor.my_battery_rs485_control_mode') | int %} {{ mode == 21930 }} # True (ON) when Enabled (21930), False (OFF) otherwise) renders=2>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 644, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2934, in _render_with_context
return template.render(**kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2434, in forgiving_int_filter
raise_no_default("int", value)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1972, in raise_no_default
raise ValueError(
...<2 lines>...
)
ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% set mode = states('sensor.my_battery_rs485_control_mode') | int %} {{ mode == 21930 }} # True (ON) when Enabled (21930), False (OFF) otherwise' but no default was specified
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 761, in async_render_to_info
render_info._result = self.async_render( # noqa: SLF001
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
variables, strict=strict, log_fn=log_fn, **kwargs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 646, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% set mode = states('sensor.my_battery_rs485_control_mode') | int %} {{ mode == 21930 }} # True (ON) when Enabled (21930), False (OFF) otherwise' but no default was specified
2025-05-30 09:08:05.404 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% set mode = states('sensor.my_battery_rs485_control_mode') | int %} {{ mode == 21930 }} # True (ON) when Enabled (21930), False (OFF) otherwise' but no default was specified') while processing template 'Template<template=({% set mode = states('sensor.my_battery_rs485_control_mode') | int %} {{ mode == 21930 }} # True (ON) when Enabled (21930), False (OFF) otherwise) renders=4>' for attribute '_state' in entity 'switch.my_battery_rs485_control_mode_switch'
2025-05-30 09:08:05.406 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% if states('sensor.my_battery_ac_power') | float < 0 %}
{{ (states('sensor.my_battery_ac_power') | float) *-1 }}
{% else %}
0
{% endif %}) renders=2>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2415, in forgiving_float_filter
return float(value)
ValueError: could not convert string to float: 'unavailable'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 644, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2934, in _render_with_context
return template.render(**kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2418, in forgiving_float_filter
raise_no_default("float", value)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1972, in raise_no_default
raise ValueError(
...<2 lines>...
)
ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% if states('sensor.my_battery_ac_power') | float < 0 %}
{{ (states('sensor.my_battery_ac_power') | float) *-1 }}
{% else %}
0
{% endif %}' but no default was specified
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 761, in async_render_to_info
render_info._result = self.async_render( # noqa: SLF001
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
variables, strict=strict, log_fn=log_fn, **kwargs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 646, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% if states('sensor.my_battery_ac_power') | float < 0 %}
{{ (states('sensor.my_battery_ac_power') | float) *-1 }}
{% else %}
0
{% endif %}' but no default was specified
2025-05-30 09:08:05.420 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% if states('sensor.my_battery_ac_power') | float < 0 %}
{{ (states('sensor.my_battery_ac_power') | float) *-1 }}
{% else %}
0
{% endif %}' but no default was specified') while processing template 'Template<template=({% if states('sensor.my_battery_ac_power') | float < 0 %}
{{ (states('sensor.my_battery_ac_power') | float) *-1 }}
{% else %}
0
{% endif %}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.my_battery_charging_in_w'
2025-05-30 09:08:05.422 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% if states('sensor.my_battery_ac_power') | float > 0 %}
{{ (states('sensor.my_battery_ac_power') | float) }}
{% else %}
0
{% endif %}) renders=2>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2415, in forgiving_float_filter
return float(value)
ValueError: could not convert string to float: 'unavailable'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 644, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2934, in _render_with_context
return template.render(**kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2418, in forgiving_float_filter
raise_no_default("float", value)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1972, in raise_no_default
raise ValueError(
...<2 lines>...
)
ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% if states('sensor.my_battery_ac_power') | float > 0 %}
{{ (states('sensor.my_battery_ac_power') | float) }}
{% else %}
0
{% endif %}' but no default was specified
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 761, in async_render_to_info
render_info._result = self.async_render( # noqa: SLF001
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
variables, strict=strict, log_fn=log_fn, **kwargs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 646, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% if states('sensor.my_battery_ac_power') | float > 0 %}
{{ (states('sensor.my_battery_ac_power') | float) }}
{% else %}
0
{% endif %}' but no default was specified
2025-05-30 09:08:05.438 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% if states('sensor.my_battery_ac_power') | float > 0 %}
{{ (states('sensor.my_battery_ac_power') | float) }}
{% else %}
0
{% endif %}' but no default was specified') while processing template 'Template<template=({% if states('sensor.my_battery_ac_power') | float > 0 %}
{{ (states('sensor.my_battery_ac_power') | float) }}
{% else %}
0
{% endif %}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.my_battery_discharging_in_w'
2025-05-30 09:08:05.440 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set mode = states('sensor.my_battery_force_charge_discharge_mode') | int %} {% if mode == 0 %}
Stop
{% elif mode == 1 %}
Charge
{% elif mode == 2 %}
Discharge
{% else %}
Unknown
{% endif %}) renders=2>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 644, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2934, in _render_with_context
return template.render(**kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2434, in forgiving_int_filter
raise_no_default("int", value)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1972, in raise_no_default
raise ValueError(
...<2 lines>...
)
ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% set mode = states('sensor.my_battery_force_charge_discharge_mode') | int %} {% if mode == 0 %}
Stop
{% elif mode == 1 %}
Charge
{% elif mode == 2 %}
Discharge
{% else %}
Unknown
{% endif %}' but no default was specified
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 761, in async_render_to_info
render_info._result = self.async_render( # noqa: SLF001
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
variables, strict=strict, log_fn=log_fn, **kwargs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 646, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% set mode = states('sensor.my_battery_force_charge_discharge_mode') | int %} {% if mode == 0 %}
Stop
{% elif mode == 1 %}
Charge
{% elif mode == 2 %}
Discharge
{% else %}
Unknown
{% endif %}' but no default was specified
2025-05-30 09:08:05.450 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% set mode = states('sensor.my_battery_force_charge_discharge_mode') | int %} {% if mode == 0 %}
Stop
{% elif mode == 1 %}
Charge
{% elif mode == 2 %}
Discharge
{% else %}
Unknown
{% endif %}' but no default was specified') while processing template 'Template<template=({% set mode = states('sensor.my_battery_force_charge_discharge_mode') | int %} {% if mode == 0 %}
Stop
{% elif mode == 1 %}
Charge
{% elif mode == 2 %}
Discharge
{% else %}
Unknown
{% endif %}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.my_battery_force_charge_discharge_mode_status'
2025-05-30 09:08:05.459 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set mode = states('sensor.my_battery_rs485_control_mode') | int %} {% if mode == 21930 %}
Enabled
{% elif mode == 21947 %}
Disabled
{% else %}
Unknown
{% endif %}) renders=2>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 644, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2934, in _render_with_context
return template.render(**kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2434, in forgiving_int_filter
raise_no_default("int", value)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1972, in raise_no_default
raise ValueError(
...<2 lines>...
)
ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% set mode = states('sensor.my_battery_rs485_control_mode') | int %} {% if mode == 21930 %}
Enabled
{% elif mode == 21947 %}
Disabled
{% else %}
Unknown
{% endif %}' but no default was specified
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 761, in async_render_to_info
render_info._result = self.async_render( # noqa: SLF001
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
variables, strict=strict, log_fn=log_fn, **kwargs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 646, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% set mode = states('sensor.my_battery_rs485_control_mode') | int %} {% if mode == 21930 %}
Enabled
{% elif mode == 21947 %}
Disabled
{% else %}
Unknown
{% endif %}' but no default was specified
2025-05-30 09:08:05.474 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% set mode = states('sensor.my_battery_rs485_control_mode') | int %} {% if mode == 21930 %}
Enabled
{% elif mode == 21947 %}
Disabled
{% else %}
Unknown
{% endif %}' but no default was specified') while processing template 'Template<template=({% set mode = states('sensor.my_battery_rs485_control_mode') | int %} {% if mode == 21930 %}
Enabled
{% elif mode == 21947 %}
Disabled
{% else %}
Unknown
{% endif %}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.my_battery_rs485_control_mode_status'
2025-05-30 09:08:20.488 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at
https://github.com/home-assistant/core/issues: template.switch, hassio.update, recorder, websocket_api, go2rtc, weather, met.weather, hassio.sensor, assist_pipeline, input_select, input_boolean, system_health, shelly.light, cloud.binary_sensor, met, input_datetime, climate, shelly.cover, mobile_app.sensor, api, mobile_app.binary_sensor, shelly.binary_sensor, intent, cloud, tag, schedule, ssdp, trace, button, camera, update, shelly.valve, mqtt, hacs.update, shelly.update, switch, script, google_translate.tts, bluetooth, system_log, shopping_list.todo, history, hardware, frontend, notify, dhcp, hassio, network, energy, analytics, cloud.tts, device_tracker, persistent_notification, input_text, hacs, device_automation, usb, logbook, forecast_solar.sensor, google_assistant, utility_meter.sensor, blueprint, onboarding, default_config, backup.sensor, homeassistant_alerts, shelly.climate, google_translate, shelly.text, light, number, cover, thread, shelly.select, my, ffmpeg, shelly.event, automation, file_upload, min_max, sensor, shelly.button, mobile_app, cloud.stt, stream, mqtt.sensor, binary_sensor, todo, diagnostics, energy.sensor, media_source, min_max.sensor, event, shelly.number, growatt_server.sensor, shelly.sensor, sun, image_upload, template, shelly.switch, shelly, input_button, search, alexa, repairs, text, auth, integration.sensor, utility_meter, growatt_server, valve, counter, homeassistant, zone, stt, wake_word, person, select, sun.sensor, mobile_app.notify, lovelace, timer, template.sensor, zeroconf, hassio.binary_sensor, scene, homeassistant.scene, shopping_list, hacs.switch, conversation, application_credentials, radio_browser, modbus.sensor, http, mobile_app.device_tracker, config, forecast_solar, modbus, influxdb, webhook, input_number, tts, backup, logger The system is waiting for tasks: {<Task pending name='call_later 0.1' coro=<BasePlatform._async_update_if_not_in_progress() running at /usr/src/homeassistant/homeassistant/components/modbus/entity.py:137> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='call_later 0.1' coro=<BasePlatform._async_update_if_not_in_progress() running at /usr/src/homeassistant/homeassistant/components/modbus/entity.py:137> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='call_later 0.1' coro=<BasePlatform._async_update_if_not_in_progress() running at /usr/src/homeassistant/homeassistant/components/modbus/entity.py:137> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='call_later 0.1' coro=<BasePlatform._async_update_if_not_in_progress() running at /usr/src/homeassistant/homeassistant/components/modbus/entity.py:137> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>}
2025-05-30 09:08:21.116 ERROR (MainThread) [homeassistant.components.automation.my_battery_sync_modbus_and_input_select] My Battery Sync Modbus and Input Select: Choose at step 1: choice 1: Error executing script. Error for call_service at pos 1: Error rendering data template: ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% if states('sensor.my_battery_user_work_mode') | int == 0 %}
Manual
{% elif states('sensor.my_battery_user_work_mode') | int == 1 %}
Anti-Feed
{% elif states('sensor.my_battery_user_work_mode') | int == 2 %}
Trade Mode
{% else %}
Manual
{% endif %}' but no default was specified
2025-05-30 09:08:21.118 ERROR (MainThread) [homeassistant.components.automation.my_battery_sync_modbus_and_input_select] My Battery Sync Modbus and Input Select: Error executing script. Error for choose at pos 1: Error rendering data template: ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% if states('sensor.my_battery_user_work_mode') | int == 0 %}
Manual
{% elif states('sensor.my_battery_user_work_mode') | int == 1 %}
Anti-Feed
{% elif states('sensor.my_battery_user_work_mode') | int == 2 %}
Trade Mode
{% else %}
Manual
{% endif %}' but no default was specified
2025-05-30 09:08:21.119 ERROR (MainThread) [homeassistant.components.automation.my_battery_sync_modbus_and_input_select] Error while executing automation automation.my_battery_sync_modbus_and_input_select: Error rendering data template: ValueError: Template error: int got invalid input 'unavailable' when rendering template '{% if states('sensor.my_battery_user_work_mode') | int == 0 %}
Manual
{% elif states('sensor.my_battery_user_work_mode') | int == 1 %}
Anti-Feed
{% elif states('sensor.my_battery_user_work_mode') | int == 2 %}
Trade Mode
{% else %}
Manual
{% endif %}' but no default was specified
2025-05-30 09:08:41.135 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:09:01.183 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:09:21.230 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:09:41.275 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:10:01.319 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:10:21.363 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:10:41.408 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:11:21.611 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:11:41.657 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:12:01.701 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:12:21.745 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:12:41.790 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:13:01.834 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:13:21.879 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-05-30 09:14:02.078 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request