Koenkk / zigbee-herdsman-converters

Collection of device converters to be used with zigbee-herdsman
MIT License
863 stars 2.85k forks source link

Tuya device "TS0601" - "_TZE204_mtoaryre" and "TS0601" - "_TZE204_iaeejhvf" in property "sensor" missing the "occupied" and "unoccupied" #7331

Open BKuba65 opened 3 months ago

BKuba65 commented 3 months ago
    exposes: [
        ...
    e.enum('sensor', ea.STATE_SET, ['on', 'off', 'occupied', 'unoccupied'])
            .withDescription('The radar sensor can be set in four states: on, off, occupied and unoccupied. For example, if set to occupied, it will continue to maintain presence regardless of whether someone is present or not. If set to unoccupied, the unoccupied state will be maintained permanently.'),   
    ],

    meta: {
        tuyaDatapoints: [
            ...
            [115, 'sensor', tuya.valueConverterBasic.lookup({'on': tuya.enum(0), 'off': tuya.enum(1), 'occupied': tuya.enum(2), 'unoccupied': tuya.enum(3)})], 
        ],
    },
Koenkk commented 3 months ago

Done!

Changes will be available in the dev branch in a few hours from now.