Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TS0222.md #3153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/devices/TS0222.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,24 @@ It's not possible to read (`/get`) or write (`/set`) this value.
The minimal value is `0` and the maximum value is `255`.
The unit of this value is `lqi`.

## Issues

### Not supported in HomeAssistant Zigbee2MQTT Addon

- Add new file `TS0222.js` in `/config/zigbee2mqtt` with following content

```const {battery, illuminance, linkQuality} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
zigbeeModel: ['TS0222'],
model: 'TS0222',
vendor: '_TZ3000_8uxxzz4b',
Copy link
Owner

@Koenkk Koenkk Oct 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This device is supported in the latest z2m version: https://github.com/Koenkk/zigbee-herdsman-converters/blob/d42ffbd235102c7f9a6c8f4291a09f8cad38a681/src/devices/tuya.ts#L6849 , so no external converter should be needed.

description: 'Automatically generated definition',
extend: [battery(), illuminance(), linkQuality()],
meta: {},
};

module.exports = definition;
```
- Reboot Zigbee2MQTT Addon
- Reset device (hold reset button with a pin until it starts blinking)