Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.01k stars 1.67k forks source link

[New device support]: #19986

Closed jkufner closed 3 months ago

jkufner commented 10 months ago

Link

https://www.niceboy.eu/en/product/orbis-meteo-plus

Database entry

{"id":2,"type":"EndDevice","ieeeAddr":"0xa4c1381e70da3969","nwkAddr":54835,"manufId":4417,"manufName":"_TZE200_t3xd7l44","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"�'�,f�'�,\u0012","65506":34,"65508":0,"65534":0,"stackVersion":0,"dateCode":"","appVersion":64,"manufacturerName":"_TZE200_t3xd7l44","zclVersion":3,"modelId":"TS0601","powerSource":3}},"genTime":{"attributes":{}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":64,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-708457359},"lastSeen":1701543953735,"defaultSendRequestWhen":"immediate"}

Comments

I've managed to retrieve temperature and humidity relatively easily, but the current time is not showing on the display (I expect that a time sync is not happening) and battery state is not reported.

I can see the following message in the logs: Datapoint 9 not defined for '_TZE200_t3xd7l44' with value 0 No idea what it is.

Also, the display has ability to show temperature in °C or °F, and it has a smiley face and (probably) a signal strength indicator in the corner. No idea how to change these. The bottom right corner should show the current time.

External converter

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');

const definition = {
    fingerprint: [
        {
            modelID: 'TS0601',
            manufacturerName: '_TZE200_t3xd7l44',
        },
    ],
    model: 'Orbis Meteo + Sensor',
    vendor: 'Niceboy',
    description: 'Temperature and humidity with a display',
    fromZigbee: [tuya.fz.datapoints],
    toZigbee: [tuya.tz.datapoints],
    onEvent: tuya.onEventSetTime, // Add this if you are getting no converter for 'commandMcuSyncTime'
    configure: tuya.configureMagicPacket,
    exposes: [
        // Here you should put all functionality that your device exposes
        e.temperature(),
        e.humidity(),
        e.linkquality(),
    ],
    meta: {
        // All datapoints go in here
        tuyaDatapoints: [
            [1, "temperature", tuya.valueConverterBasic.divideBy(10)], // Temperature x 10
            [2, "humidity", tuya.valueConverter.raw], // Humidity
        ],
    },
};

module.exports = definition;

Supported color modes

No response

Color temperature range

No response

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days