Déclaration des items sous le things syntaxe correcte?

Bonjour,
Je débute avec Open HAB et j’ai du mal avec quelques, alors je les pose ici pour voir si quelqu’un peut m’aider.

  1. est-il possible de se passer du mot Type lorsqu’on déclare les items?
    exemple :
    // Module dans le tableau Elec BR1
    Thing device ModuleSortieBR1 “Module de sortie BR1” @ “BR1” [address=“1.1.1”]
    {
    Switch : CommandeEclairageBR1 “Eclairage BR1”[ga = “1/0/0+<1/0/2”]
    Type switch : CommandeEclairageBR1 “Eclairage BR1”[ga = “1/0/0+<1/0/2”]
    }

Juste pour savoir si les deux lignes de codes ci-dessus sont identiques

  1. Est-il possible de mettre dans deux lignes différentes l’adresse d’écrire et le retour d’état

Exemple :slight_smile:
Thing device ModuleSortieBR1 “Module de sortie BR1” @ “BR1” [address=“1.1.1”]
{
Type switch : CommandeEclairageBR1 “Eclairage BR1”[ga = “1/0/0”]
Type switch : EtatCommandeEclairageBR1 “Etat Eclairage BR1”[ga = “1/0/2”]
}

ou de faire ça :
Thing device ModuleSortieBR1 “Module de sortie BR1” @ “BR1” [address=“1.1.1”]
{
Switch : CommandeEclairageBR1 “Eclairage BR1”[ga = “1/0/0”]
Switch : EtatCommandeEclairageBR1 “Etat Eclairage BR1”[ga = “1/0/2”]
}

3- c’est surtout sûr des données de types température ou compteur horaire, quand je déclare, j’ai l’impression que la syntaxe n’est pas correcte.

Merci

Welcome to the forum!

Because this is an international forum we require posts to the forum be in English. Google Translate is often good enough.

Also, when posting code, please use code fences.

```
code goes here
```

Doing my best from Google Translate:

  1. I don’t do .things files. I find fighting syntax errors to take way more time than what’s lost by using managed configs. Based on the docs, Things | openHAB, it does look like Type is required for Things where the type of the Channel isn’t hard coded in the binding (i.e. MQTT, HTTP, modbus, KNX, etc type bindings).

  2. It’s not clear what binding you are using. That’s most likely to be answered by the binding docs.

  3. If the syntax is not correct you will get errors in the logs.

Well received,
soon I will write in English.
in fact it’s even in my installation I have several buildings far from each other so for each building I have my KNX installation and a KNX/IP router

but I will read the doc that you linked. I tried to base myself a little on the KNX plugin doc in openHAB but the concepts of setting up the .things and the link with the .items I had a little difficulty doing.
Thanks