Re: Openhab mit Visual Studio Code
Verfasst: 30. Nov 2020 20:55
Klar da kommt es ja erstens auf die Datei an und auf das Binding das du benutzen willst und in den Beschreibungen der Bindings findest du immer Beispiele
Code: Alles auswählen
itemtype itemname "labeltext [stateformat]" <iconname> (group1, group2, ...) ["tag1", "tag2", ...] {bindingconfig}
Code: Alles auswählen
Thing <binding_id>:<type_id>:<thing_id> "Label" @ "Location" [ <parameters> ]
Code: Alles auswählen
Bridge <binding_id>:<type_id>:<bridge_id> "Label" @ "Location" [ <parameters> ] {
Thing <type_id> <thing_id> "Label" @ "Location" [ <parameters> ]
}
Code: Alles auswählen
Thing <binding_id>:<type_id>:<thing_id> "Label" @ "Location" [ <parameters> ]{
Channel:
Type <channeltype> : <channel-id> "Label" [ <parameters> ]
}
Code: Alles auswählen
Thing <binding_id>:<type_id>:<bridge_id>:<thing_id> "Label" (<binding_id>:<type_id>:<bridge_id>) @ "Location" [ <parameters> ]
Code: Alles auswählen
Bridge mqtt:broker:MQTTBroker "MQTTBroker" [host = "127.0.1.1" , port=1883, secure=false, username "openhab", passwort "openhab", clientID="openHAB2" qos = "1"]
{
Thing mqtt:topic:HT_Badklein "HT Bad klein" {
Channels:
Type number : HT "Bad klein" [stateTopic = "shellies/shellyht-957268/sensor/temperature", commandTopic = "shellies/shellyht-957268/sensor/temperature/command"]
}
}
Code: Alles auswählen
Bridge mqtt:broker:MQTTBroker "MQTTBrokerCSV" [host = "192.169.1.244" , port=1883, secure=false, username = "openhab", passwort = "openhab", clientID="openHAB2", qos = "1"]
{
Thing mqtt:topic:HT_Badklein "HT Bad klein" {
Channels:
Type number : HTBadklein "Bad klein" [stateTopic = "shellies/shellyht-957268/sensor/temperature", commandTopic = "shellies/shellyht-957268/sensor/temperature/command"]
}
}