Ich habe alles was zu dem Thing und item gehört sogar auskommentiert, aber es läßt sich nichts mehr über die Basic UI steuern.
Hier mal die .things Datei
Code: Alles auswählen
Bridge mqtt:broker:Wunderland "MQTT Broker" @ "MQTT"
[ host="192.168.178.55", port=1883, username="xxxxxxxxxx",
password="xxxxxxxxx", qos=1, retainMessages=true ]
{
Thing topic SonoffPanik "SonoffPanik" {
Channels:
Type switch : ch2 "Garage" [ stateTopic="stat/SonoffPanik/POWER2", commandTopic="cmnd/SonoffPanik/POWER2" ]
Type switch : ch1 "Terrasse" [ stateTopic="stat/SonoffPanik/POWER1", commandTopic="cmnd/SonoffPanik/POWER1" ]
}
Thing topic SonoffGarage "SonoffGarage" {
Channels:
Type switch : ch1 "Carport Säule" [ stateTopic="stat/SonoffGarage/POWER1", commandTopic="cmnd/SonoffGarage/POWER1" ]
Type switch : ch2 "Carport" [ stateTopic="stat/SonoffGarage/POWER2", commandTopic="cmnd/SonoffGarage/POWER2" ]
Type switch : ch3 "Weihnachtsabum" [ stateTopic="stat/SonoffGarage/POWER3", commandTopic="cmnd/SonoffGarage/POWER3" ]
Type switch : ch4 "Steckdose Säule" [ stateTopic="stat/SonoffGarage/POWER4", commandTopic="cmnd/SonoffGarage/POWER4" ]
}
Thing topic SonoffWZ "SonoffWZ" {
Channels:
Type switch : ch2 "DVD Regal" [ stateTopic="stat/SonoffWZ/POWER2", commandTopic="cmnd/SonoffWZ/POWER2" ]
Type switch : ch1 "Lampe" [ stateTopic="stat/SonoffWZ/POWER1", commandTopic="cmnd/SonoffWZ/POWER1" ]
}
Thing topic SonoffTerrasse "SonoffTerrasse" {
Channels:
Type switch : ch3 "Mauer" [ stateTopic="stat/SonoffTerrasse/POWER3", commandTopic="cmnd/SonoffTerrasse/POWER3" ]
Type switch : ch2 "Pergola" [ stateTopic="stat/SonoffTerrasse/POWER2", commandTopic="cmnd/SonoffTerrasse/POWER2" ]
Type switch : ch1 "Lampe Baum" [ stateTopic="stat/SonoffTerrasse/POWER1", commandTopic="cmnd/SonoffTerrasse/POWER1" ]
Type number : temp "Außen Temperatur" [ stateTopic="tele/SonoffTerrasse/SENSOR", transformationPattern="JSONPATH:$.DS18B20.Temperature" ]
}
Thing topic REZhinten "Rollo Esszimmer hinten" {
Channels:
Type switch : ch2 "runter" [ stateTopic="stat/REZhinten/POWER2", commandTopic="cmnd/REZhinten/POWER2" ]
Type switch : ch1 "rauf" [ stateTopic="stat/REZhinten/POWER1", commandTopic="cmnd/REZhinten/POWER1" ]
}
Thing topic REZvorne "Rollo Esszimmer vorne" {
Channels:
Type switch : ch2 "runter" [ stateTopic="stat/REZvorne/POWER2", commandTopic="cmnd/REZvorne/POWER2" ]
Type switch : ch1 "rauf" [ stateTopic="stat/REZvorne/POWER1", commandTopic="cmnd/REZvorne/POWER1" ]
}
Thing topic RKue "Rollo Kueche" {
Channels:
Type switch : ch2 "runter" [ stateTopic="stat/RKue/POWER2", commandTopic="cmnd/RKue/POWER2" ]
Type switch : ch1 "rauf" [ stateTopic="stat/RKue/POWER1", commandTopic="cmnd/RKue/POWER1" ]
}
//Thing topic RWZ "Rollladen Wohnzimmer" {
//Channels:
// Type rollershutter : RWZ_aufzu "Rollladen Wohnzimmer" [ stateTopic="stat/RWZ/Shutter1", commandTopic="cmnd/RWZ/Backlog", on="ShutterOpen", off="ShutterClose", stop="ShutterStop"]
//Type rollershutter : RWZ_slider "Rollladen Wohnzimmer" [ stateTopic="stat/RWZ/ShutterPosition1", commandTopic="cmnd/RWZ/ShutterPosition1" ]
//}
//Thing topic RWZ "Rollo Wohnzimmer" {
//Channels:
//Type switch : ch2 "runter" [ stateTopic="stat/RWZ/POWER2", commandTopic="cmnd/RWZ/POWER2" ]
//Type switch : ch1 "rauf" [ stateTopic="stat/RWZ/POWER1", commandTopic="cmnd/RWZ/POWER1" ]
//}
Thing topic LEDWand "LED Wand Wohnzimmer" {
Channels:
Type switch : ch1 "power" [ stateTopic="stat/LEDWand/POWER", commandTopic="cmnd/LEDWand/POWER" ]
Type dimmer : ch2 "dimmen" [ stateTopic="stat/LEDWand/RESULT", commandTopic="cmnd/LEDWand/DIMMER" ]
}
Thing topic Stern "Stern Esszimmer" {
Channels:
Type switch : ch1 "power" [ stateTopic="stat/Stern/POWER", commandTopic="cmnd/Stern/POWER" ]
}
Thing topic Flur "Flurlicht" {
Channels:
Type switch : ch1 "power" [ stateTopic="stat/Flur/POWER", commandTopic="cmnd/Flur/POWER" ]
}
Thing topic Treppe "LED Treppe" {
Channels:
Type switch : ch1 "power" [ stateTopic="stat/Treppe/POWER", commandTopic="cmnd/Treppe/POWER" ]
Type dimmer : ch2 "dimmen" [ stateTopic="stat/Treppe/RESULT", commandTopic="cmnd/Treppe/DIMMER" ]
Type string : ch3 "color" [ stateTopic="stat/Treppe/RESULT", commandTopic="cmnd/Treppe/COLOR" ]
}
}
hier die .items
Code: Alles auswählen
DateTime CurrentDate "Heutiges Datum [%1$tA, %1$td.%1$tm.%1$tY]" <calendar> { channel="ntp:ntp:local:dateTime" }
Switch SonoffPanik_Garage "Garage" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffPanik:ch2" }
Switch SonoffPanik_Terrasse "Terrasse" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffPanik:ch1" }
Switch SonoffGarage_CarportEingang "Carport Säule" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffGarage:ch1" }
Switch SonoffGarage_Carport "Carport" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffGarage:ch2" }
Switch SonoffGarage_Aussen "Weihnachtsbaum vorne" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffGarage:ch3" }
Switch SonoffGarage_CarportSteckdose "Carport Steckdose" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffGarage:ch4" }
Switch SonoffTerrasse_Pergola "Pergola" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffTerrasse:ch2" }
Switch SonoffTerrasse_Mauer "Mauer" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffTerrasse:ch3" }
Switch SonoffTerrasse_LampeBaum "Lampe Baum" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffTerrasse:ch1" }
Switch REZhinten_Runter "runter" <rollershutter> ["rollershutter"] { channel="mqtt:topic:Wunderland:REZhinten:ch2" }
Switch REZhinten_Rauf "rauf" <rollershutter> ["rollershutter"] { channel="mqtt:topic:Wunderland:REZhinten:ch1" }
Switch REZvorne_Runter "runter" <rollershutter> ["rollershutter"] { channel="mqtt:topic:Wunderland:REZvorne:ch2" }
Switch REZvorne_Rauf "rauf" <rollershutter> ["rollershutter"] { channel="mqtt:topic:Wunderland:REZvorne:ch1" }
//Switch RWZ_Runter "runter" <rollershutter> ["rollershutter"] { channel="mqtt:topic:Wunderland:RWZ:ch2" }
//Switch RWZ_Rauf "rauf" <rollershutter> ["rollershutter"] { channel="mqtt:topic:Wunderland:RWZ:ch1" }
//Rollershutter RWZmove "RWZ rauf runter" <rollershutter> { channel="mqtt:topic:Wunderland:RWZ:RWZ_aufzu", autoupdate="false"}
Switch RKue_Runter "runter" <rollershutter> ["rollershutter"] { channel="mqtt:topic:Wunderland:RKue:ch2" }
Switch RKue_Rauf "rauf" <rollershutter> ["rollershutter"] { channel="mqtt:topic:Wunderland:RKue:ch1" }
Switch LEDWand_power "Wand Wohnzimmer" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:LEDWand:ch1" }
Dimmer LEDWand_dimmen "LED Wand Dimmen" <sun> ["Lighting"] { channel="mqtt:topic:Wunderland:LEDWand:ch2" }
Switch SonoffWZ_DVD "DVD Regal" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffWZ:ch2" }
Switch SonoffWZ_Lampe "Lampe" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:SonoffWZ:ch1" }
Switch Stern_power "Stern Esszimmer" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:Stern:ch1" }
Switch Flur_power "Flurlicht" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:Flur:ch1" }
Switch Treppe_power "Treppenbeleuchtung" <light> ["Lighting"] { channel="mqtt:topic:Wunderland:Treppe:ch1" }
Dimmer Treppe_dimmen "Treppenlicht Dimmen" <sun> ["Lighting"] { channel="mqtt:topic:Wunderland:Treppe:ch2" }
String Treppe_color "Farbe" { channel="mqtt:topic:Wunderland:Treppe:ch3" }
Number Temp_Garten "gemessene Außentemperatur [%.1f °C]" <temperature> { channel="mqtt:topic:Wunderland:SonoffTerrasse:temp" }
// OpenWeatherMap Daten
Number owmHumidity "Feuchte [%d %%]" {weather="locationId=Niederkrüchten-OWM, type=atmosphere, property=humidity"}
Number owmTemperature "OWM Temperatur [%.2f °C]" <temperature> {weather="locationId=Niederkrüchten-OWM, type=temperature, property=current"}
Number owmPressure "Luftdruck [%.2f hPa]" {weather="locationId=Niederkrüchten-OWM, type=atmosphere, property=pressure"}
String owmPressureTrend "Luftdruck Trend [%s]" {weather="locationId=Niederkrüchten-OWM, type=atmosphere, property=pressureTrend"}
Number owmWindSpeed "Windgeschwindigkeit [%.2f km/h]" {weather="locationId=Niederkrüchten-OWM, type=wind, property=speed"}
String owmWindDirection "Windrichtung [%s]" {weather="locationId=Niederkrüchten-OWM, type=wind, property=direction"}
Number owmWindDegree "Windrichtung in Grad [%.0f °]" {weather="locationId=Niederkrüchten-OWM, type=wind, property=degree"}
Number owmClouds "Bewölkung [%.0f %%]" {weather="locationId=Niederkrüchten-OWM, type=clouds, property=percent"}
Number owmRain "Regen der letzten 3 Stunden [%.2f mm/h]" {weather="locationId=Niederkrüchten-OWM, type=precipitation, property=rain"}
Number owmSnow "Schnee der letzten 3 Stunden [%.2f mm/h]" {weather="locationId=Niederkrüchten-OWM, type=precipitation, property=snow"}
und die .sitemap
Code: Alles auswählen
sitemap Smarthome label="Zuhause" {
Frame label="Datum" {
Text item=CurrentDate
Text item=CurrentTime
}
Text label="Wetter" icon="temperature" {
Frame label="Niederkrüchten (Open Weather Map)" {
Frame label="Heutiger Tag" {
Text item=owmTemperature icon="selfTemperature"
Text item=Temp_Garten valuecolor=[>27="red",>21="green",<=21="blue"]
Text item=owmHumidity icon="selfWater"
Text item=owmPressure
Text item=owmWindSpeed icon="wind"
Text item=owmClouds
}
}
}
Text label="Rollladen" icon=window {
Frame label="Rollladen EG" {
Frame label="Eßzimmer Terrasse" {
Switch item=REZhinten_Rauf
Switch item=REZhinten_Runter
}
Frame label="Eßzimmer vorne" {
Switch item=REZvorne_Rauf
Switch item=REZvorne_Runter
}
Frame label="Küche" {
Switch item=RKue_Rauf
Switch item=RKue_Runter
}
//Frame label="Wohnzmimmer" {
//Switch item=RWZ_rauf
//Switch item=RWZ_runter
//Selection item=RWZmove mappings=[ON="Schließen", OFF="Öffnen", STOP="Stop"]
//}
}
}
Text label="Außen" icon=garden {
Frame label="Terrasse" {
Switch item=SonoffTerrasse_Pergola icon="terrace"
Switch item=SonoffTerrasse_LampeBaum icon="garden"
Switch item=SonoffTerrasse_Mauer icon="lawnmower"
}
Frame label="Beleuchtung vorne" {
Switch item=SonoffGarage_Carport icon="garage"
Switch item=SonoffGarage_CarportEingang icon="outdoorlight"
Switch item=SonoffGarage_Aussen
Switch item=SonoffGarage_CarportSteckdose
}
Frame label="Panikbeleuchtung" {
Switch item=SonoffPanik_Garage icon="garage_detached"
Switch item=SonoffPanik_Terrasse icon="terrace"
}
}
Text label="Erdgeschoss" icon=sofa {
Frame label="Lampen" {
Switch item=LEDWand_power icon="lightbulb"
Slider item=LEDWand_dimmen
Switch item=SonoffWZ_Lampe icon="lightbulb"
Switch item=SonoffWZ_DVD icon="lightbulb"
Switch item=Stern_power icon="snow"
Switch item=Flur_power icon="lightbulb"
Switch item=Treppe_power icon="lightbulb"
Slider item=Treppe_dimmen
Colorpicker item=Treppe_color }
}
}
Wie gesagt über MQTTfx kann ich alle Geräte steuern, also läuft der mosquitto broker. Wenn ich in der Basic UI was machen sehe ich das auch im event.log :
2019-12-10 15:26:52.280 [ome.event.ItemCommandEvent] - Item 'SonoffWZ_DVD' received command ON
2019-12-10 15:26:52.297 [nt.ItemStatePredictedEvent] - SonoffWZ_DVD predicted to become ON
2019-12-10 15:26:52.326 [vent.ItemStateChangedEvent] - SonoffWZ_DVD changed from OFF to ON
2019-12-10 15:26:54.327 [ome.event.ItemCommandEvent] - Item 'SonoffWZ_DVD' received command OFF
2019-12-10 15:26:54.371 [nt.ItemStatePredictedEvent] - SonoffWZ_DVD predicted to become OFF
2019-12-10 15:26:54.384 [vent.ItemStateChangedEvent] - SonoffWZ_DVD changed from ON to OFF
MQTTfx empfängt aber nichts, wenn ich in der Basic UI was mache....
Und jetzt mit ich mit meinem Latein am Ende. Die Steuerung über Alexa geht übrigens auch ohne Probleme.
Jetzt schon mal Danke fürs Lesen