Skip to content

Conversation

@MohammedAlhaid
Copy link

This PR adds support for the Tuya ME202Z submersible liquid level sensor (TS0601, _TZE284_mxujdmxo).

Features:

  • Reports liquid height in cm
  • Reports liquid level percentage
  • Configurable tank depth (mm)
  • Reports power supply voltage

Tested locally and working with Zigbee2MQTT.

@@ -0,0 +1,106 @@
import * as tuya from 'zigbee-herdsman-converters/lib/tuya';
Copy link
Owner

Choose a reason for hiding this comment

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

Could you move this to tuya.ts?

const lastKnown: Record<string, { depthMm?: number }> = {};

// FromZigbee converter
const fzLocal = {
Copy link
Owner

Choose a reason for hiding this comment

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

Please use tuyaDatapoints instead of this converter, you can find examples in tuya.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants