Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BKuba65 opened this issue Apr 4, 2024 · 1 comment

Comments

@BKuba65
Copy link

BKuba65 commented Apr 4, 2024

    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
Copy link
Owner

Koenkk commented Apr 4, 2024

Done!

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

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

No branches or pull requests

2 participants