Code Monkey home page Code Monkey logo

bepacom-bacnet-ip-integration's People

Contributors

bepacom-raalte avatar gravyseal avatar infradom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

infradom platzii

bepacom-bacnet-ip-integration's Issues

Can't get integration to work

I have several BACnet devices. I would like to access some of their functionality on Home Assistant dashboards. Eventually I hope to access everything on them using Home Assistant.

I am able to connect to these devices using your Add-On.


Screenshot 2024-04-19 at 11 22 35 PM


I am not able to install your Integration.


Screenshot 2024-04-19 at 11 20 12 PM


Please advise.

Integration & Add-On are not restoring the operational state after a HA restart

I just installed Interface v1.4.0b4. It worked without error, but the presentValue in the entities were not getting updated anymore. I guess the connection to the Integration stopped over the update.

Then I restarted HA. This always triggers the Add-On to re-scan the entire object tree of the GTW-21 and re-subscribe, which takes like 15 min to complete, due to the large number of objects.

From the HA restart onward, the BACnet entities are shown as "not available" in the Dashboard, even after the Add-On completed the device scan.

image

Part of the problem is, that the Add-On does not remember the previously subscribed objects. It just tries to subscribe to all object of the object-types that are enabled in the Configuration. Due to the limitation of the number of CoV objects in the GTW-21 device, the Add-On subscription ends with errors after the first 20 objects, and therefore, the subscriptions needed for the entities are not being restored automatically.

I have to manually delete the automatic subscriptions to free up the subscription-list. Then I have to manually subscribe to the objects that I need for the Integration.

But even that does not make the Integration getting new CoV values from the Add-On. I have to manually reload the Integration to get the CoV values updated in the Dashboard.

Long story short - the Integration & Add-On are not restoring the operational state after a HA restart.

This is quite annoying to the user, because it has to be assumed that HA is being often restarted due to frequent updates. All Integrations should therefore restore the previous, operational state automatically, without the need for any user intervention.

Unable to add integration - Bepacom BACnet/IP Interface

I'm unable to add the integration, every Ip adress entered fails.
Tried on a clean instance of HA but also fails.
latest HA on Vmware Vsphere, with multiple network adapters connected.
Bepacom Addon is working on the instance.

logfile:
Deze fout is ontstaan door een aangepaste integratie.

Logger: aiohttp.server
Source: custom_components/bacnet_interface/config_flow.py:92
Integration: Bepacom EcoPanel BACnet/IP Interface (documentation)
First occurred: 7 september 2023 om 11:57:34 (13 occurrences)
Last logged: 11:52:51

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 298, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 394, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bacnet_interface/config_flow.py", line 63, in async_step_user
devicedict = await self._async_get_device(user_input[CONF_HOST])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bacnet_interface/config_flow.py", line 92, in _async_get_device
return await interface.update()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioecopanel/aioecopanel.py", line 171, in update
if not (data := await self.request("/apiv1/json")):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioecopanel/aioecopanel.py", line 132, in request
raise EcoPanelError(
aioecopanel.exceptions.EcoPanelError: (500, {'message': 'Internal Server Error'})

Need more detailed instructions

I receive data through your add-on's web interface. How can I get this data in Home Assistant? I can `t get it. It is not written anywhere and there are no examples. Can you write the instructions in a little more detail?

image

Error setting up entry BACnet Interface for bacnet_interface

Hoi, na de update naar de laatste versie krijg ik een foutmelding in de integratie:
ik krijg deze zowel met de standaard als de dev. versie van de add-on

Logger: homeassistant.config_entries
Source: config_entries.py:444
First occurred: 13:02:22 (3 occurrences)
Last logged: 13:12:55

Error setting up entry BACnet Interface for bacnet_interface
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bacnet_interface/init.py", line 43, in async_setup_entry
coordinator = EcoPanelDataUpdateCoordinator(hass, entry=entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bacnet_interface/coordinator.py", line 33, in init
port=entry.data[CONF_PORT],
~~~~~~~~~~^^^^^^^^^^^
KeyError: 'port'

Binary Inputs not being imported

Hi,

I've got a setup of Siemens PXC.100-E controller and managed to get your HASS addon running successfully. The integration seems to be working okay, apart from the Binary Inputs not being detected. I can see them in the addon's WebUI, but they don't seem to be going through the integration.

See log from the WebUI:

  | binaryInput:7 | objectIdentifier | binaryInput,7
  |   | objectName | AS01'Heating'Corr'RoomD
  |   | description | Corridor Demand
  |   | presentValue | inactive
  |   | statusFlags | 0,0,0,0
  |   | outOfService | false
  |   | eventState | normal
  |   | reliability | noFaultDetected
  |   | notificationClass | 32
  | binaryInput:8 | objectIdentifier | binaryInput,8
  |   | objectName | AS01'Heating'Living'RoomD
  |   | description | Living Room Demand
  |   | presentValue | inactive
  |   | statusFlags | 0,0,0,0
  |   | outOfService | false
  |   | eventState | normal
  |   | reliability | noFaultDetected
  |   | notificationClass | 32
  | binaryInput:9 | objectIdentifier | binaryInput,9
  |   | objectName | AS01'Heating'MBed'RoomD
  |   | description | Master Bedroom Demand
  |   | presentValue | inactive
  |   | statusFlags | 0,0,0,0
  |   | outOfService | false
  |   | eventState | normal
  |   | reliability | noFaultDetected
  |   | notificationClass | 32

I do have a custom units on these blocks if that matters.

Great piece of work, guys!

adding points in the devices

Hello, I noticed that every time I export a new point to BACnet from a device, I have to delete the entire device from the integration and then reload it to make the device reappear with the new point. Is there another way to update the list of points without having to delete the device each time? For example: a "reconfigure" button present in many integrations. Thank you.

Size of home assistant backup

Hi, I've noticed a significant increase in the size of the Home Assistant backup images since I installed the Bepacom BACnet/IP Interface. On average, the backup file increases by 12MB every day. Today, it's almost 100MB, with more than half of that being from the file 97683af0_bacnetinterface_dev.tar.gz. Currently, I'm using version 1.4.1b6.
immagine

Here's my configuration
immagine

ERROR: Nack error reading device props: device,93300: unrecognized-service

Hi, I have a Salda HVAC system that seems not to be recognized by the add-on, you can see the error in the log down here:

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

�[34m-----------------------------------------------------------�[0m
�[34m Add-on: Bepacom BACnet/IP Interface�[0m
�[34m Bepacom BACnet/IP interface for the Bepacom EcoPanel. Allows BACnet/IP devices to be available to Home Assistant through an API.�[0m
�[34m-----------------------------------------------------------�[0m
�[34m Add-on version: 1.3.2�[0m
�[32m You are running the latest version of this add-on.�[0m
�[34m System: Home Assistant OS 11.5  (amd64 / qemux86-64)�[0m
�[34m Home Assistant Core: 2024.2.1�[0m
�[34m Home Assistant Supervisor: 2024.01.1�[0m
�[34m-----------------------------------------------------------�[0m
�[34m Please, share the above information when looking for help�[0m
�[34m or support in, e.g., GitHub, forums or the Discord chat.�[0m
�[34m-----------------------------------------------------------�[0m
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
[08:27:16] INFO: �[32mRunning init-nginx.�[0m
[08:27:16] INFO: �[32mRunning init-interface.�[0m
[08:27:16] INFO: �[32mAllowed addresses for NGINX: 127.0.0.1 192.168.1.200 172.30.32.1 172.30.232.1�[0m
Using enp0s18 as address: 192.168.1.200/24
[08:27:17] INFO: �[32mGenerated ingress configuration successfully!�[0m
s6-rc: info: service init-nginx successfully started
[BACpypes]
objectName: EcoPanel
address: 192.168.1.200/24
objectIdentifier: 420
maxApduLengthAccepted: 1476
segmentation: segmentedBoth
vendorIdentifier: 15
foreignBBMD: -
foreignTTL: 255
maxSegmentsAccepted: 64
loglevel: WARNING
defaultPriority: 15
updateInterval: 600
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
[08:27:17] INFO: �[32mRunning interface�[0m
s6-rc: info: service legacy-services successfully started
ERROR:    Nack error reading device props: device,93300: unrecognized-service
ERROR:    exception: KeyError('device:93300')
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/bacpypes3/app.py", line 899, in indication
    await helperFn(apdu)
  File "/usr/bin/BACnetIOHandler.py", line 162, in do_IAmRequest
    await self.read_object_list(device_identifier=apdu.iAmDeviceIdentifier)
  File "/usr/bin/BACnetIOHandler.py", line 353, in read_object_list
    for obj_id in self.bacnet_device_dict[f"device:{device_identifier[1]}"][
                  ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'device:93300'
ERROR:    An uncaught error occurred: 'IAmRequest' object has no attribute 'apduInvokeID'
NoneType: None
WARNING:  Invalid HTTP request received.
[08:27:47] INFO: �[32mRunning NGINX�[0m
2024/02/10 08:27:47 [notice] 273#273: using the "epoll" event method
2024/02/10 08:27:47 [notice] 273#273: nginx/1.24.0
2024/02/10 08:27:47 [notice] 273#273: OS: Linux 6.1.74-haos
2024/02/10 08:27:47 [notice] 273#273: getrlimit(RLIMIT_NOFILE): 1073741816:1073741816
2024/02/10 08:27:47 [notice] 273#273: start worker processes
2024/02/10 08:27:47 [notice] 273#273: start worker process 364
2024/02/10 09:39:48 [info] 364#364: *1 client 127.0.0.1 closed keepalive connection
2024/02/10 09:40:10 [info] 364#364: *3 client 127.0.0.1 closed keepalive connection
ERROR:    Disconnected...

2024/02/10 09:41:47 [info] 364#364: *5 client 172.30.32.2 closed keepalive connection

There is an add-on specific for this unit but unfortunately has stopped working after some updates as the add-on was no more serviced.
So after a while I noticed your addon and tried to use the HVAC through Bac net but since now I' wasn't able to.

This are the settings of the unit, basically Bac net address 47808, device ID 93300, address 1

immagine

Integration can't be set up, I imagine because of the error in the log

Bepacom1

Thanks
Regards

Values are not getting updated in HomeAssistant

I've been able to successfully install the Bepacom-BACnet-IP-Installation.
It found my GTW-21 BACnet device from the heatpump manufacturer Brötje (BDR Thermea Group). It is a BACnet certified device, to which I can connect with YABE normally.

I'm able to see the Present Values in the HomeAssistant Entities.

However, the values are not getting updated at all. It look like they have been read once, and now they're frozen forever.
This is what I see in HA. It would be expected, though, that the temperature value would change very dynamically over time.

image

What did I miss to configure?
Any help would be much appreciated!
Best regards, Christian

401: Unauthorized - Cannot access API from Home Assistant via RESTful Sensor

In the API Test Tool on the add-on page, access to the API works fine, but when trying to connect to the API from Home Assistant by creating a REST sensor, access is denied with the server response: "401: Unauthorized." The same error occurs if I use the Postman application. However, access to the regular Home Assistant API (sensors, etc.) using a long-term access key works fine. In the Chrome or Firefox browsers, on which the Home Assistant page is still open and a response from the add-on API is requested, everything also works without problems with authorization.

Bepacom EcoPanel BACnet/IP Interface
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 EcoPanel BACnet/IP Interface
Bepacom BACnet/IP interface for the Bepacom EcoPanel. Allows BACnet devices to be available to Home Assistant through an API

Add-on version: 1.1.3
You are running the latest version of this add-on.
System: Home Assistant OS 10.5 (amd64 / qemux86-64)
Home Assistant Core: 2023.10.0
Home Assistant Supervisor: 2023.10.0

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
[12:40:52] INFO: Initialising NGINX
[12:40:52] INFO: Generating BACpypes.ini
s6-rc: info: service init-nginx successfully started
Using enp0s3 as address: 192.168.8.20/24
[BACpypes]
objectName: EcoPanel
address: 192.168.8.20/24
objectIdentifier: 420
maxApduLengthAccepted: 1476
segmentation: segmentedBoth
vendorIdentifier: 15
foreignBBMD: -
foreignTTL: 255
maxSegmentsAccepted: 64
loglevel: WARNING
defaultPriority: 15
updateInterval: 60
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
[12:40:53] INFO: Running interface
s6-rc: info: service legacy-services successfully started
WARNING: Invalid HTTP request received.
[12:41:00] INFO: Starting NGINX
2023/10/05 12:41:00 [notice] 271#271: using the "epoll" event method
2023/10/05 12:41:00 [notice] 271#271: nginx/1.24.0
2023/10/05 12:41:00 [notice] 271#271: OS: Linux 6.1.45
2023/10/05 12:41:00 [notice] 271#271: getrlimit(RLIMIT_NOFILE): 1073741816:1073741816
2023/10/05 12:41:00 [notice] 271#271: start worker processes
2023/10/05 12:41:00 [notice] 271#271: start worker process 322
2023/10/05 12:41:02 [warn] 322#322: *1 an upstream response is buffered to a temporary file /var/lib/nginx/tmp/proxy/1/00/0000000001 while reading upstream, client: 172.30.32.2, server: , request: "GET /webapp HTTP/1.1", upstream: "http://127.0.0.1:7813/webapp", host: "192.168.8.20:8123", referrer: "http://192.168.8.20:8123/13b6b180_bacnetinterface"
ERROR: Disconnected...
2023/10/05 12:41:33 [info] 322#322: *4 client 172.30.32.2 closed keepalive connection
2023/10/05 12:42:17 [info] 322#322: *9 client 172.30.32.2 closed keepalive connection
2023/10/05 12:43:23 [info] 322#322: *11 client 172.30.32.2 closed keepalive connection
2023/10/05 12:43:41 [info] 322#322: *13 client 172.30.32.2 closed keepalive connection
2023/10/05 12:45:00 [info] 322#322: *15 client 172.30.32.2 closed keepalive connection
2023/10/05 13:06:52 [info] 322#322: *18 client 172.30.32.2 closed keepalive connection
2023/10/05 13:11:16 [info] 322#322: *20 client 172.30.32.2 closed keepalive connection

image

configuration.yaml:

homeassistant:
auth_providers:
- type: trusted_networks
trusted_networks:
- 192.168.8.0/24
- 172.30.32.2
- 127.0.0.1
- ::1
allow_bypass_login: true
- type: homeassistant

rest.yaml:

HA API works good:

Add-on API doesn't work:

SUPERVISOR log:
23-10-05 13:11:31 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
23-10-05 13:11:32 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
23-10-05 13:26:32 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None

Two different types of decimal separators in my BACnet Integration

My BACnet Integration shows two different types of decimal separators. Editable fields are shown with decimal point, whereas non-editable values are shown with a comma instead.

This might be related to HA itself or to my PC settings, but since I don't have any other editable device in my HA, I'm only seeing it with BACnet objects. Any idea why?

image

There is actually a setting for number formats in the User Profile in HA, therefore I think that it should be uniformly used everywhere in HA.

image

My setting is Auto and the Language setting is German, so I would expect to see the comma as the decimal separator. It is shown like that in Dashboard cards for temperature settings, for example:

image

TypeError: 'NoneType' object is not subscriptable

Hi,
sinds 2 dagen loop ik tegen een nieuwe foutmelding aan.

Deze foutmelding komt een aantal keer voor in het logboek, voor binary_sensor, sensor, number, select en switch.
alle entities zijn nu niet beschikbaar.
ik draai de development add-on en de laatste integration.

Logger: homeassistant.components.binary_sensor
Source: custom_components/bacnet_interface/binary_sensor.py:36
Integration: Binaire sensor (documentation, issues)
First occurred: 09:51:41 (1 occurrences)
Last logged: 09:51:41

Error while setting up bacnet_interface platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/bacnet_interface/binary_sensor.py", line 36, in async_setup_entry
coordinator.data.devices[deviceid].objects[objectid].objectIdentifier[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable

Configuration

I have a Variheat 600 running Bepacom. This is a pool heater / ventilation system

It has IP address of 192.168.1.211

I can see this on the network using Wacnet

Screenshot 2024-03-22 at 11 24 35

I have Bepacom IP running

The UI interface shows nothing.

I have Become Ip interface running but this has some default ip addresses ( that show in the logs of Bepacom Ip but ate not a range I use ( 127.0.0.1) and anything I add leads to an error

Screenshot 2024-03-22 at 11 28 14

Given BacNet runs and I can see it with Wacnet then I have a configuration issue somewhere but cant see anything obvious in the documentations.

Could you please point me in the right direction.

Thank you

Uploading Screenshot 2024-03-22 at 11.30.46.png…

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.3.3
You are running the latest version of this add-on.
System: Home Assistant OS 12.1 (amd64 / generic-x86-64)
Home Assistant Core: 2024.3.1
Home Assistant Supervisor: 2024.03.0

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
[11:14:25] INFO: Running init-nginx.
[11:14:25] INFO: Running init-interface.
[11:14:25] INFO: Allowed addresses for NGINX: 127.0.0.1 192.168.20.177 192.168.20.57 172.30.232.1 172.30.32.1
[11:14:25] INFO: Generated ingress configuration successfully!
s6-rc: info: service init-nginx successfully started
Using enp0s25 as address: 192.168.20.177/24
[BACpypes]
objectName: EcoPanel
address: 192.168.20.177/24
objectIdentifier: 420
maxApduLengthAccepted: 1476
segmentation: segmentedBoth
vendorIdentifier: 15
foreignBBMD: -
foreignTTL: 255
maxSegmentsAccepted: 64
loglevel: WARNING
defaultPriority: 15
updateInterval: 600
s6-rc: info: service init-interface

Wrong presentValue is send in entity (select)

Sorry i'm new to HA so i hope i explain it right.
The AddOn and the Integration is running but i can't right control the device by a "select"-entity

For example: I have activated a select-entity with 4 options.

select.corrigoventilation_airunitautomode

options: OFF, Manual On reduced speed, Manual On normal speed, AUTO
OutOfService: 0
EventState: normal
icon: mdi:fan
friendly_name: Lueftung Halle

When i select the first option "OFF" it sends a presentValue=2 to the api. But it should be presentValue=1
The second option sends presentValue=3 - it should be presentValue=2
The third option sends presentValue=4 - it should be presentValue=3 and so on

I have the same problems with other entities with multistates i activated in the integration.

Can you reproduce this?


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 EcoPanel BACnet/IP Interface
Bepacom BACnet/IP interface for the Bepacom EcoPanel. Allows BACnet devices to be available to Home Assistant through an API

Add-on version: 1.1.3
You are running the latest version of this add-on.
System: Home Assistant OS 11.1 (aarch64 / raspberrypi3-64)
Home Assistant Core: 2023.11.2
Home Assistant Supervisor: 2023.11.3

request to add units

Hi,
it is possible to add these units in the integration?
W
Kwh
min
sec
h
%RH
ppm
V

thanks a lot

Unknown error when adding integration

I'm trying to add integration, but when setting up the address, an "unknown error" appears. I tried to use the IP address on the local network (192.168.8.239), on which the Home Assistant OS is running and 127.0.0.1 - the result is the same: "Unknown error".

When viewing network information (ha network info), this is displayed:

➜ ~ ha network info
docker:
address: 172.30.32.0/23
dns: 172.30.32.3
gateway: 172.30.32.1
interface: hassio
host_internet: true
interfaces:

  • connected: true
    enabled: true
    interface: wlp2s0
    ipv4:
    address:
    • 192.168.8.239/24
      gateway: 192.168.8.1
      method: auto
      nameservers:
    • 1.1.1.1
    • 8.8.8.8
      ready: true
      ipv6:
      address:
    • fe80::149c:fbc9:889e:2a90/64
      gateway: null
      method: disabled
      nameservers: []
      ready: true
      mac: 5C:51:4F:6B:92:2F
      primary: true
      type: wireless
      vlan: null
      wifi:
      auth: wpa-psk
      mode: infrastructure
      signal: 65
      ssid: CTREND

Home Assistant CORE log:
Logger: aiohttp.server
Source: data_entry_flow.py:401
First occurred: 16:21:43 (1 occurrences)
Last logged: 16:21:43

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 298, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 401, in _async_handle_step
if result.get("preview") is not None:
^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

Entities to Bacnet Objects

Hi, my issue has only just started after working just fine for the last 3 weeks or so.

Describe the bug
I deleted everything relating to the interface and add in; as I was having trouble with the "entities to bacnet objects" I was using "number" "switch" and "sensor" and then when starting from the beginning again - as soon as I add these entities the Bacnet service crashes. I can discover devices in HA but only when the entities line in the service configuration is blank.

image


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.3.3
You are running the latest version of this add-on.
System: Home Assistant OS 12.0 (aarch64 / green)
Home Assistant Core: 2024.2.4
Home Assistant Supervisor: 2024.02.1

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
[15:09:53] INFO: Running init-nginx.
[15:09:53] INFO: Running init-interface.
[15:09:53] INFO: Allowed addresses for NGINX: 127.0.0.1 192.168.1.23 172.30.232.1 172.30.32.1
[15:09:54] INFO: Generated ingress configuration successfully!
s6-rc: info: service init-nginx successfully started
[BACpypes]
objectName: EcoPanel
address: 192.168.1.23/24
objectIdentifier: 4069
maxApduLengthAccepted: 1476
segmentation: segmentedBoth
vendorIdentifier: 15
foreignBBMD: -
foreignTTL: 255
maxSegmentsAccepted: 64
loglevel: INFO
defaultPriority: 9
updateInterval: 600
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
[15:09:54] INFO: Running interface
s6-rc: info: service legacy-services successfully started

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/bin/main.py", line 315, in main
object_manager = ObjectManager(
^^^^^^^^^^^^^^
File "/usr/bin/BACnetIOHandler.py", line 919, in init
self.add_object(object_type="analogValue", index=index, entity=data)
File "/usr/bin/BACnetIOHandler.py", line 1101, in add_object
friendly_name = entity["attributes"].get("friendly_name")
~~~~~~^^^^^^^^^^^^^^
TypeError: 'bool' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/site-packages/bacpypes3/ipv4/init.py", line 155, in set_local_transport_protocol
transport, protocol = task.result()
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1438, in create_datagram_endpoint
await waiter
asyncio.exceptions.CancelledError
ERROR: An uncaught error occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/bin/main.py", line 315, in main
object_manager = ObjectManager(
^^^^^^^^^^^^^^
File "/usr/bin/BACnetIOHandler.py", line 919, in init
self.add_object(object_type="analogValue", index=index, entity=data)
File "/usr/bin/BACnetIOHandler.py", line 1101, in add_object
friendly_name = entity["attributes"].get("friendly_name")
~~~~~~^^^^^^^^^^^^^^
TypeError: 'bool' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/site-packages/bacpypes3/ipv4/init.py", line 186, in set_broadcast_transport_protocol
transport, protocol = task.result()
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1438, in create_datagram_endpoint
await waiter
asyncio.exceptions.CancelledError
Traceback (most recent call last):
File "/usr/bin/main.py", line 388, in
asyncio.run(main())
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/bin/main.py", line 315, in main
object_manager = ObjectManager(
^^^^^^^^^^^^^^
File "/usr/bin/BACnetIOHandler.py", line 919, in init
self.add_object(object_type="analogValue", index=index, entity=data)
File "/usr/bin/BACnetIOHandler.py", line 1101, in add_object
friendly_name = entity["attributes"].get("friendly_name")
~~~~~~^^^^^^^^^^^^^^
TypeError: 'bool' object is not subscriptable
[15:10:04] INFO: Service BACnet Interface exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
[15:10:04] 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 interface successfully stopped
s6-rc: info: service init-interface: stopping
s6-rc: info: service init-nginx successfully stopped
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 base-addon-log-level successfully stopped
s6-rc: info: service fix-attrs 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

into Lovelace?

Hello,

Great project.

I can see the values from a temp sensor in the webui.

How can I get these values into lovelace?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.