Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/xknxPublic

scan devices on the bus automatically#971

Answeredbyfarmio
monde38 asked this question inQ&A
Discussion options

hi everyone, i'm using xknx and it's perfect for now. But i want to know if it's possible to connect with a real installation and automatically
scan all the devices on the bus without having to create the object like:
>> light1 = Light(knx, name='Switch (D7)', group_address_switch='1/1/0')
basically i want to make a generic script for a building that can access all devices.
thanks :)

You must be logged in to vote

Hi!

No, this is not possible.

One way would be to import the.knxproj file and parse it. There is already some work done by Marvin - see xknx/xknxproject repo. But even then I don't think full featured devices can be derived. Maybe if ETS functions are defined, but not sure how far this could take.

Replies: 1 comment 6 replies

Comment options

Hi!

No, this is not possible.

One way would be to import the.knxproj file and parse it. There is already some work done by Marvin - see xknx/xknxproject repo. But even then I don't think full featured devices can be derived. Maybe if ETS functions are defined, but not sure how far this could take.

You must be logged in to vote
6 replies
@monde38
Comment options

hi again,

I was trying to analyze a .knxproj as the example in the repo says but this error comes out, could someone help me please? I don't know which list the exception refers to
image

@farmio
Comment options

I guess it was never tested on Windows. Maybe open an issue in the according repo reporting the bug en detail.

@monde38
Comment options

thanks you.

@monde38
Comment options

update:
after tracing the exception I could see that after line 29 the code flow goes directly to the line 35 and does not execute line 30, 31, 32, 33 and 34. I have no idea why. Perhaps for this reason it is that it is about accessing an index that does not exist and the exception is thrown. I'm using a .knxproj that i downloaded here ->https://www.theben.de/service-en-gb/ets-project-examples/ (all the examples work the same way) I appreciate any help.

image

@farmio
Comment options

Running it in a normal shell would show you a proper traceback.
The Theben test-project has no building schema defined. xknxproject seems to expect one.
But this is the wrong repository to discuss this...

Answer selected bymonde38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@monde38@farmio

[8]ページ先頭

©2009-2025 Movatter.jp