..ich habe leider keine ZigbeeGeräte im Einsatz, aber braucht man zum Schalten nicht ein Switch-Item und ein Command-Topic im dazugehörigen Thing ?
Hier mal zum Vergleich ein Sonoff(POW)-Schalter von mir.
Thing:
Code: Alles auswählen
// Sonoff POW Switches (pow 1 + pow 2)
Thing topic pow02 "Sonoff Pow 02 Stehlampe Wohnzimmer" @ "MQTT2" {
Channels:
Type switch : power "Power" [ stateTopic="stat/pow_02/POWER", commandTopic="cmnd/pow_02/POWER" ]
Type number : rssi "WiFi Signal Strength" [ stateTopic="tele/pow_02/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
Type string : version "Firmware Version " [ stateTopic="stat/pow_02/STATUS2", transformationPattern="JSONPATH:$.StatusFWR.Version"]
Type switch : reachable "Reachable" [ stateTopic="tele/pow_02/LWT",transformationPattern="MAP:reachable.map" ]
Type number : powerload "Power load" [ stateTopic="tele/pow_02/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="tele/pow_02/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="tele/pow_02/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy " [ stateTopic="tele/pow_02/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Total"]
Type number : totalday "Total energy today" [ stateTopic="tele/pow_02/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="tele/pow_02/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type string : ssid "WiFi" [ stateTopic="tele/pow_02/STATE", transformationPattern="JSONPATH:$.Wifi.SSId"]
Type datetime : time "Time" [ stateTopic="tele/pow_02/STATE", transformationPattern="JSONPATH:$.Time"]
Type string : hardware "Chip Set " [ stateTopic="stat/pow_02/STATUS2", transformationPattern="JSONPATH:$.StatusFWR.Hardware"]
Type string : ipaddress "IP Address " [ stateTopic="stat/pow_02/STATUS5", transformationPattern="JSONPATH:$.StatusNET.IPAddress"]
Type number : powerdelta "Power-Delta" [ stateTopic="tele/pow_02/MARGINS", transformationPattern="JSONPATH:$.MARGINS.PowerDelta"]
}
.items dazu:
Code: Alles auswählen
Switch Sonoff_Pow_02 "Stehlampe [MAP(de.map):%s]" <standard_lamp> (gEG_Wohnen,gT_OnOff,gLight) { channel="mqtt:topic:hans:pow02:power"}
// Beispiel mit Profile
//Switch Sonoff_Pow_02 "Stehlampe [MAP(de.map):%s]" <standard_lamp> (gEG_Wohnen,gT_OnOff,gLight) { channel="mqtt:topic:hans:pow02:power"[profile="follow", profile-parameterID="Sonoff_Basic_03"]}
Number Sonoff_Pow_02_RSSI "Stehlampe RSSI [%s]" <qualityofservice> (gEG_Wohnen,gRSSI) { channel="mqtt:topic:hans:pow02:rssi" }
String Sonoff_Pow_02_Version "Stehlampe Version [%s]" <sonoff_pow> (gTasmo,gVer) { channel="mqtt:topic:hans:pow02:version" }
Switch Sonoff_Pow_02_Unreach "Stehlampe Ereichbarkeit [%s]" <siren1> (gEG_Wohnen,gLWT) { channel="mqtt:topic:hans:pow02:reachable" }
String Sonoff_Pow_02_Hardware "Stehlampe Hardware [%s]" <sonoff_pow> (gTasmo,gHard) { channel="mqtt:topic:hans:pow02:hardware" }
String Sonoff_Pow_02_IPAddress "Stehlampe IP-Address [%s]" <sonoff_pow> (gTasmo,gIpAd) { channel="mqtt:topic:hans:pow02:ipaddress" }
Number Sonoff_Pow_02_Verbrauch "Stehlampe Verbrauch Total[%.2f kWh]" <standard_lamp> (gTasmo) { channel="mqtt:topic:hans:pow02:total" }
//* For Fun and Test
Number Sonoff_Pow_02_VerbrauchHeute "Stehlampe Verbrauch Heute[%.2f kWh]" <standard_lamp> (gTasmo) { channel="mqtt:topic:hans:pow02:totalday" }
Number Sonoff_Pow_02_VerbrauchGestern "Stehlampe Verbrauch Gestern[%.2f kWh]" <standard_lamp> (gTasmo) { channel="mqtt:topic:hans:pow02:totalyest" }
Number Sonoff_Pow_02_Strom "Stehlampe Stromaufnahme [%.2f A]" <standard_lamp> (gTasmo) { channel="mqtt:topic:hans:pow02:current" }
Number Sonoff_Pow_02_Spannung "Stehlampe Spannung[%.2f Volt]" <standard_lamp> (gTasmo) { channel="mqtt:topic:hans:pow02:voltage" }
Number Sonoff_Pow_02_Leisung "Stehlampe Leistung[%.2f W]" <standard_lamp> (gTasmo) { channel="mqtt:topic:hans:pow02:powerload" }
String Sonoff_Pow_02_SSID "Stehlampe Wlan [%s]" <standard_lamp> (gTasmo,gSSId) { channel="mqtt:topic:hans:pow02:ssid" }
DateTime Sonoff_Pow_02_Date "Stehlampe Refresh [%1$tH:%1$tM]" <standard_lamp> (gTasmo) { channel="mqtt:topic:hans:pow02:time" }
Number Sonoff_Pow_02_PowerDelta "Stehlampe Power-Delta [%.2f W]" <standard_lamp> (gTasmo) { channel="mqtt:topic:hans:pow02:powerdelta" }
Vielleicht kannst du damit was anfangen ?!