GithubHelp home page GithubHelp logo

iobroker.knx's Introduction

Logo

ioBroker.knx

NPM version Downloads

NPM

Table of content

Description

en: This adapter allows importing of knxproj Files from ETS. It generates the translation between KNX- group addresses and ioBroker and puts the devices into rooms (esp. for MobileUI).

ru: Установка и базовая настройка адаптера

It connects to standard KNX/LAN Gateways.

Attention: with changing to KNX-Adapter Version 2.x the licensing has been changed. You can get a new license from https://iobroker.net

You also should update iobroker js-controller AND admin to the latest version.

Before beginning: Every DPT of com.Objects should be set in your ETS project. Every device should be sorted into your facility structure.

Requirements

  • node Version >= 14.15.4
  • admin Version >= 5.2.0
  • js-controller Version >=3.3.20

Without this requirements, the adapter is not installable or will work not properly.

License requirements

For <500 datapoints there is no need of registration or adding a license key. If you have more then 500 datapoints you need a license. You can choose
between yearly and permanent licence.

To use this adapter in ioBroker you need to accept the source code license of the adapter. The source code of this adapter is available under the CC-NC-BY license.

Additionally you need a license to use the adapter. The license editions are available on https://iobroker.net/www/pricing

Features

  • importing knxproj file
  • generating ETS-like object structure
  • finding and combining act-channel and state-channel (heuristic)
  • updating all states on start
  • no cloud or internet needed
  • emitting a READ to the KNX-Bus, while writing on state-object
  • edit and modify GA objects with GA-Tools
  • edit and modify state-act relations with GA-Tools
  • NEW: allow non-KNX State direct link (vice-verse)
  • NEW: adapter responses to GroupValueRead to a directLink connected object
  • NEW: import of passwort protected project files (thanks to aKzenT)

###Installation This adapter is only installable with npm. Installation via github does not work.

##Adapter configuration After installing this adapter, open the adapter configuration.

###Install the License The first step is to apply the license. If you have not installed a license, then 500 Datapoints are applied.

  • (1) shows your System ID, you need this to get a license
  • (2) click here to apply your license

knxV2-first-start-mod

If you already have created a new license under https://iobroker.net, then you can paste it in (2), OR you can aquire it directly online by clicking on (1)

knxV2-2-1-Install-License-mod

If you have clicked on (1) enter your iobroker.net account login.

knxV2-2-2-Install-License-online-mod

If your data have been correct, you will see all your licenses you got. Choose the one you want to use.

knxV2-2-3-Install-License-online-mod

If this was succesfull, save it.

knxV2-2-4-Install-License-online-mod

Thats all. Click on the button to save on the bottom of this page.

Configuration Interface

knxV2-2-5-Install-License-online-applied-mod

  1. KNX-Gateway IP: IPv4 of KNX-LAN Gateway.
  2. KNX-Gateway port: Default is Port 3671.
  3. physical address: Physical address of iobroker knx instance ! important: this is not the phys. address of the LAN Gateway ! and May not end in 0
  4. KNX packages per second: this limits the package rate. If KNX Lan Gateway reconnects to much or is temporarly not accessable, then reduce this rate.
  5. local iobroker IP: select the IP / Interface on which the adapter will be bound
  6. loglevel: normaly is level "Info", for debugging increase the level.
  7. only import new Datapoints: this is enabled by default. In case of disabling new GA's will be generatet AND existing GA's will be recreated.
  8. button upload file: drag'n drop is available here or on click the filechooser dialog. Here you can upload your ETS Export in knxproj format. After successful import a dialog shows the number of imported objects. Now press "save & close" and the adapter should start. While starting the adapter reads all group addresses with read-Flag and write-Flag. This might take a while and can produce a high load on your KNX-bus. But the values in your vis are updated after start. Uploading a password secured file is not yet available.
  9. Host-ID: this is a special ID of iobroker host. This ID is neccessary for generating and validating the license
  10. GA-Tools: toolbox for fast changing GA's

Objects

Here is under knx.0 the group address tree like in your ETS project. For modifying the properties, use GA-Tool.

Usage

If the adapter starts successfully, your data points will be available for everything you like to do.

Data point Types (DPT)

All DPTs according to "System Specifications, Interworking, Datapointtypes" from KNX Association are available. That means there are 2 types of information you can get:

  1. a Value or a String
  2. comma-separated values or an array of values (for the moment I don't know what's the better way to handle)

For example a DPT5.001 is encoded as unsigned Integer with 8-Bit. This gives a single Value. The DPT3.007 (Control Dimming) is encoded as 1Bit(Boolean)+3Bit(unsigned Int). This results e.g. in a value like "0,5", where "0" means "decrease" and "5" means number of intervals.

How the import works

  1. reading of all communicationobjectreferences (COR): combining of groupadressreference ID'd with DPT of corresponding COR (if exists).

  2. generation of groupaddress structure(GAS): generating the GAS based on GAR IDs and setting DPT (if not done yet)

  3. finding state an act addresses: in ets-exports are no informations about state and act addresses.The adapter parses all GA's of "status" or "state". If there are 2 GA's with a similarity more than 90%, then one address will be act and the other one the state. There is also a check if the DPT's are similar. Thats why its not easy to find a peer, if GA naming is not consistent.

  4. Flag check in deviceconfiguration: the flags are handled as follows:

    KNX iobroker
    Read Write Transmit Read Write Explanation
    - - - - - the value will be updated by GroupValueRead
    x - - x x sending any value on this state trigger a GroupValueRead
    - x - - x write the value to KNX with GroupValueWrite
    - - x x - the state value will be updated by GroupValueResponse
    x - x x x sending any value on this state trigger a GroupValueRead
  5. Creation of datapoint peers (DPP): A DPP will be created if GA, GAR and DPT are valid. This are the DPP the adapter is working with. If DPT is missing in a GA, because it couldn't be found, then the DPP will not be created. It can be done with GA-Tool.

  6. at adapter start: all GA's marked with "Read" Flag are checked at start. This can affect a higher bus traffic. In the end are all states up to date.

###Avoidance of problems

  • clean ETS programming and more important clean ETS programming and most important clean ETS programming
  • Assign the DPTs!!
  • uniform labeling of the GA names (e.B "EG Wohnen Decke Licht schalten" and "EG Wohnen Decke Licht schalten status" )
  • Avoidance of special characters ",./;&%$§[]" (may cause problems with the generation of gas)
  • Check if the KNX/LAN GW is reachable. If it is not, the adapter tries to connect continuously.
  • Correctly select physical address ( important when using line couplers ). !!! ATTENTION: the physical address entered here is NOT the address of the LAN Gateway and must not end in 0 !!!
  • The port of the LAN interface is usually 3671
  • Due to the possibility of status query, one thing must be noted: It must be ensured that no more than 40 requests per second are generated by the ioBroker, because these can then be physically generated can no longer be passed on to the gateway by the adapter.

GA-Tool

The GA-Tool makes it easy to change properties of GA's.

knxV2-3-6-GATools-mod

  1. shows the GA tree and selected GA
  2. in the property section the name of selected GA
  3. set iobroker flags
  4. set GA DPT
  5. recognized act GA
  6. recognized state GA

knxV2-3-2-GATools-mod

  1. show the state-act relation
  2. if relation exists then it can removed

If no relation exist, then can be created a new one by clicking (2) for selected GA (1). In the dialog (3) can the peer selected

knxV2-3-5-GATools-mod

If there are more GA's to change properties, use multiselect. This feature works only for GA's with no relation.

knxV2-3-4-GATools-mod

  1. selected GA's
  2. properties to change
  3. there is no change possible

Direct Link non-KNX state to KNX vice-verse

Since Adapter Version 2.0.6 it is possible to link a non KNX ioBroker state directly to a GA. This can be used to apply time, date, any states or infos to KNX. (a small hint: you can link any of your IOT components directly to a GA in KNX (f.e. link a homematic button to a KNX GA or link a KNX buttonsensor to
your sonosplayer)). The states can be read with a GroupValueRead and if the states changes it will be automaticly updated on KNX. Also if you change on KNX it will update the linked non KNX iot device.

knxV2-3-7-GATools-Directlink-mod

  1. select the GA to connect to
  2. show the selected GA
  3. this GA must have write attribute
  4. choose a valid datapointtype (if they don't match, it will not work)
  5. it is not allowed to have a act-state relation
  6. button to select a non KNX object to link with

knxV2-3-8-GATools-Directlink-mod

  1. select the non-KNX object you want to link
  2. hit ok, if you're done

knxV2-3-9-GATools-Directlink-mod

Now is KNX-GA (1) directly linked with non-KNX iobroker (2). With (3) you can delete this relation.

Planned features

  • esf-import
  • GA-Mon bus monitoring tool

Changelog

2.0.27 (02.05.2024)

  • updated the adapter import schema for ETS 6.2.2
  • fixed UTF-8 error

2.0.26 (28.03.2024)

  • updated the adapter import schema for ETS 6.2.1
  • nodejs >= 18 is required

2.0.25 (03.03.2024)

  • updated the adapter import schema for ETS 6.2.0
  • small bug-fixes

2.0.24 (24.11.2023)

  • updated the adapter import schema for ETS 6.1.1

2.0.23 (11.10.2023)

  • corrected wrong GW Port after adapter upgrade
  • allow self-defined values for min and max
  • some small other fixes

2.0.22 (04.07.2023)

  • added import specification, solved problems in GaTools

2.0.21 (17.06.2023)

  • fixed license handling

2.0.20 (16.06.2023)

  • fixed license handling with js-controller Version > 5

2.0.19 (29.05.2023)

  • added ETS V6.1.0 import
  • required node version >= 16.13.1

2.0.18 (08.04.2023)

  • fixed send-delay
  • small changes

2.0.17 (14.10.2022)

  • added ETSv6.0.6 import
  • major changes in Adapter Config UI
  • fixed change of port settings for LAN-GW

2.0.16 (04.09.2022)

  • added ETSv6.0.5 import

2.0.15 (02.06.2022)

  • fixed import error with extrem large KNX catalogue files
  • fixed unrecognized connection breaks

2.0.14 (08.04.2022)

  • added ETSv6.0.4 (override 6.0.3)
  • small bugfixes

2.0.13 (12.03.2022)

  • added ETSv5.7.7 import
  • fixed "unknown value" bug
  • some other small fixes

2.0.12 (25.02.2022)

  • fixed handling of undefined DP
  • updated datapointtypes
  • fix warning with incompatible DPT in future
  • the biggest issue of all: I get shocked because of the war in Ukraine. My thoughts are with the people of Ukraine, I am infinitely sorry for what is happening to them and their country. It is an inhuman shame.
  • can't fix it, but I appeal to everyone: Be neighbors and not enemies. Respect the other and do not fight yourselves.

2.0.11

  • fixed password handling for projects from upgraded ETS

2.0.10

  • import of ETS6.0.2 projects ETS6.0.1 not possible
  • bugfixes

2.0.9

  • import password protected project files
  • bug fixes

2.0.8

  • fixed bug with unackn write
  • fixed bug in linkedState

2.0.7

  • fixed bug with unable to write on KNX

2.0.6

  • fixed problem on ETSv6 import
  • many small bugfixes
  • implemented GA-Tools directLink feature

2.0.5

  • fixed problem on ETSv4 import
  • corrected some messages
  • corrected DPT14.x min and max range

2.0.4

  • fixed DPT9.xxx calculation
  • implemented date-and-time DPT19.00x
  • fixed confusing "no license error"
  • small bugfixes

2.0.3 (2021-12-04)

  • fixed counting 1st Datapoint
  • automaticly remove old V1 license", preventing confusion after upgrade from V1 to V2

2.0.1

  • fixed problem with license acceptance

2.0.0 (2021-11-15) Major release

  • Breaking change! => new license is neccessary V1 Licenses will not work => V1 business Licenses can changed to V2
  • complete refactoring of knx-admin
  • added Tool for handling GA in knx-admin
  • fixed many bugs (in knx-stack, on importing ETS Projects, reconnect and timeouts)
  • added new datapoint types
  • added import till ETS V6
  • changed license management

1.0.46 (2021-03-23)

  • New admin GUI

1.0.45 (2021_03_22)

  • import of ETS v5.7.5 projects

1.0.44 (2021_01_22)

  • fixed act and state handling
  • added some new datapoint types
  • fix facility and room recognition and device allocation

1.0.42 (2020_09_03)

  • Fixed problem with missing index_m.html

1.0.41

  • fixed bug on GroupValue_Response event
  • corrected connection to Gira GW

1.0.40

  • fixed some import errors for ETS 5.7.x
  • fixed bug on GroupValue_Response event

1.0.39

  • fixed import error

1.0.38

  • fixed some bugs on import
  • show warning if import-file ist password protected

1.0.37 (2010-01-31)

  • update for ETS 5.7.3 import

1.0.36 (2019-10-16)

  • some bugs fixed

1.0.35 (2019-09-15)

  • fixed permanent reconnects, if no traffic on knx-bus

1.0.34 (2019-09-15)

  • changes on importer for detecting project-id

1.0.33 (2019-09-12)

  • fixed bug while writing to bus
  • added units to states
  • fixed "read/write of undefined" error

1.0.32 (2019-09-03)

  • updated importer for ETS V5.7.2, some changes in KNX-stack state-machine

1.0.31

  • some fixes on ETS5.7.2 importer
  • small changes in knx-stack statemachine
  • added (again) phys address to admin config dialog
  • fixed bug in deviceTree generation

1.0.30

  • new Importer for ETS5.7.2 knxproj files
  • extended accepted Data point types
  • new adapter configuration menu
  • implemented a switch for the user to decide to use "true" and "false" or "0" or "1" for binary values
  • fixed bug in GroupValue_Read
  • implemented a selector for local network interface for KNX to Gateway communication
  • extended State Object for later features
  • fixed some small other bugs

1.0.20

  • fixed bug in handling KNX-data packages, which occurs periodical reconnects
  • fixed bug in KNX-project file upload procedure

1.0.19

  • reverted to true/false handling for DPT1.x

1.0.18

  • fixed upload issue with ETS5.6.x project files
  • switched values for "boolean" from 1 and 0 to true false
  • fixed recognition of role set for DPT1.x to switch
  • fixed DPT16.xxx writing to KNX-Bus with values < 14Byte

1.0.17 (2018-08-16)

  • Better state processing
  • Add configurable package rate
  • corrected Bug in "import only new objects"

1.0.15 (2018-07-18)

  • change ChID on reconnect
  • on Startup read wait for response of State channel or timeout

1.0.13 (2018-07-04)

  • elimination of special signs while importing
  • small bug-fixes

1.0.12 (2018-06-19)

  • reduced and sorted log output
  • small bug-fixes
  • NEW Feature: request State/Val of stateObject from KNX-Bus

1.0.11 (2018-05-27)

  • fixed DPT1 correcting value problem
  • fixed reconnect problem
  • other small optimizations and fixes

1.0.10 (2018-05-04)

  • closing local port in case of undefined connection state
  • added advanced debug-level via adapter-config
  • many fixes

1.0.9 (2018-04-29)

  • changed to state-wise processing
  • fixed "disconnect-request"
  • changed connection handling with knxd
  • many small fixes

1.0.8 (2018-04-04)

  • modified package queue
  • fixed ACK if sending to KNX-Bus
  • many small fixes

1.0.7 (2018-03-16)

  • fixed Adapter-lock while uploading projects

1.0.6 (2018-03-11)

  • fixed connection problem
  • corrected package counter

1.0.5 (2018-03-01)

  • fixed empty objects, related to DPT1 (error message [object Object] unknown Input value)
  • fixed path variable
  • fixed bug with GA's containing a "/" in the name (on proj-import)
  • start implementing crosswise property update on corresponding DPT (on proj-import)

1.0.4 (2018-02-27)

  • schema update for room enumeration coming up with ETS 5.6

1.0.2 (2018-02-27)

  • kleine Fehler beseitigt

1.0.1 (2018-02-26)

  • fixed certificate error

1.0.0 (2018-02-25)

  • substitution of used KNX-stack with own from scratch build stack
  • implemented full scale of DPT according to "System Specifications, Interworking, Datapointtypes" from KNX Association
  • hardening connection handling for tunneling connections
  • upgrade Adapter-configuration Interface to be ready with Admin3
  • removed "Delay Slider" because of the new knx-stack
  • many other small changes
  • fixed post-comma values to scale-value of DPT
  • implemented "add" mode for knxproject upload (existing Objects stay as they are, only new Objects where added)

0.8.6 (2017-06-17)

  • some small bug-fixes
  • insert slider to set a sendDelay for slow KNX/LAN Gateways to prevent connection loss

0.8.5 (2017-06-05)

  • project loader rebuild, dpt13-fix

0.8.3 (2017-04-24)

  • added act channel update of corresponding state
  • fix bug in state-vis update
  • optimized knxproj upload

0.8.2 (2017-02-26)

  • implemented device-config parsing from knxproj
  • better choice of state/val of DP objects

0.8.1 (2017-02-06)

  • fixed DPT1 switch problem

0.8.0 (2017-02-xx) comming soon

0.7.3 (2016-12-22)

  • (chefkoch009) more DPT's are supported
  • faster Startup
  • implemented generation of room list with device dependencies

0.7.2 (2016-11-20)

  • (chefkoch009) added necessary dependencies

0.7.1 (2016-11-19)

  • (chefkoch009) Support standard KNX/LAN Gateways.

0.7.0 (2016-10-13)

  • (chefkoch009) Support of project export

0.6.0 (2016-07-20)

  • (chefkoch009) redesign

0.5.0

  • (vegetto) include vis widget

0.4.0

  • (bluefox) fix errors with grunt

0.2.0

  • (bluefox) initial release

Exceptions and errors

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.
For more details and for information how to disable the error reporting see Sentry-Plugin Documentation!
Sentry reporting is used starting with js-controller 3.0.

The developer is not able to get any further special informations about the system/config/user/enviroment. In case no license is found the adapter version and host id is also reported.

Many thanks for support and help

  • bluefox
  • foxriver76

License

The CC-NC-BY License (CC-NC-BY)

Copyright (c) 2016-2023 K.Ringmann [email protected]

THE WORK IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.

BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.

Read full license text in LICENSE

iobroker.knx's People

Contributors

anzic23 avatar apollon77 avatar aurodionov avatar chefkoch009 avatar foxriver76 avatar garfonso avatar germanbluefox avatar hobbyquaker avatar m439 avatar owagner avatar skrutzler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.knx's Issues

Packet loss and reconnect problem

Hi,

I am using ioBroker.knx 1.0.11. Unfortunately, I encountered packet loss and lots of the following log file entries:

knx.0 | 2018-06-14 23:38:31.599 | info | Connected! with 245 datapoints of 539 Datapoints over all.

This is the detailed log:
knx.0 | 2018-06-14 23:29:13.672 | info | Connected! with 245 datapoints of 539 Datapoints over all. knx.0 | 2018-06-14 23:29:13.672 | info | Change state from STATE_CONNECTION_STATE_RESPONSE(6) to STATE_READY(7) knx.0 | 2018-06-14 23:29:13.672 | info | Change state from STATE_CONNECTION_STATE_REQUEST(5) to STATE_CONNECTION_STATE_RESPONSE(6) knx.0 | 2018-06-14 23:29:13.672 | info | Received CONNECTIONSTATE_RESPONSE : 06 10 02 08 00 08 07 00 192.168.178.103:3671 ChID : 7 SeqCntIN : 157 SeqCntOUT : 200 msgCode : [ob knx.0 | 2018-06-14 23:29:13.671 | info | Change state from STATE_READY(7) to STATE_CONNECTION_STATE_REQUEST(5) knx.0 | 2018-06-14 23:29:12.775 | info | Change state from STATE_READY(7) to STATE_READY(7) knx.0 | 2018-06-14 23:29:12.775 | info | ( 4 ) Sending Tunnel_Request ACK : 06 10 04 21 00 0a 04 07 9d 00 ChID : 7 SeqCntIN : 157 SeqCntOUT : 200 msgCode : [object Object] knx.0 | 2018-06-14 23:29:12.775 | info | WRITE : mappedName : Windgeschwindigkeit dest : 6/1/4 val: 0 (DPT9.005) Windgeschwindigkeit

Any ideas? Thanks in advance.

Nach Umstieg auf iobroker.knx version 1.0.17 klappt Einlesen der Projektdatei nicht

Hallo,
hatte bisher die version 0.8.6 wo sich die knxproj einlesen ließ. Hatte nun auf version 1.0.17 upgedated und den knx Adapter sowie die Instanz komplett neu installiert.
Beim Hochladen der knxproj Datei, die unter 0.8.6 klaglos eingelesen wurde, gibt es nun scheinbar Probleme. Das Hochladen findet keinen Abschluss. Es gibt 1502 Objekte und selbst nach einer 1/2 Stunde ist das Einlesen nicht abgeschlossen. Es erscheint weiterhin der waagerechte Rollbalken der andeutet, dass der Einlesevorgang noch stattfindet.
Wenn ich dann aus dem Dialog mit "schließen" herausgehe, wurde offenbar überhaupt kein Objekt angelegt.
Es ist nur das "connection" Objekt im Ordner Info von knx.0 vorhanden.
Eine Fehlermeldung erschien dabei nicht. Woran kann das liegen?

Lizenz ist Eingetragen wird als ok bestätigt. Die Verbindung zum TCPIP Bus via KNX2TCPIP Gateway scheint zu funktionieren. Im Log erscheinen Warnungen über Werte die vom KNX kommen, für die es aber keine Objekte gibt, da sich die halt nicht einlesen lassen.
Gibt es einen Debug Modus beim Einlesen?

Admin ist bei mir Version 3.4.7
javascript ist 3.6.4
Node.js ist Version 8.11.4
npm ist Version 4.6.1

Danke für jede Hilfe, Gruß
Axel

Übersetzungstabelle für GA Import einführen

Hallo,

da es bei dem Import der knxproj Datei immer wieder zu Fehlern beim Import kommt, wäre es vielleicht sinnvoll die Zuordnung nicht fix im Code zu hinterlegen, sondern eine Zuordnungstabelle zu haben.

Sprich der Anwender kann die Tabelle vor dem Import an sein Projekt anpassen, damit die GA´s richtig zugeordnet werden. Dann muss man auch bei einem erneuten Import nicht wieder alles prüfen.

Bsp. "Licht Schalten" wird zum Schalten verwendet und auch erkannt. Die Rückmeldung trägt den Namen "Licht RM" und wird vom Adapter nicht als solche erkannt, da nach "Status" gesucht wird. Wenn ein Sperrobjekt zwischen der Gruppenadresse Schalten und Status liegt, läuft der Import völlig schief.
Wenn man im Vorfeld eine Tabelle anlegen könnte und dem Adapter die Vorgabe machen könnte, dass RM (Rückmeldung) = Status ist und SP (Sperren) ein Sperrobjekt usw. könnte der Adapter das Projekt fehlerfrei importieren.
Ebenso könnte man die Objekte für Rollläden, Jalousien usw. hinterlegen um den Import sauber gestalten zu können.

newer version available

Hi ioBroker team,

I've just released version 2.0 of knx.js which contains multiple features incl. throttling (when writing to TP1, you should restrain yourself to 9600bps)

Please link to the knx package as a npm dependency instead of raw copying the package under lib/connector. In 1.2.0 there's a nasty race condition that prevents writing multiple telegrams to the wire, which especially affects slower devices like the Raspberry. Please see:
https://bitbucket.org/ekarak/knx.js/issues/15/fsm-not-transitioning-into-waitack-after

You can keep package stability by using a absolute version in the package.json dependency section:

  "dependencies": {
    "knx": "2.0.0",

Thanks

Datatype 7.600 Color Temperature K is not working

Datatype 7.600 Color Temperature K is not working not sending or receiving of the Datatype possible

{
  "_id": "knx.0.EG.WZ-2-FK",
  "type": "state",
  "common": {
    "name": "WZ-2-FK",
    "type": "",
    "read": false,
    "write": true,
    "role": "level",
    "min": 2000,
    "max": 6000
  },
  "native": {
    "dpt": "DPT7.600",
    "address": "2/0/57",
    "addressRefId": "P-02D7-0_GA-371",
    "statusGARefId": "P-02D7-0_GA-377",
    "actGARefId": ""
  },
  "from": "system.adapter.knx.0",
  "user": "system.user.admin",
  "ts": 1539459026925,
  "acl": {
    "object": 1636,
    "state": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator"
  }
}

adapter also crashes after import:

2018-10-13 21:15:13.431 - error: Caught by controller[1]: DPT.js isDPT undefined : DPT[12.000]
--
2018-10-13 21:15:13.432 - error: Caught by controller[2]: DPT.js isDPT undefined : DPT[7.600]
2018-10-13 21:15:13.432 - error: Caught by controller[3]: DPT.js isDPT undefined : DPT[249.600]
2018-10-13 21:15:13.432 - error: Caught by controller[4]: DPT.js isDPT undefined : DPT[7.600]


2018-10-13 21:15:13.437 - error: Caught by controller[49]: DPT.js isDPT undefined : DPT[7.600]
2018-10-13 21:15:13.437 - error: host.raspberrypi instance system.adapter.knx.0 terminated with code 156 ()

Ohne Fehlermeldung keine Funktion mehr

Hallo Chefkoch,
mein KNX Adapter / Instanz stellt ohne nachvollziehberen Grund den Dienst ein. Es macht sich erst bemerkbar wenn KNX Befehle gesendet werden sollen und die Aktoren nicht reagieren. Dann hilft ein "Neu lden" der Instanz nicht weiter. Die Instanz muss gestoppt und dann wieder neu gestartet werden. Dannach findet man folgende Einträge im Log:

knx.0 2018-03-01 09:42:51.310 info Connected!
knx.0 2018-03-01 09:42:51.070 info /opt/iobroker/node_modules/iobroker.js-controller
knx.0 2018-03-01 09:42:51.069 info Connecting to knx GW: 192.168.178.40:3671 with phy. Adr: 15.15.250 and SendDelay of : 50 ms
knx.0 2018-03-01 09:42:51.069 info starting. Version 0.8.6 in /opt/iobroker/node_modules/iobroker.knx, node: v8.9.4
host.raspberrypi 2018-03-01 09:42:49.305 info instance system.adapter.knx.0 terminated with code 6 (uncaught exception)
Caught 2018-03-01 09:42:49.305 error by controller[0]: at Object.onceWrapper (events.js:315:30)
Caught 2018-03-01 09:42:49.305 error by controller[0]: at process.stop (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4692:21)
Caught 2018-03-01 09:42:49.305 error by controller[0]: at Object.unload (/opt/iobroker/node_modules/iobroker.knx/knx.js:1:11129)
Caught 2018-03-01 09:42:49.305 error by controller[0]: at fsm.FSM.Disconnect (/opt/iobroker/node_modules/iobroker.knx/lib/knx-mod/src/Connection.js:252:8)
Caught 2018-03-01 09:42:49.305 error by controller[0]: at fsm.Fsm.(anonymous function) [as transition] (/opt/iobroker/node_modules/machina/lib/machina.js:466:63)
Caught 2018-03-01 09:42:49.304 error by controller[0]: at fsm.transition (/opt/iobroker/node_modules/machina/lib/machina.js:653:28)
Caught 2018-03-01 09:42:49.304 error by controller[0]: at fsm._onEnter (/opt/iobroker/node_modules/iobroker.knx/lib/knx-mod/src/FSM.js:118:14)
Caught 2018-03-01 09:42:49.304 error by controller[0]: at fsm.FSM.send (/opt/iobroker/node_modules/iobroker.knx/lib/knx-mod/src/Connection.js:186:15)
Caught 2018-03-01 09:42:49.304 error by controller[0]: at Socket.send (dgram.js:435:8)
Caught 2018-03-01 09:42:49.304 error by controller[0]: at Socket._healthCheck (dgram.js:637:11)
Caught 2018-03-01 09:42:49.304 error by controller[0]: Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
host.raspberrypi 2018-03-01 09:42:49.237 info instance system.adapter.knx.0 started with pid 4785
host.raspberrypi 2018-03-01 09:42:49.207 info object change system.adapter.knx.0
host.raspberrypi 2018-03-01 09:42:48.189 info stopInstance system.adapter.knx.0 killing pid 1843
host.raspberrypi 2018-03-01 09:42:48.188 info stopInstance system.adapter.knx.0
host.raspberrypi 2018-03-01 09:42:48.187 info object change system.adapter.knx.0

ioBroker läuft auf einem neuen Raspberry pi 3 mit 64 GB Karte. Version Admin 2.0.9, KNX 0.8.6
Kann jemand helfen? Wo liegt der Fehler?

Eben spielte der Adapter komplett verrückt. Er stoppte und startete immer wieder. Ich habe die komplette Instanz gelöscht und wieder aufgespielt. Dabei sind unzählige Fehlermeldungen entstanden. Das Log vom heutigen Tag habe ich angehangen.

iobroker.2018-03-01.log

Type of state must be predefined.

After import of KNX project I have many states without known type of state (e.g. number or boolean).
This field is required for normal functionality of ioBroker.
Please fill it automatically.

Changing objects from mqtt does not send to knx

Hello,

i don't know where exactly the Problem ist, but i try to explain.

I have two adapters knx an mqtt, both of them are working flawless alone, and every change of knx is send to mqtt without Problem. But if i send a knx.object via mqtt, the object in iobroker is changing, but not send to knx.

Hope this explains the Problem clear.

Improvement: dpt16.000 works only with 14 Byte Strings

Strings which are shorter then 14 Bytes are not written to the KNX bus. So I had to write a little preprocessor function which fills the missing Bytes with 0x00. Maybe such a function can be included in the next version of the knx adapter?

Iobroker sendet keine Werte unter 28%

Hallo. Super Arbeit.
Eins treibt mich aber in den Wahnsinn.
Schalten funktioniert super. Aber wenn ich meine Leuchten auf einen Wert setzen will (Alexa Sprachsteuerung), der unter 28% liegt, passiert gar nichts. Alle werte drüber gehen. Das gleiche passiert, wenn ich meine Rollläden auf eine bestimmte höhe fahren will.
Gebe ich einen Wert in die ETS ein und sende ihn, klappt alles super.
Wenn ich den Wert, den ioBroker sendet im Busmonitor beobachte, ist der niedrigste angezeigte Wert 29.95%. Was mache ich falsch?

KNX-Adapter bringt Fehler im IOBroker Log - kann aber Werte lesen, nicht schreiben

Hallo,

ich habe vorgestern IOBroker und den KNX-Adapter mit IOBroker installiert.
Mit openHAB 2.1 geht KNX. Beim IOBroker werden mir zwar Werte vom KNX-Bus angezeigt, aber wenn ich etwas schalten (also schreiben) will, wird der Wert vom KNX-Bus wieder gesetzt.

Im Log steht, dass er eine "uncaugth exception" hat. "Cannot read property '_id' of undefined".

Ein Eintrag im IOBroker-Forum habe ich hier gepostet:
http://forum.iobroker.net/viewtopic.php?f=20&t=7726

Was läuft da schief?

Viele Grüße und vielen Dank vorab
Tucca

io-package.json WRONG!!

hey,

can it be that io-package.json was wrongly overwritten by package.json content? it is NOT correct for iobroker io-package!!

Verknüpfung von STATUS Objekt und AKTIONs-Objekten nicht korrekt

Ich habe einen Dimmer und die Objekte passend zu https://github.com/ioBroker/ioBroker.knx/ angelegt, so dass Schalt- und Statusaddressen entsprechend identifiziert werden können

Es gibt 5 GAs/KOs, die für Dimmen und Schalten des Dimmerkanals zuständig sind, zwei davon sind STATUS Objekte.

  1. Schalten AKTION: Schaltet EIN/AUS
  2. Schalten STATUS: Gibt den Schaltstatus auf dem KNX Bus aus.
  3. Dimmen ABSOLUT: Erhöht/verringert den Dimmwert
  4. Dimmen RELATIV: Setzt einen Dimmwert
  5. Dimmen STATUS: Gibt den aktuellen/geänderten Dimmwert auf dem KNX Bus aus

So sieht das in ioBroker aus:
dimmer objects
Unten zeige ich die RAW Werte.

Beim Dimmen wird eine Änderung von "Dimmen STATUS" (5.) mit dem falschen Aktionsobjekt verbunden, mit (4.) statt mit (3.)
Wie kann das korrigiert werden?

Schalten AKTION: Schaltet EIN/AUS

{
"from": "system.adapter.knx.0",
"user": "system.user.admin",
"ts": 1531377225145,
"common": {
"name": "DG -Bad- Deckenauslass SCHALTEN",
"type": "boolean",
"role": "level",
"min": 0,
"max": 1,
"read": false,
"write": true
},
"native": {
"dpt": "DPT1.001",
"address": "1/4/50",
"addressRefId": "P-08AB-0_GA-179",
"statusGARefId": "P-08AB-0_GA-918",
"actGARefId": ""
},
"acl": {
"object": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"state": 1636
},
"id": "knx.0.Schalten.DG.DG-Bad-_Deckenauslass_SCHALTEN",
"type": "state"
}

Schalten STATUS: Gibt den Schaltstatus auf dem KNX Bus aus.

{
"id": "knx.0.Schalten.DG.DG-Bad-_Deckenauslass_SCHALTEN_STATUS",
"type": "state",
"common": {
"name": "DG -Bad- Deckenauslass SCHALTEN STATUS",
"type": "boolean",
"read": true,
"write": false,
"role": "indicator",
"min": 0,
"max": 1
},
"native": {
"dpt": "DPT1.001",
"address": "1/4/51",
"addressRefId": "P-08AB-0_GA-918",
"statusGARefId": "",
"actGARefId": "P-08AB-0_GA-179"
},
"from": "system.adapter.knx.0",
"user": "system.user.admin",
"ts": 1531377225149,
"acl": {
"object": 1636,
"state": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator"
}
}

Dimmen ABSOLUT: Erhöht/verringert den Dimmwert

{
"id": "knx.0.Dimmen.DG.DG-Bad-_Deckenauslass_DIMMEN_ABSOLUT",
"type": "state",
"common": {
"name": "DG -Bad- Deckenauslass DIMMEN ABSOLUT",
"type": "number",
"read": false,
"write": true,
"role": "level.dimmer",
"min": 0,
"max": 100
},
"native": {
"dpt": "DPT5.001",
"address": "2/4/52",
"addressRefId": "P-08AB-0_GA-182",
"statusGARefId": "",
"actGARefId": ""
},
"from": "system.adapter.knx.0",
"user": "system.user.admin",
"ts": 1531377226373,
"acl": {
"object": 1636,
"state": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator"
}
}

Dimmen RELATIV: Setzt einen Dimmwert

{
"id": "knx.0.Dimmen.DG.DG-Bad-_Deckenauslass_DIMMEN_RELATIV",
"type": "state",
"common": {
"name": "DG -Bad- Deckenauslass DIMMEN RELATIV",
"type": "",
"read": false,
"write": true,
"role": "level",
"min": 0,
"max": 1
},
"native": {
"dpt": "DPT3.007",
"address": "2/4/51",
"addressRefId": "P-08AB-0_GA-181",
"statusGARefId": "P-08AB-0_GA-1063",
"actGARefId": ""
},
"from": "system.adapter.knx.0",
"user": "system.user.admin",
"ts": 1531377226367,
"acl": {
"object": 1636,
"state": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator"
}
}

Dimmen STATUS: Gibt den aktuellen/geänderten Dimmwert auf dem KNX Bus aus

{
"id": "knx.0.Dimmen.DG.DG-Bad-_Deckenauslass_DIMMEN_STATUS",
"type": "state",
"common": {
"name": "DG -Bad- Deckenauslass DIMMEN STATUS",
"type": "number",
"read": true,
"write": false,
"role": "indicator.dimmer",
"min": 0,
"max": 100
},
"native": {
"dpt": "DPT5.001",
"address": "2/4/53",
"addressRefId": "P-08AB-0_GA-1063",
"statusGARefId": "",
"actGARefId": "P-08AB-0_GA-181"
},
"from": "system.adapter.knx.0",
"user": "system.user.admin",
"ts": 1531377226379,
"acl": {
"object": 1636,
"state": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator"
}
}

Source Code public

Seit Mai 2018 ist der Source Code nicht mehr öffentlich. Siehe https://forum.iobroker.net/viewtopic.php?f=36&t=3934&p=152318#p152318. Der Hintergrund ist nicht klar, in dem Post stand nur "keine Fragen dazu!". Andere Hinweise hatte ich nicht gefunden.

@chefkoch009 leistet aktuell tolle Arbeit den Adapter weiterzuentwickeln und zu stabilisieren. Ich halte es jedoch für kritisch, den Adapter als "one-man show" zu entwickeln. Irgendwann wird @chefkoch009 die Arbeit nicht mehr fortsetzen können oder wollen, und dann können u.U. vorhandene Installationen nicht mehr gepflegt oder neue Features aufgenommen werden.
Außerdem lässt sich die Arbeit so nur schwer auf mehrere Entwickler verteilen, wird nur durch eine Person geschultert.

Ich würde es begrüßen, wenn der Source Code wieder öffentlich wird.

Configuration without knxproj file

Hello,

I have an old installation based on Powernet and have set up my project with Powerproject. Since not all functions of my components are supported on ETS, I am still stuck with PP.
Is there a possibility to configure the KNX adapter directly e.g. by a JSON file?

Thanks, Sven

Lizenzhinweis-Fehler 404

Bei der Installation wird zwar ein Fenster geöffnet um den Lizenzhinweis zu zeigen, jedoch scheint die Verlinkung nicht mehr aktuell zu sein. Hier bekommt man als Information nur "Fehler 404".

File index_m.html not found

Hallo, ich versuche den Adapter zu installieren und immer kommt danach die Meldung File index_m.html not found.
Ich habe hier noch niemanden mit dem selben Problem gesehen, was mache ich falsch.

lg
Philipp

KNX-Projekt wird nicht korrekt eingelesen - Räume sind da, Funktionen nicht, roles und read/write werden "falsch" zugewiesen

Hallo Chefkoch,

zunächst einmal herzlichen Dank für den Enthusiasmus und den Aufwand, den Du in die (Weiter-)Entwicklung des iobroker.knx-Adapters steckst!

Noch bin ich Anfänger in der Nutzung von ioBroker, von daher weiß ich nicht, was die Ursache des folgenden Problems ist/sein könnte: beim Einlesen meines KNX-Projektes werden alle 614 enthaltenen GAs eingelesen und auch alle definierten Räume erkannt; soweit so gut. Funktionen werden aber keine angezeigt.

Wenn ich mir nun die 284 "lichtrelevanten" GAs (zu erkennen an der GA-Notation x/1/x mit den 142 "Schalten"-GAs (Notation x/1/..0) mit DPT 1.001 und den 142 "Status"-GAs (Notation x/1/..1) mit DPT 1.011) anschaue, dann wurden die "Schalten"-GAs mit "type": "boolean", "role": "value", "read": true und "write": false sowie die "Status"-GAs mit "type": "boolean", "read": false, "write": true und "role": "indicator" importiert - also die read/write genau falsch herum und die roles nicht korrekt. Wenn ich diese Daten manuell im ioBroker im Tab "Objekte" korrigiere, dann kann ich sie dort anschließend auch "schalten", das Signal wird korrekt auf den KNX-Bus übertragen und auch die Statusmeldung vom KNX-Bus zurück in den ioBroker erfolgt korrekt.

Ich konnte weder hier noch im ioBroker-Forum etwas finden, das mir weitergeholfen hat. Hast Du eine Idee, was ich - ggf. schon beim Aufsetzen der GA-Struktur in KNX - falsch oder ungeschickt mache oder wo sonst das Problem liegt, warum die Objekte nicht korrekt in den ioBroker importiert werden? Und müssten nicht neben den Räumen auch die Funktionen in ioBroker erkannt/angezeigt werden?

Ich nutze den ioBroker.knx in der aktuellen Version 1.0.17, die ETS in Version 5.6.6 und eine dreistufige GA-Struktur mit Raum/Gewerk/"Objekt", z.B.

  • GA = 24/1/0 mit dem Namen "24_1_000 ELW EG Gäste-WC / Licht E/A / Spiegelschrank - Schalten"
  • GA = 24/1/1 mit dem Namen "24_1_001 ELW EG Gäste-WC / Licht E/A / Spiegelschrank - Status"

Wie man sieht verwende ich im GA-Namen (und auch in der GA-Beschreibung) fleißig Sonderzeichen wie -/() und auch Umlaute. Dies scheint aber alles "sauber" in ioBroker eingelesen bzw. beim Einlesen durch "" ersetzt zu werden (siehe diese unveränderten ioBroker-Original-RAWs nach dem Einlesen):

{
"id": "knx.0.24_ELW_EG_Gäste-WC.24_1_ELW_EG_Gäste-WC___Licht_E_A.24_1_000_ELW_EG_Gäste-WC___Lichte_E_A___Spiegelschrank-_Schalten",
"type": "state",
"common": {
"name": "24_1_000 ELW EG Gäste-WC / Lichte E/A / Spiegelschrank - Schalten",
"type": "boolean",
"read": true,
"write": false,
"role": "value",
"min": 0,
"max": 1
},
"native": {
"dpt": "DPT1.001",
"address": "24/1/0",
"addressRefId": "P-0716-0_GA-201",
"statusGARefId": "",
"actGARefId": ""
},
"from": "system.adapter.knx.0",
"ts": 1546214212429,
"acl": {
"object": 1638,
"state": 1638
}
}

bzw.

{
"id": "knx.0.24_ELW_EG_Gäste-WC.24_1_ELW_EG_Gäste-WC___Licht_E_A.24_1_001_ELW_EG_Gäste-WC___Lichte_E_A___Spiegelschrank-_Status",
"type": "state",
"common": {
"name": "24_1_001 ELW EG Gäste-WC / Lichte E/A / Spiegelschrank - Status",
"type": "boolean",
"read": true,
"write": false,
"role": "value",
"min": 0,
"max": 1
},
"native": {
"dpt": "DPT1.011",
"address": "24/1/1",
"addressRefId": "P-0716-0_GA-202",
"statusGARefId": "",
"actGARefId": ""
},
"from": "system.adapter.knx.0",
"ts": 1546214212437,
"acl": {
"object": 1638,
"state": 1638
}
}

Allen GAs ist zudem ein DPT zugeordnet. Gerne schicke ich bei Bedarf die *.knxproj oder aber den CSV-Export der GAs.

Danke vorab und einen guten Rutsch in die Runde - ich freue mich auf Feedback und lerne gerne dazu!

Gruß,

JamesKowalski

Rückmeldeobjekte

Wie soll ich Rückmeldeobjekte ins ioBroker bringen? Wenn ich z.B. einen Slider im VIS einsetze um einen Dimmer zu räpresentieren, müsste der Slider von sowohl dem Dimmerobjekt als dem Rückmeldeobjekt beeinflusst werden. Geht das?

Hat das etwas mit "statusGARefId" zu tun?

DPT10 - Format Wochentag

Ich lese und schreibe die Uhrzeit und das Datum vom und auf den KNX Bus. Bei der Uhrzeit DPT10.001 verwende ich auch die Wochentage. Beim Auslesen der Uhrzeitadresse wird der Wochentag sowie die Uhrzeit richtig angezeigt, z.B "Fri, 10:00:01".
Die Uhrzeit kann ich im Format hh:mm:ss auf den Bus schreiben. Leider habe ich es nicht geschafft auch den Wochentag mit zugeben.

Welches Format muss ich verwenden um die Uhrzeit und den Wochentag auf den Bus zu schreiben?

Uncaught, unspecified "error" event. (no connection to KNX Bus)

Error: Uncaught, unspecified "error" event. (no connection to KNX Bus) at _0x23f245.emit (events.js:163:17) at _0x23f245.groupValueWrite (/opt/iobroker/node_modules/iobroker.knx/knx.js:17:3734

pmessage io.knx.0.Beleuchtung.OG.Licht_Decke_Schalten {"val":true,"ack":false,"ts":1523221207226,"q":0,"from":"system.adapter.yahka.0","lc":1523221207226} Uncaught, unspecified "error" event.

Sometimes, I can't switch the lights - and sometimes, everything works like a charm. Why does it only work sometimes? (Connected to a Siemens KNX IP Controller N305E)

DPT 9 falscher Multiplikator

Ich bin von Version 0.8.3 auf die aktuelle umgestiegen 1.0.17. hierdurch sind meine DPT 9 Datenpunkte um den Faktor 100 größer geworden. Statt 20 Grad 2000 Grad. Der Wert auf dem Bus ist weiterhin korrekt.

Probleme knxproj File zu laden

Habe eine ziemlich umfangreiche KNX-Installation und habe zunächst versucht das komplette Projekt zu laden. Scheiterte aber mit der Meldung Error: File " " not exists.
Habe dann versucht ein reduziertes Projekt zu laden, aber die gleiche Meldung.
Nachfolgend mal mein reduziertes knxproj-File:

Fahrbach - reduziert.knxproj.zip

Somtimes no Datapoint is received.

Hello,

sometimes after a while there is no knx message send/received. Even after restart.
i have to change the knx-address then its working again.

Working log:
knx.0 2017-02-22 10:50:55.890 info knx.0 CHANGE from 1.1.5 to (2/4/80) Jalousie Kind 3 Positionstatus: � knx.0 2017-02-22 10:50:53.915 info knx.0 Connected! with 100 datapoints of 201 Datapoints over all. knx.0 2017-02-22 10:50:53.915 info knx.0 DPP erstellt für : 7/1/120 Terasse Außensteckdose schalten

Not working log:
knx.0 2017-02-22 10:50:53.915 info knx.0 Connected! with 100 datapoints of 201 Datapoints over all. knx.0 2017-02-22 10:50:53.915 info knx.0 DPP erstellt für : 7/1/120 Terasse Außensteckdose schalten

DESIGN CHANGE REQUEST: Verknüpfung STATUS und AKTION

Der Adatper bietet in ioBroker eine Verknüpfung von Objekten die eine STATUS-GA in KNX repräsentierten mit Objekten, die in KNX eine AKTIONs-GA darstellen. Bei passender Namensgebung der Gruppenadresse (GA) nimmt der Adapter die Verknüpfung automatisch vor. Siehe: Wie werden die Datenpunkte generiert, 3) Herausfinden der Schalt- und Statusaddressen

Damit das funktioniert, müssen bestehende KNX Projekte u.U. umfangreich geändert werden. Die automatische Zuordnung von STATUS und AKTIONs-Objekt ist schwer beeinflussbar und fehleranfällig, was dazu führen kann, das Objekte nicht funktionieren. Ob die Verknüpfungen nach einem Import eines ETS Projektes manuell nachgearbeitet werden können, weiß ich nicht. Eine Nachbearbeitung birgt immer die Gefahr, dass bei einem erneuten Import des ETS Projektes die Änderungen verloren gehen. Auch ist unklar, ob ein STATUS Objekt mit mehreren STATUS-Objekten verknüpft werden kann.

DESIGN CHANGE REQUEST:
Der Adatper sollte die STATUS und AKTIONs-Objekte nicht automatisch verbinden, sondern nach Import eines KNX Projektes, eine vom Nutzer vorgenommene Verknüpfung anbieten. Das ist deutlich robuster.
Die vom Benutzer vorgenommenen Nacharbeiten müssen nach erneuten Import des KNX Projektes natürlich bestehen bleiben.

Unterstützende Issues und Themen:

  • ioBroker Forum: Buttons und KNX
  • Issue #31: Nicht alle KNX Read objects werden beim Start des KNX adapters gelesen
  • Issue #32: Verknüpfung von STATUS Objekt und AKTIONs-Objekten nicht korrekt

Problems connecting to knxd (fhem, ets working)

Hi,

i always get only an error on connecting to knxd (latest stable).

Log:
2017-01-04 11:12:52.422 - info: knx.0 starting. Version 0.7.3 in /opt/iobroker/node_modules/iobroker.knx
2017-01-04 11:12:52.460 - info: knx.0 Connecting to knx GW: 127.0.0.1:3671 with phy. Adr: 1.1.105
2017-01-04 11:12:52.463 - info: knx.0 /opt/iobroker/node_modules/iobroker.js-controller
2017-01-04 11:12:52.525 - warn: knx.0 stateChange: not ready

FHEM, ETS5.5.2, Zipato are connecting to the same knxd without problems.

Any Hints ?

Unbekannter Datentyp beim Schalten

Hallo!

Habe eine iobroker Instanz auf einem Ubuntu 16.04 laufen und eine KNX Anbindung über einen Raspi mit USB Schnittstelle auf dem knxd läuft.
Der Import vom ETS4 Projekt funktionierte problemlos, ich seh auch alle Datenpunkte, aber ich bekomms nicht hin dass ich einen Schaltbefehl auf eine Gruppenadresse schicke. Egal ob ich über die MobileUI was sende oder direkt über den iobroker-Objekte-Tab einen Wert sende: Es schaltet nichts und im Log seh ich nur folgenden Eintrag:

Cannot control "knx.0.Haupthaus.Beleuchtung.Bel_Lagerraum_klein_SCH", because invalid type:

Ich habe bei der Konfig sämtliche Datentypen durchprobiert, aber das Resultat ist dass selbe. Die KNX Status Elemente funktionieren anstandslos, also an der eigentlichen Bus Anbindung kanns eigentlich nicht liegen.
Setzte ich den Schaltbefehl gegen die Status-Gruppenadresse des Aktors funktioniert es, allerdings wird dann nur in der Visu umgeschaltet, das Licht bleibt klarerweise trotzdem finster.
Ich habs auch alternativ über einen Loxone Miniserver als IP Schnittstelle probiert, mit dem gleichen Resultat.

Ich vermute den Fehler in meinem KNX Projekt, allerdings weiß ich mittlerweile nicht mehr wo ich noch schauen sollte.

Rückmeldung vom KNX

Hallo,

falls es doppelt ist sorry. Im closed habe ich auf einen Thread geantwortet. Weiss aber nicht ob man das dann noch beachtet.

wo packe ich das Rückmeldeobjekt hin?

Beispiel ich schalte auf der Gruppenadresse 1/0/1 und bekomme von dem Aktor Aktiv eine Rückmeldung auf der Gruppenadresse 1/0/2.

Wo stelle ich das in der Objekt ID im IOBroker ein?
Bei statusGARefId oder bei actGARefId ?
Und was trage ich da ein? Die KNX Gruppen Adresse oder die adressRefID aus der Objekt ID bsp: P-040C-0_GA-227?

Vielen Dank.

KNX Adapter funktioniert nach einigen Tagen nicht mehr

Hallo,
in unregelmäßigen Abständen muss ich den KNX Adapter neu starten, da die Geräte auf einmal nicht mehr reagieren. Ich nutze Version 1.0.11. Mir ist auch aufgefallen, dass ab und zu 1 von 5 Geräten nicht reagiert, wenn diese zugleich betätigt werden. Funktioniert dann nach einigen Minuten oder eben nach einem Neustart des KNX Adapters wieder. Unter Log gibt es keinen Eintrag.
Was mir nebenbei aufgefallen ist, dass bei den Adaptern unter KNX die aktuelle Version 1.0.11 ist, bei verfügbare Version steht jedoch 0.8.6. Ist das normal?

Viele Grüße
Peter

Nicht alle KNX Read Objekte werden beim Start des KNX adapters gelesen

Hi, mit 1.0.13 habe ich folgende Beobachtung:
Zwei aus KNX importierte Read Objekte, deren Wert beim Start des Adaperts eingelesen werden sollte.

Folgendes Objekt wird korrekt eingelesen:

{
"from": "system.adapter.knx.0",
"user": "system.user.admin",
"ts": 1530732351907,
"common": {
"name": "DG -Büro- Heizung HVAC STATUS",
"type": "number",
"role": "value",
"min": 0,
"max": 1,
"read": true,
"write": false
},
"native": {
"dpt": "DPT20.102",
"address": "5/4/46",
"addressRefId": "P-08AB-0_GA-1148",
"statusGARefId": "",
"actGARefId": ""
},
"acl": {
"object": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"state": 1636
},
"id": "knx.0.Heizung__Lüftung.DG.DG-Büro-_Heizung_HVAC_STATUS",
"type": "state"
}

Folgendes Objekt wird jedoch nicht eingelesen, obwohl es das sollte:

{
"from": "system.adapter.knx.0",
"user": "system.user.admin",
"ts": 1530732351876,
"common": {
"name": "DG -Büro- Heizung Sollwert IST",
"type": "number",
"role": "value",
"min": -273,
"max": 670670,
"read": true,
"write": false
},
"native": {
"dpt": "DPT9.001",
"address": "5/4/44",
"addressRefId": "P-08AB-0_GA-1027",
"statusGARefId": "P-08AB-0_GA-95",
"actGARefId": ""
},
"acl": {
"object": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"state": 1636
},
"id": "knx.0.Heizung__Lüftung.DG.DG-Büro-_Heizung_Sollwert_IST",
"type": "state"
}

Fehler im Objekt oder im Adapter?

Regression with KNX + history + admin 3.x: Objekte im KNX Adapter lassen sich nicht für history wählen

Fehler wurde in https://forum.iobroker.net/viewtopic.php?f=22&t=14734&p=154213#p154213 gemeldet. Objekte im KNX Adapter können für history nicht gewählt werden. Betrifft nicht alle Objekte, Objekt 'knx.0.info.connection' funktioniert zum Beispiel, andere nicht.

Testsystem: jr-controller 1.4.2, KNX 1.0.12, admin 3.4.7, history 1.8.4

Beobachtungen:

  • Alle Objekte im ersten Zweig von knx.0 (hier 'Dimmen') lassen sich wählen, alle der folgenden Zweige nicht mehr, außer Zweig 'info', da funktioniert es auch wieder.

admin snip

  • Der Dialog um ein Objekt für history auszuwählen öffnet sich immer, die Einstellungen können vorgenommen werden und der Dialog lässt sich mit 'Save' schließen, bei manchen Objekten wird er jedoch ergebnislos geschlossen. Bei den Objekten, bei denen es nicht funktioniert, zeigt der Dialog zum Aktivieren des Objektes für history nicht die 'default settings' des history adapters an.
  • Fehler lässt sich mit Objekten aus anderen Adaptern nicht nachvollziehen.
  • downgrade auf admin 2.0.9 löst das Problem.

knx lizenz eingeben geht nicht

Hallo,

nach dem Update auf iobroker.knx 1.0.5 und vorher auf iobroker.admin 3.2.4 kann ist bei mir der Lizenzeintrag vom knx weg und die KNX-Instanz startet daher nicht. In der Konfiguration der KNX-Instanz gibt es ein Lizenzfeld. Dort kann ich auch die Lizenz hereinkopieren. Der Button "Lizenz prüfen" und "help" bleibt aber grau. Die Buttons Speichern und auch Speichern und Schließen reagieren nicht. Wenn ich anders herausgehe, kommt eine Nachricht, dass die Angaben im Dialog nicht gespeichert sind, was ich dann mit OK bestätigen kann. Den Lizenzschlüssel hatte ich direkt aus dem Browser kopiert und eingefügt. Der ist ja recht lang.
Daraus ergibt sich die Frage wie/wo ich den KNX-Lizenz Schlüssel eingeben kann.
Im https://iobroker.net/accountLicenses hatte ich mir die private knx Lizenz erstellt. Dort steht bei Version < 2. Bezieht sich das auf die iobroker.knx version oder auf die iobroker.admin version?
Kann man die Lizenz vielleicht irgendwie zunächst mal manuell einfügen in eine Config-Datei? Wenn ja in welchem Pfad steht diese?

Danke für die Hilfe
Axel

Add Discovery Support for this Adapter

Hey,

please check out the Discovery-Adapter (https://github.com/ioBroker/ioBroker.discovery) and check if the device can be detected somehow (special url with defined answer, special port, upnp, udp or other technologies?!). If yes it would great if you could add a pull request to the Discovery-Adapter with the needed code.
Support needed? Contact me (Apollon77) in Forum as forum thread or PN ;-)

Ingo

Projektplan

Hallo Zusammen,

ich habe mich beim durchschauen des Repos gefragt, ob es eine Art Projektplan /Kanban Board oder zumindest eine offene Punkte Liste gibt?

Ich bin selber Software Entwickler (Node.js und C#) und bin gerade im Begriff mein Haus zu sanieren und mit KNX auszustatten. Ich hätte große Lust hier im Projekt zu unterstützen, sobald ich mit den Sanierungsmaßnahmen durch bin und wieder mehr Freizeit zur Verfügung habe. (Ich schätze mal ab Sommer 2018 wird das soweit sein)

Liebe Grüße

Jan

DPT 1.001 als Logikwert "false / true" schaltet nicht.

Hallo, noch ein Problem:

Bei Befehlen wahr / unwahr (true/false) reagieren manche Aktoren (hier Siemens und L&J) nicht, bzw. nicht immer. Gira und Jung verrichten ihren Dienst ohne Probleme.

setState("knx.0.Beleuchtung.KG.KG_Abstellraum_Leuchte_Decke_-_Schalten"/*KG_Abstellraum_Leuchte_Decke_-_Schalten*/, false);

Bei den Logiken habe ich mir mit 0/1 geholfen, jedoch meckert dann die Javascriptinstanz.

javascript.0 2018-06-08 19:19:29.513 warn at Object. (script.js.Zentralbefehle.Zentral_Beleuchtungl_Aus:43:3)
javascript.0 2018-06-08 19:19:29.509 warn Wrong type of
knx.0.Beleuchtung.KG.KG_Abstellraum_Leuchte_Decke_-_Schalten: "number". Please fix, while deprecated and will not work in next versions.

Konfiguration ETS:
image

Konfiguration iobroker:
image

Bei der Logik und den Scenen sieht es ähnlich aus, hier wird zum Teil auf true reagiert nur das false geht ins Nirvana. Auch der Trigger auf "wahr" funktioniert hier nicht.
image

on({id: "knx.0.Beleuchtung.KG.KG_Abstellraum_Leuchte_Decke_-_Schalten"/*KG_Abstellraum_Leuchte_Decke_-_Schalten*/, change: "gt"}, function (obj) {
  var value = obj.state.val;
  var oldValue = obj.oldState.val;
  setStateDelayed('knx.0.Beleuchtung.KG.KG_Abstellraum_Leuchte_Decke_-_Schalten', 0, false, parseInt(1000, 10), true);
});

image

on({id: "knx.0.Beleuchtung.KG.KG_Abstellraum_Leuchte_Decke_-_Schalten"/*KG_Abstellraum_Leuchte_Decke_-_Schalten*/, val: true}, function (obj) {
  var value = obj.state.val;
  var oldValue = obj.oldState.val;
  setStateDelayed('knx.0.Beleuchtung.KG.KG_Abstellraum_Leuchte_Decke_-_Schalten', false, false, parseInt(1000, 10), true);
});

Evtl. hat dies auch mit den Siemens Aktoren zu tun, denn diese habe keine aktive Statusrückmeldung. Wobei ich mir dann bei den L&J Aktoren nicht erklären kann.

knx.0 | Version 1.0.11 in /opt/iobroker/node_modules/iobroker.knx, node: v8.11.2

Gruß

Norman

KNX Projekt Import - Cannot read property 'nodeType' of undefined

Hallo,

nach dem Update von 0.8.6 auf 1.0.4 hatte ich einige Probleme (Blockly Scripte gingen nicht mehr), so dass ich mich dazu entschlossen habe, meine KNX-Instanz zu löschen, neu anzulegen und anschließend mein KNX-Projekt (ETS 5.6.3) neu zu importieren. Leider ist es sowohl mit der Version 1.0.4, als auch mit der Version 1.0.5 nicht mehr möglich ein Projekt zu importieren. Sobald die Projektdatei hochgeladen wurde, erhalte ich folgende Fehlermeldung:

`2018-03-03 12:54:30.633 - error: knx.0 message messagebox.system.adapter.knx.0 [object Object] Cannot read property 'nodeType' of undefined

2018-03-03 12:54:30.635 - error: knx.0 TypeError: Cannot read property 'nodeType' of undefined
at /opt/iobroker/node_modules/iobroker.knx/knx.js:128:2133
at _0x50fe09 (/opt/iobroker/node_modules/iobroker.knx/knx.js:128:450)
at /opt/iobroker/node_modules/iobroker.knx/knx.js:128:215
at null.matches (/opt/iobroker/node_modules/iobroker.knx/knx.js:128:1779)
at Function._0x1ac0da.applyStep (/opt/iobroker/node_modules/iobroker.knx/knx.js:128:59372)
at /opt/iobroker/node_modules/iobroker.knx/knx.js:128:59789
at /opt/iobroker/node_modules/iobroker.knx/knx.js:128:1096
at /opt/iobroker/node_modules/iobroker.knx/knx.js:128:661
at _0x50fe09 (/opt/iobroker/node_modules/iobroker.knx/knx.js:128:450)
at /opt/iobroker/node_modules/iobroker.knx/knx.js:128:1035`

Der KNX-Adapter funktioniert allerdings problemlos, da ich Values vom Bus empfange.

Da ich vermutete, dass vielleicht das KNX-Projekt zu groß ist, habe ich mein bestehendes Projekt geklont und nur noch ein paar Gruppenadressen übrig gelassen. Auch hiermit konnte ich das Projekt nicht hochladen. Ich habe das Projekt mal hochgeladen. KNX-Projekt.zip

Übrigens, vielen Dank für die Entwicklung und den Support!

KNX-Adapter-Neustart löst Rollläden-Fahrt aus

Hallo,

jedes Mal wenn der KNX-Adapter neu startet bewegen sich nahezu alle Rollläden im Haus. Dieses Phänomen trat das erste Mal beim Import der Projektdatei auf und danach immer dann, wenn der Adapter neu startet bzw. natürlich auch dann, wenn der gesamte ioBroker neu gestartet wird.

Ich verwende die neueste Version 1.017, hatte das Problem aber auch bei den Vorgängern.

Das Thema wurde schon einmal im ioBroker-Forum andiskutiert: https://forum.iobroker.net/viewtopic.php?p=212075#p212075

Gruß
Timo

System macht sich selbstständig

Nach dem Einlesen der KNX Projektdatei (noch nichts programmiert) schalten Lichtszenen schon los.
Eine Aufgaben übernimmt mein Homeserver, aber irgendwie beisst sich da was

Improvement: Object parameter change needs restart of knx adapter

Apparently, if object parameters are manually changed (e.g. read/write) due to wrong import of the knx project file, the changes are recognized only after restart of the knx adapter. Proposal: either change the behavior (preferred) or mention it in the documentation

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/ioBroker/ioBroker.knx

ERR:["E116","E117","E121","E124","E301"]:ERR

Thanks,
your automatic adapter checker.

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.