ich habe mit zigbee2mqtt eine Phillips Hue Fernbedienung angebunden.
Und folgendes in OpenHAB konfiguriert:
things:
Code: Alles auswählen
Bridge mqtt:broker:5c87c622 [ host="localhost", secure=false ]
{
Thing topic zigbeebridge "Zigbee2mqtt Bridge" {
Channels:
Type switch : permitJoin [ commandTopic="zigbee2mqtt/bridge/config/permit_join", on="true", off="false" ]
Type string : state [ stateTopic="zigbee2mqtt/bridge/state" ]
Type string : logType [ stateTopic="zigbee2mqtt/bridge/log", transformationPattern="JSONPATH:$.type" ]
Type string : logMessage [ stateTopic="zigbee2mqtt/bridge/log", transformationPattern="JSONPATH:$.message" ]
}
Thing topic 0x0017880104e72388 "Hue Switch" {
Channels:
Type string : action "Remote Action" [ stateTopic="zigbee2mqtt/0x0017880104e72388", transformationPattern="JSONPATH:$.action" ,trigger = true ]
}
}
rule:
Code: Alles auswählen
rule "Channel Trigger"
when
Channel "mqtt:topic:5c87c622:0x0017880104e72388:action" triggered
then
logInfo("Trigger",receivedEvent.toString)
end
Gibt es vielleicht andere Wege?
Vielen dank und Viele Grüße