-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Update tuya.ts to correct presence sensor ZY-M100-24G #6959
Conversation
src/devices/tuya.ts
Outdated
e.numeric('fading_time', ea.STATE_SET).withValueMin(1).withValueMax(1500).withValueStep(1).withDescription('Delay time').withUnit('s'), | ||
e.numeric('presence_sensitivity', ea.STATE_SET).withValueMin(1).withValueMax(10).withValueStep(1).withDescription('Presence sensitivity'), | ||
], | ||
exposes.enum('state', ea.STATE, ['none', 'presence', 'move']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the build? e.g. exposes.enum
should be e.enum
@Koenkk
|
src/devices/tuya.ts
Outdated
e.numeric('move_sensitivity', ea.STATE_SET).withValueMin(1) | ||
.withValueMax(10) | ||
.withValueStep(1) | ||
.withDescription(''), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed this initially, but could you add descriptions to all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Koenkk
done
Thanks! |
Hi, This latest update seems to have broken the ZY-M100-24G devices. They are working as far as detecting presence, but I am unable to change any settings relating to sensitivity, timeout etc. since the most recent update. For some values it looks like it changed correctly but goes back to the previous value when you refresh the page, and some, (like Presence Timeout aka Fading Time) give this error: No converter available for 'presence_timeout' (11) Presence Sensitivity is the other value that can't be changed, but doesn't give an error. I see both of these were changed in the messages above. Not sure if this is the right place to report this. Happy to post if elsewhere if more appropriate. Also spotted a spelling mistake here: e.presence().withDescription('Ocuppancy'), Thanks for the great work! |
modify per
Koenkk/zigbee2mqtt#18237