Skip to content

Commit

Permalink
feat(add): THS317-ET-EY @awhitwam Koenkk/zigbee2mqtt#19804
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed May 2, 2024
1 parent 71e39f7 commit 6696098
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/devices/owon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import tz from '../converters/toZigbee';
import * as constants from '../lib/constants';
import * as reporting from '../lib/reporting';
import {battery, iasZoneAlarm} from '../lib/modernExtend';
import * as tuya from '../lib/tuya';
const e = exposes.presets;
const ea = exposes.access;

Expand Down Expand Up @@ -267,6 +268,22 @@ const definitions: Definition[] = [
device.save();
},
},
{
fingerprint: tuya.fingerprint('TS0201', ['_TZE200_01fvxamo']),
model: 'THS317-ET-EY',
vendor: 'OWON',
description: 'Temperature sensor with probe',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
configure: tuya.configureMagicPacket,
exposes: [e.temperature(), e.battery()],
meta: {
tuyaDatapoints: [
[1, 'temperature', tuya.valueConverter.divideBy10],
[4, 'battery', tuya.valueConverter.raw],
],
},
},
{
zigbeeModel: ['THS317-ET'],
model: 'THS317-ET',
Expand Down

0 comments on commit 6696098

Please sign in to comment.