Comments (8)
I lately found out about the improved GA export of ETS5 (compared to ETS4) which now spits out a properly formatted utf-8 encoded XML file, which can be parsed very nicely. Thinking about going the web UI way again.
from homebridge-knx.
Back-ref to ratzi82's post:
from homebridge-knx.
A friend of mine wrote a node script to do this...
Works like a charm. I have used it to generate a file for my home with 50 accessories in HomeKit.
Will ask if he wants to upload.
tss68nl tested this also on his home. Script might neede some generilisation but it does the job.
from homebridge-knx.
"A Friend" here ...
I'm more than happy to share the script, if you tell me where I can commit it ...
The script does make a number of assumptions, of which maybe a couple can be generalized or configurable:
- .esf export file needed of ETS config
- it ignores group-addresses which lie beyond x/y/200. Because that's where we program group functions.
- the structure of group addresses (x/y/z) needs to be as follows (the names can be made configurable)
- x = "lights", "sockets", "screens and drapes", "values"
- y = depending on the type of X: "on/off", "on/off feedback", "dimming absolute", "dimming feedback", "open/close absolute", "open/close feedback", "direction feedback"
- z = name of controlled item. (f.e. "Living room")
You'll have multiple group addresses for a single dimmable light f.e.:
- 1/1/1: on/off
- 1/2/1: on/off feedback
- 1/3/1: relative dimming (not used for homekit, and thus not by the script)
- 1/4/1: absolute dimming
- 1/5/1: dimming feedback
The script will map all these together as long as the same name in the z part of the group address is used.
Everything has been tested, except for the "screens and drapes"
from homebridge-knx.
nothing keeps you from being a little creative with find and replace in MS Excel or Notepad++ ofcourse ;)
Saves you some time even if the script is not generalized...
from homebridge-knx.
Hi @hyperbart
I played with that some time ago.
My conclusion was:
- if you import all the GA's from ETS, you need some kind of fancy user interface to allocate the addresses to the objects
- if you do not have such an interface, you need to prepare the descriptions/names of the GAs to match a pattern for automatic allocation.
Tried both. First died of too little spare time, second is exactly as much work as doing it by hand in a config file. Which can be done in Excel as well.
Of course you are welcome to help with either alternative anyway. Currently I am trying to get more flexibility into the configuration, and allow users to write little service add-ins.
from homebridge-knx.
@snowdd1 completely correct.
Your overpriced competition at Thinka ;) has solved this by putting a web-GUI in front of it which allows you to map GA's to a function and I guess they generate a config file afterwards.
It's a complex matter nevertheless, you're right :) . I thought maybe it would be possible to "deduct" something out of the KNXPROJ file to get this to work but since I am a little bit more up to speed I do see the issues that might arise :) .
from homebridge-knx.
This idea sounds great!
Should be possible to derive the function of the GA from the name it has in the ETS Project. The web-GUI could propose the functions and the user just needs to check and adapt if any information has been interpreted wrong.
User could then choose, which devices to add to the final config file for Homebridge.
from homebridge-knx.
Related Issues (20)
- Neuer KNXSceneSelectorSwitch Handler AddIn HOT 3
- no status update on HomeKit HOT 2
- Humidity (9.007) shows wrong in Home.app HOT 4
- Controlling window covering without current and target position information
- ADDIN without reaction HOT 2
- HomeKit Sensor Status HOT 2
- strange issue with Siri voice command. HOT 1
- Question: Possibility to use KNX Address/UUID as Serialnumber HOT 1
- Question: Thermostat - How to red current temperature value with 0.1 degrees step? HOT 2
- Save the state of some lights HOT 1
- Group Address Level-2
- Question: Temperature is updated on start-up only
- How to configure devices for specific rooms HOT 4
- Lastest version of this plugin (0.3.27) can only run on an old version of homebridge >=0.4.28 <= 0.4.53 and Node 10 HOT 1
- GarageDoorOpenerAdvanced Rückmeldung Kontakt funktioniert nicht richtig HOT 12
- Homebridge Crash (AssertionError) after upgrading to v0.4.3 HOT 10
- v0.4.3 Status Jalousien HOT 5
- TypeError: Cannot read properties of undefined (reading 'knxd') HOT 1
- Deleted Property "MinValue" still throws errors after deleting/updating JSON-file. HOT 1
- KNX Typescript support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-knx.