Hi there,
I just spend a day troubleshooting why my motion sensor does not report any motion to OH3 and discovered that the “&” character in my Thing name seems to caused the issue.
No errors were reported, but the Items of the thing never got updated and had no values.
After I changed “Aqara Motion & Light 01” with “Aqara Motion and Light 01” it worked without any issues.
Is this a known restriction? I could not find anything in the docs.
Does not work:
//Motion & Light Sensors
//AQARA MotionLight Sensor
Thing topic motionlight01 "Aqara Motion & Light 01" {
Channels:
Type switch : occupancy [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.occupancy", on="true", off="false" ]
Type number : temperature [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.temperature" ]
Type number : voltage [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.voltage" ]
Type number : illuminance_lux [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.illuminance_lux" ]
Type number : illuminance [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.illuminance" ]
Type number : linkquality [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.linkquality" ]
Type number : battery [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.battery" ]
}
Does work:
//Motion & Light Sensors
//AQARA MotionLight Sensor
Thing topic motionlight01 "Aqara Motion and Light 01" {
Channels:
Type switch : occupancy [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.occupancy", on="true", off="false" ]
Type number : temperature [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.temperature" ]
Type number : voltage [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.voltage" ]
Type number : illuminance_lux [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.illuminance_lux" ]
Type number : illuminance [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.illuminance" ]
Type number : linkquality [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.linkquality" ]
Type number : battery [ stateTopic="zigbee2mqtt/0x00158d0007e0fbd1", transformationPattern="JSONPATH:$.battery" ]
}