# Post Requests for Zwave Edge Drivers Here (community-created)

**URL:** <https://community.smartthings.com/t/post-requests-for-zwave-edge-drivers-here-community-created/237327>\
**Category:** Community Created Drivers\
**Tags:** edge-device, aftergroovy\
**Created:** [January 5, 2022, 3:30pm UTC](https://community.smartthings.com/t/post-requests-for-zwave-edge-drivers-here-community-created/237327 "2022-01-05T15:30:01Z")\
**Posts on this page:** 1\
**Showing post:** 460

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [August 29, 2022, 5:06pm UTC](https://community.smartthings.com/t/post-requests-for-zwave-edge-drivers-here-community-created/237327/460 "2022-08-29T17:06:36Z")

</div>

> [@Post Requests for Zigbee Edge Drivers Here (community-created)](https://community.smartthings.com/t/post-requests-for-zigbee-edge-drivers-here-community-created/262081/217):
>
> - application: **24**
> - endpointId: **05**
> - manufacturer: **Bosch**
> - model: **ISW-ZPR1-WP13** |  
> |Raw Description|05 0104 0402 00 07 0000 0003 0500 0020 0402 0001 0B05 01 0019|  
> |Firmware|[Check Now](https://graph-na04-useast2.api.smartthings.com/device/firmwareCheckNow/71932ef0-63bc-4318-8d24-9bd46bfb1ffc)|  
> |Current States|\* [checkInterval](https://graph-na04-useast2.api.smartthings.com/device/states/71932ef0-63bc-4318-8d24-9bd46bfb1ffc?attribute=checkInterval): **7260 s**
> - [motion](https://graph-na04-useast2.api.smartthings.com/device/states/71932ef0-63bc-4318-8d24-9bd46bfb1ffc?attribute=motion): **inactive** |

Hi @blkwll

Added to this driver version

```auto
┌─────────────┬──────────────────────────────────────┐
│ Name │ Zigbee Motion Sensor Mc │
│ Version │ 2022-08-29T16:56:08.171202188 │
└─────────────┴──────────────────────────────────────┘
  - id: "Bosch-ISW-ZPR1-WP13-Motion"
    deviceLabel: Bosch Motion Sensor
    manufacturer: Bosch
    model: ISW-ZPR1-WP13
    deviceProfileName: motion-temp-battery

```

I see in DTH that device use a battery map from 1.5v to 3.0v. others bosch devices use 2.1v to 3.0v  
This is the map used to convert volt to % in DTH

```auto
if(model == "ISW-ZPR1-WP13") {
        	batteryMap = [30: 100, 29: 100, 28: 100, 27: 100, 26: 100, 25: 90, 24: 90, 23: 70,
							  22: 70, 21: 50, 20: 50, 19: 30, 18: 30, 17: 15, 16: 1, 15: 0]
			minVolts = 15
			maxVolts = 30  

```

I used the bosch formula to others devices in the driver

```auto
local battery_pct = math.floor(((((value.value / 10) - minVolts) + 0.001) / (maxVolts - minVolts)) * 100)

```

It must works similar to map, tell me if it is so

---

_[View the full topic](https://community.smartthings.com/t/post-requests-for-zwave-edge-drivers-here-community-created/237327)._
