obere ist mit untere ohne gyroscope
Code: Alles auswählen
Thing mqtt:topic:mosquitto:0x00158d00042720fe "Xiaomi TasterSH" (mqtt:broker:mosquitto) @ "MQTT" {
Channels:
Type string : action "TasterSH"
[ stateTopic="zigbee2mqtt/0x00158d00042720fe", transformationPattern="JSONPATH:$.action" ]
Type string : click "TasterSHack"
[ stateTopic="zigbee2mqtt/0x00158d00042720fe", transformationPattern="JSONPATH:$.click" ]
Type number : linkquality "RSSISH"
[ stateTopic="zigbee2mqtt/0x00158d00042720fe", transformationPattern="JSONPATH:$.linkquality" ]
Type number : battery "BatterieSH"
[ stateTopic="zigbee2mqtt/0x00158d00042720fe", transformationPattern="JSONPATH:$.battery" ]
Type number : voltage "VoltageSH"
[ stateTopic="zigbee2mqtt/0x00158d00042720fe", transformationPattern="JSONPATH:$.voltage" ]
}
Thing mqtt:topic:mosquitto:0x00158d000205a1c8 "Xiaomi TasterSH" (mqtt:broker:mosquitto) @ "MQTT" {
Channels:
Type string : click "Taster"
[ stateTopic="zigbee2mqtt/0x00158d000205a1c8", transformationPattern="JSONPATH:$.click" ]
Type number : linkquality "RSSI"
[ stateTopic="zigbee2mqtt/0x00158d000205a1c8", transformationPattern="JSONPATH:$.linkquality" ]
Type number : battery "Batterie"
[ stateTopic="zigbee2mqtt/0x00158d000205a1c8", transformationPattern="JSONPATH:$.battery" ]
Type number : voltage "Voltage"
[ stateTopic="zigbee2mqtt/0x00158d000205a1c8", transformationPattern="JSONPATH:$.voltage" ]
}
Code: Alles auswählen
//Aqara Taster shake
String AqaraTastSH "Click [%s]" <action> {channel="mqtt:topic:mosquitto:0x00158d00042720fe:click"}
String AqaraTastShacke "Shake [%s]" <action> {channel="mqtt:topic:mosquitto:0x00158d00042720fe:action"}
Number AqaraTastSH_RSSI "Linkquality [%d] " <network> {channel="mqtt:topic:mosquitto:0x00158d00042720fe:linkquality"}
Number AqaraTastSH_Batt "Batterie " <battery> {channel="mqtt:topic:mosquitto:0x00158d00042720fe:battery"}
//Aqara Taster
String AqaraTast "Click [%s]" <action> {channel="mqtt:topic:mosquitto:0x00158d000205a1c8:click"}
Number AqaraTast_RSSI "Linkquality [%d] " <network> {channel="mqtt:topic:mosquitto:0x00158d000205a1c8:linkquality"}
Number AqaraTast_Batt "Batterie " <battery> {channel="mqtt:topic:mosquitto:0x00158d000205a1c8:battery"}
Code: Alles auswählen
[WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path '$.action' in '{"battery":100,"voltage":3095,"linkquality":18,"click":"single"}'
[WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path '$.click' in '{"battery":100,"voltage":3095,"linkquality":28,"action":"shake"}'