KEMBAR78
[New device support]: SMATRUL Zigbee Universal IR Remote Control · Issue #28911 · Koenkk/zigbee2mqtt · GitHub
Skip to content

[New device support]: SMATRUL Zigbee Universal IR Remote Control #28911

@eximius313

Description

@eximius313

Link

https://www.alibaba.com/product-detail/SMATRUL-Zigbee-Universal-IR-Remote-Control_1601422598609.html

Database entry

{ zigbeeModel: ['TS1201'], model: 'TS1201', vendor: '_TZ3290_785fbxik', description: 'Automatically generated definition', extend: [m.onOff({"powerOnBehavior":false})], meta: {}, };

Zigbee2MQTT version

2.6.2

Comments

This device is a Universal IR Remote and should have the same functions as https://www.zigbee2mqtt.io/devices/iH-F8260.html#tuya-ih-f8260:

{
    "description": "Universal smart IR remote control",
    "exposes": [
        {
            "access": 2,
            "description": "Turn on to learn new IR code",
            "label": "Learn ir code",
            "name": "learn_ir_code",
            "property": "learn_ir_code",
            "type": "binary",
            "value_off": "OFF",
            "value_on": "ON"
        },
        {
            "access": 1,
            "description": "The IR code learned by device",
            "label": "Learned ir code",
            "name": "learned_ir_code",
            "property": "learned_ir_code",
            "type": "text"
        },
        {
            "access": 2,
            "description": "The IR code to send by device",
            "label": "Ir code to send",
            "name": "ir_code_to_send",
            "property": "ir_code_to_send",
            "type": "text"
        },
        {
            "access": 1,
            "category": "diagnostic",
            "description": "Remaining battery in %, can take up to 24 hours before reported",
            "label": "Battery",
            "name": "battery",
            "property": "battery",
            "type": "numeric",
            "unit": "%",
            "value_max": 100,
            "value_min": 0
        },
        {
            "access": 1,
            "category": "diagnostic",
            "description": "Voltage of the battery in millivolts",
            "label": "Voltage",
            "name": "voltage",
            "property": "voltage",
            "type": "numeric",
            "unit": "mV"
        },
        {
            "access": 1,
            "category": "diagnostic",
            "description": "Link quality (signal strength)",
            "label": "Linkquality",
            "name": "linkquality",
            "property": "linkquality",
            "type": "numeric",
            "unit": "lqi",
            "value_max": 255,
            "value_min": 0
        }
    ],
    "model": "iH-F8260",
    "options": [],
    "source": "native",
    "supports_ota": false,
    "vendor": "Tuya"
}

External definition

import * as m from 'zigbee-herdsman-converters/lib/modernExtend';

export default {
    zigbeeModel: ['TS1201'],
    model: 'TS1201',
    vendor: '_TZ3290_785fbxik',
    description: 'Automatically generated definition',
    extend: [m.onOff({"powerOnBehavior":false})],
    meta: {},
};

What does/doesn't work with the external definition?

Reading and sending IR codes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions