Bepacom-Raalte / bepacom-HA-Addons

Repository for Bepacom EcoPanel add-ons for Home Assistant.
Apache License 2.0
15 stars 2 forks source link

ErrorRejectAbortNack #82

Open selfstream opened 2 weeks ago

selfstream commented 2 weeks ago

Sorry, i have the next Problem.... Do you know what i have to do?

[13:11:59]|ERROR    |BACnetIOHandler.py->subscription_task                   : ErrorRejectAbortNack: device,2640, binary-value,20043: resources: no-space-to-add-list-element
[13:11:59]|ERROR    |BACnetIOHandler.py->subscription_task                   : ErrorRejectAbortNack: device,2640, binary-value,20044: resources: no-space-to-add-list-element
[13:11:59]|ERROR    |BACnetIOHandler.py->subscription_task                   : ErrorRejectAbortNack: device,2640, binary-value,20045: resources: no-space-to-add-list-element
[13:11:59]|ERROR    |BACnetIOHandler.py->subscription_task                   : ErrorRejectAbortNack: device,2640, binary-value,20046: resources: no-space-to-add-list-element
[13:11:59]|ERROR    |BACnetIOHandler.py->subscription_task                   : ErrorRejectAbortNack: device,2640, binary-value,20055: resources: no-space-to-add-list-element
[13:11:59]|ERROR    |BACnetIOHandler.py->subscription_task                   : ErrorRejectAbortNack: device,2640, binary-value,20056: resources: no-space-to-add-list-element
GravySeal commented 2 weeks ago

Hey, no worries! This error usually indicates that there's no space for additional subscriptions in your device. To solve this, in your add-on configuration, you can filter what devices will get a CoV subscription. If you only give the most important objects a CoV subscription, and read the rest through polling, this error won't appear.

selfstream commented 2 weeks ago

Okay, thanks. That was the next step! Now I have the next problem. But I'm not sure if it's with the addon or with the interface.

After restarting HomeAssistant, all entities are available. But after polling, none are available anymore and i have to restart again.

same problem: when i change an option in a select list all entities are not available and i have to restart HA (at the end of the log)

Do you have any idea?

objectName: EcoPanel
address: 192.168.178.30/24
objectIdentifier: 420
defaultPriority: 15
devices_setup:
  - deviceID: device:2640
    CoV_lifetime: 900
    CoV_list:
      - multiStateValue:30368
      - multiStateValue:40003
      - multiStateValue:40284
    quick_poll_rate: 20
    quick_poll_list: []
    slow_poll_rate: 500
    slow_poll_list:
      - all
    resub_on_iam: true
    reread_on_iam: false
entity_list: []
api_accessible: false
loglevel: WARNING
segmentation: segmentedBoth

-----------------------------------------------------------
 Add-on: Bepacom BACnet/IP Interface
 Bepacom BACnet/IP interface for the Bepacom EcoPanel. Allows BACnet/IP devices to be available to Home Assistant through an API.
-----------------------------------------------------------
 Add-on version: 1.5.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 13.2  (aarch64 / raspberrypi3-64)
 Home Assistant Core: 2024.11.1
 Home Assistant Supervisor: 2024.11.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-interface: starting
[23:14:22] INFO: Running init-nginx.
[23:14:22] INFO: Running init-interface.
[23:14:22] INFO: Allowed addresses for NGINX: 127.0.0.1 192.168.178.30 172.30.232.1 172.30.32.1
[23:14:23] INFO: Generated ingress configuration successfully!
s6-rc: info: service init-nginx successfully started
[BACpypes]
objectName: EcoPanel
address: 192.168.178.30/24
objectIdentifier: 420
maxApduLengthAccepted: 1476
segmentation: segmentedBoth
vendorIdentifier: 15
foreignBBMD: -
foreignTTL: 255
maxSegmentsAccepted: 64
loglevel: INFO
defaultPriority: 15
s6-rc: info: service init-interface successfully started
s6-rc: info: service interface: starting
s6-rc: info: service interface successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
[23:14:24] INFO: Running interface
s6-rc: info: service legacy-services successfully started
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
[23:14:27] INFO: Service NGINX exited with code 256 (by signal 15)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service init-nginx: stopping
s6-rc: info: service interface: stopping
s6-rc: info: service init-nginx successfully stopped
[23:14:27] INFO: Service BACnet Interface exited with code 256 (by signal 15)
s6-rc: info: service interface successfully stopped
s6-rc: info: service init-interface: stopping
s6-rc: info: service init-interface successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: Bepacom BACnet/IP Interface
 Bepacom BACnet/IP interface for the Bepacom EcoPanel. Allows BACnet/IP devices to be available to Home Assistant through an API.
-----------------------------------------------------------
 Add-on version: 1.5.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 13.2  (aarch64 / raspberrypi3-64)
 Home Assistant Core: 2024.11.1
 Home Assistant Supervisor: 2024.11.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-interface: starting
[23:14:34] INFO: Running init-interface.
[23:14:34] INFO: Running init-nginx.
[23:14:34] INFO: Allowed addresses for NGINX: 127.0.0.1 192.168.178.30 172.30.232.1 172.30.32.1
[23:14:34] INFO: Generated ingress configuration successfully!
s6-rc: info: service init-nginx successfully started
[BACpypes]
objectName: EcoPanel
address: 192.168.178.30/24
objectIdentifier: 420
maxApduLengthAccepted: 1476
segmentation: segmentedBoth
vendorIdentifier: 15
foreignBBMD: -
foreignTTL: 255
maxSegmentsAccepted: 64
loglevel: WARNING
defaultPriority: 15
s6-rc: info: service init-interface successfully started
s6-rc: info: service interface: starting
s6-rc: info: service interface successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[23:14:35] INFO: Running interface
[23:14:53]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40010, present-value... NaN value: nan
[23:14:53]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40011, present-value... NaN value: nan
[23:14:53]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40017, present-value... NaN value: nan
[23:14:53]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40019, present-value... NaN value: nan
[23:14:53]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40020, present-value... NaN value: nan
[23:14:53]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40023, present-value... NaN value: nan
[23:14:53]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40024, present-value... NaN value: nan
[23:14:53]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40025, present-value... NaN value: nan
[23:14:54]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40135, present-value... NaN value: nan
[23:14:54]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40150, present-value... NaN value: nan
[23:14:54]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40151, present-value... NaN value: nan
[23:14:54]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40152, present-value... NaN value: nan
[23:14:54]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40153, present-value... NaN value: nan
[23:14:54]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40155, present-value... NaN value: nan
[23:14:54]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40286, present-value... NaN value: nan
[23:14:54]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40287, present-value... NaN value: nan
[23:14:54]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40288, present-value... NaN value: nan
[23:14:54]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40289, present-value... NaN value: nan
[23:14:55]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40290, present-value... NaN value: nan
[23:14:55]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40291, present-value... NaN value: nan
[23:14:55]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40292, present-value... NaN value: nan
[23:14:55]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40301, present-value... NaN value: nan
[23:14:55]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40302, present-value... NaN value: nan
[23:14:55]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40329, present-value... NaN value: nan
[23:14:55]|WARNING  |h11_impl.py       ->handle_events                       : Invalid HTTP request received.
[23:14:55] INFO: Running NGINX
2024/11/13 23:14:56 [notice] 311#311: using the "epoll" event method
2024/11/13 23:14:56 [notice] 311#311: nginx/1.26.2
2024/11/13 23:14:56 [notice] 311#311: OS: Linux 6.6.31-haos-raspi
2024/11/13 23:14:56 [notice] 311#311: getrlimit(RLIMIT_NOFILE): 1073741816:1073741816
2024/11/13 23:14:56 [notice] 311#311: start worker processes
2024/11/13 23:14:56 [notice] 311#311: start worker process 388
[23:15:02]|WARNING  |BACnetIOHandler.py->create_poll_task                    : device,2640 notification-class,1 failed to read: property: unknown-property
[23:15:02]|WARNING  |BACnetIOHandler.py->create_poll_task                    : device,2640 notification-class,2 failed to read: property: unknown-property
[23:15:02]|WARNING  |BACnetIOHandler.py->create_poll_task                    : device,2640 notification-class,3 failed to read: property: unknown-property
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40010, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40011, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40017, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40019, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40020, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40023, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40024, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40025, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40135, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40150, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40151, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40152, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40153, present-value... NaN value: nan
[23:15:03]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40155, present-value... NaN value: nan
[23:15:04]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40286, present-value... NaN value: nan
[23:15:04]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40287, present-value... NaN value: nan
[23:15:04]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40288, present-value... NaN value: nan
[23:15:04]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40289, present-value... NaN value: nan
[23:15:04]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40290, present-value... NaN value: nan
[23:15:04]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40291, present-value... NaN value: nan
[23:15:04]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40292, present-value... NaN value: nan
[23:15:04]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40301, present-value... NaN value: nan
[23:15:04]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40302, present-value... NaN value: nan
[23:15:04]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40329, present-value... NaN value: nan
[23:23:28]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40010, present-value... NaN value: nan
[23:23:28]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40011, present-value... NaN value: nan
[23:23:28]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40017, present-value... NaN value: nan
[23:23:28]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40019, present-value... NaN value: nan
[23:23:28]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40020, present-value... NaN value: nan
[23:23:28]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40023, present-value... NaN value: nan
[23:23:28]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40024, present-value... NaN value: nan
[23:23:28]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40025, present-value... NaN value: nan
[23:23:28]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40135, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40150, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40151, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40152, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40153, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40155, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40286, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40287, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40288, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40289, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40290, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40291, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40292, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40301, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40302, present-value... NaN value: nan
[23:23:29]|WARNING  |BACnetIOHandler.py->dict_updater                        : Ignoring property: device,2640, analog-value,40329, present-value... NaN value: nan
[23:25:46]|ERROR    |webAPI.py         ->write_property                      : device,2640, multi-state-value,30368, present-value, 3, None
[23:25:46]|ERROR    |webAPI.py         ->write_property                      : device,2640, multi-state-value,30368, present-value, 2, None
2024/11/13 23:26:18 [info] 388#388: *10 client 192.168.178.30 closed keepalive connection
2024/11/13 23:26:18 [info] 388#388: *11 client 192.168.178.30 closed keepalive connection
GravySeal commented 2 weeks ago

Could you please share some Home Assistant logs, as well as download the logs through the web UI? I think it might be going wrong in the integration.

selfstream commented 2 weeks ago

Yes, i think the problem ist with the integration. With the web UI for example i can send presentValue - no problems.

I found this log in HomeAssistant:

Logger: homeassistant.components.number
Quelle: helpers/entity_platform.py:599
Integration: Zahl (Dokumentation, Probleme)
Erstmals aufgetreten: 20:24:12 (24 Vorkommnisse)
Zuletzt protokolliert: 20:24:13

Error adding entity number.corrigoventilation_extrasafpressure for domain number with platform bacnet_interface
Error adding entity number.corrigoventilation_extraeafpressure for domain number with platform bacnet_interface
Error adding entity number.corrigoventilation_filterguard1ai for domain number with platform bacnet_interface
Error adding entity number.corrigoventilation_filterguard2ai for domain number with platform bacnet_interface
Error adding entity number.corrigoventilation_efficiencytemp for domain number with platform bacnet_interface
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 599, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 918, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1368, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1007, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
    self.__async_calculate_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 359, in state
    return self.value
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 398, in value
    if (native_value := self.native_value) is None:
                        ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bacnet_interface/number.py", line 343, in native_value
    value = float(
            ^^^^^^
TypeError: float() argument must be a string or a real number, not 'NoneType'

and this

Dieser Fehler stammt von einer benutzerdefinierten Integration

Logger: homeassistant
Quelle: custom_components/bacnet_interface/number.py:343
Integration: Bepacom BACnet/IP Interface (Dokumentation, Probleme)
Erstmals aufgetreten: 20:25:13 (10 Vorkommnisse)
Zuletzt protokolliert: 20:34:58

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 266, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 481, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 176, in async_update_listeners
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 561, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1007, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
    self.__async_calculate_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 359, in state
    return self.value
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 398, in value
    if (native_value := self.native_value) is None:
                        ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bacnet_interface/number.py", line 343, in native_value
    value = float(
            ^^^^^^
TypeError: float() argument must be a string or a real number, not 'NoneType'

The bacnet addon log looks good for me. bacnet_addon_logs.txt home-assistant_2024-11-14T19-35-35.689Z.log

GravySeal commented 2 weeks ago

I think I kind of get an idea what's happening, could you perhaps share another file with me? If you go to the web UI, to Swagger API Docs, and click on /apiv1/json, you should be able to get the data the add-on sends to Home Assistant. Could you press "Try it out" and then execute and download that file? It should tell me what I need to know.

Could you perhaps also try to remove the slow poll list, the same was as quick poll list. Does the problem come back if you remove polling altogether?

selfstream commented 2 weeks ago

The JSON-File: response_1731622951861.json

I have played around: When I remove the slow poll list with "slow_poll_list: []". The problem still appears after a few minutes. But I think the time is never the same. After 3-10 minutes the entities are no longer available.

But when i also remove the CoV_list, it seems that there are no problems (until I try to change a value).

GravySeal commented 2 weeks ago

I think I found an issue, if you look in the add-on logs you can see the add-on ignores a couple of analog value present values. This is because they come in as NaN. Could you check through Yabe or another BACnet program what these values are? For example for analog value 40010?

selfstream commented 2 weeks ago

I can't start working with Yabe until this evening. But on the main page of the add-on I can see that all of these analog values ​​that are ignored don't have a present value. Is there any way I can exclude these from polling?

Screenshot_20241115-083001

selfstream commented 1 week ago

screen_yabe

GravySeal commented 1 week ago

Hmm, it's truly shown as NaN. Let me see if I can handle these values in another way. As for excluding these objects, there isn't a blacklist yet. The only way now is to add all objects you want polled to the configuration, excluding the objects that don't work.