AOYAN AY02SZ
| Model | AY02SZ |
| Vendor | AOYAN |
| Description | Vibration sensor |
| Exposes | vibration, contact, battery, sensitivity |
| Picture | ![]() |
Options
How to use device type specific configuration
time_start: Reply to Tuya-specific time synchronization requests: "1970" - Reply with seconds since 1970/01/01 (recommended, should stop the device from asking), "2000" - Reply with seconds since 2000/01/01 (use if the weekday is wrong with 1970), "off" - Don't reply (use if replying causes too much traffic). Default for this device: "off". The value must be one of1970,2000,off
Exposes
Vibration (binary)
Indicates whether the device detected vibration. Value can be found in the published state on the vibration property. It's not possible to read (/get) or write (/set) this value. If value equals true vibration is ON, if false OFF.
Contact (binary)
Indicates if the contact is closed (= true) or open (= false). Value can be found in the published state on the contact property. It's not possible to read (/get) or write (/set) this value. If value equals false contact is ON, if true OFF.
Battery (numeric)
Remaining battery in %, can take up to 24 hours before reported. Value can be found in the published state on the battery property. It's not possible to read (/get) or write (/set) this value. The minimal value is 0 and the maximum value is 100. The unit of this value is %.
Sensitivity (numeric)
The larger the value, the more sensitive it is (refresh and update only while active). Value can be found in the published state on the sensitivity property. It's not possible to read (/get) this value. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"sensitivity": NEW_VALUE}. The minimal value is 1 and the maximum value is 50.

