-
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
MOSZB-140 : Add configurable occupancy endpoints #4731
Conversation
e.g. the MOSZB-140 has 35 as the default endpoint, most of the config on genBasic, genPowerCfg and ssIasZone are there. Additionally it uses seperate endpoints for temperature and illumance (40 and 39). It also has 3 (!!) msOccupancySensing endpoints (34, 40, 41), for those we do want to provide a suffix to the property name. For those we don't really need a suffix for the propery name, having `{default: 35, 'logic_a': 34, 'logic_b': 40, 'logic_c': 41}` mostly works but tempeature now has _undefined appended. With this change, instead of appending undefined, we just return the original proporty.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Hitting a new problem:
https://www.develcoproducts.com/media/1697/moszb-130-14x-technical-manual-motion-sensor-040721.pdf I'm sure I added them correctly to herdsman, I also tried reading them without the manufactureCode set but same result as with it set. |
It looks good indeed, but maybe we are missing something. Can you make a sniff of just the read request? |
Sure, I'll try to grab it this week, busy week ahead so might be in the weekend. |
My development coordinator, so not the same key as my production one.
This one is it joining without the reading the troublesome attributes: Here is a read to one of the troublesome attributes: ( I did 2 reads, one with specifying the manufacturerCode and one without, I used 2 test converters for this so I can just share the exact code:
|
Everything looks correct to me; the cluster |
Yeah, I’m assuming there docs are wrong.I’ll pull out a few general fixes from this into a separate PR and close this one, no need to add the other occupancies if they are just going to be the same except a different timeout.~ sjorgeOn 5 Oct 2022, at 16:53, Koen Kanters ***@***.***> wrote:
Everything looks correct to me; the cluster 0x0406, manufcode 0x1015 and attribute 0xfc02. So it looks their docs are either not correct or maybe there are multiple revisions/fws for this device.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
There was a issue were configure kept failing due to timeouts on reading these. As show in Koenkk#4731 the tech manual might not be 100% accurate. So putting them in a try/catch should at least let the configuration continue settings up everything else.
Closed in favor of #4741, will re-open if I do somehow end up hearing back from develco on this. |
There was a issue were configure kept failing due to timeouts on reading these. As show in Koenkk#4731 the tech manual might not be 100% accurate. So putting them in a try/catch should at least let the configuration continue settings up everything else.
* utils: postfixWithEndpointName should handle "undefined" better e.g. the MOSZB-140 has 35 as the default endpoint, most of the config on genBasic, genPowerCfg and ssIasZone are there. Additionally it uses seperate endpoints for temperature and illumance (40 and 39). It also has 3 (!!) msOccupancySensing endpoints (34, 40, 41), for those we do want to provide a suffix to the property name. For those we don't really need a suffix for the propery name, having `{default: 35, 'logic_a': 34, 'logic_b': 40, 'logic_c': 41}` mostly works but tempeature now has _undefined appended. With this change, instead of appending undefined, we just return the original proporty. * MOSZB-140: cleanup - drop read of batteryVoltage, reporting configuration does this - update reporting settings to match with the suggestions from develco (esp illumantion was very spanny and battery draining with the defaults) * MOSZB-140: try/catch on read of develcoAlarmOffDelay/develcoLedControl There was a issue were configure kept failing due to timeouts on reading these. As show in #4731 the tech manual might not be 100% accurate. So putting them in a try/catch should at least let the configuration continue settings up everything else.
* utils: postfixWithEndpointName should handle "undefined" better e.g. the MOSZB-140 has 35 as the default endpoint, most of the config on genBasic, genPowerCfg and ssIasZone are there. Additionally it uses seperate endpoints for temperature and illumance (40 and 39). It also has 3 (!!) msOccupancySensing endpoints (34, 40, 41), for those we do want to provide a suffix to the property name. For those we don't really need a suffix for the propery name, having `{default: 35, 'logic_a': 34, 'logic_b': 40, 'logic_c': 41}` mostly works but tempeature now has _undefined appended. With this change, instead of appending undefined, we just return the original proporty. * MOSZB-140: cleanup - drop read of batteryVoltage, reporting configuration does this - update reporting settings to match with the suggestions from develco (esp illumantion was very spanny and battery draining with the defaults) * MOSZB-140: try/catch on read of develcoAlarmOffDelay/develcoLedControl There was a issue were configure kept failing due to timeouts on reading these. As show in Koenkk#4731 the tech manual might not be 100% accurate. So putting them in a try/catch should at least let the configuration continue settings up everything else.
No description provided.