# Drivers.luna is missing an array 'energy.batteries'

**URL:** <https://community.homey.app/t/drivers-luna-is-missing-an-array-energy-batteries/61620>\
**Category:** Developers\
**Created:** [March 12, 2022, 7:49pm UTC](https://community.homey.app/t/drivers-luna-is-missing-an-array-energy-batteries/61620 "2022-03-12T19:49:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reyntjensw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/reyntjensw/32/34189_2.png) [@reyntjensw](https://community.homey.app/u/reyntjensw)\
**Post date:** [March 12, 2022, 7:49pm UTC](https://community.homey.app/t/drivers-luna-is-missing-an-array-energy-batteries/61620/1 "2022-03-12T19:49:33Z")

</div>

Good evening

I’m trying to publish my app but I’m running into an issue

```auto
drivers.luna is missing an array 'energy.batteries' because the capability measure_battery is being used.

```

I have no idea where I’m missing the energy.batteries array.  
The code can be found here [GitHub - reyntjensw/Homey-FusionSolar](https://github.com/reyntjensw/Homey-FusionSolar)

Thanks

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 13, 2022, 1:40am UTC](https://community.homey.app/t/drivers-luna-is-missing-an-array-energy-batteries/61620/2 "2022-03-13T01:40:35Z")

</div>

It might have to do with

All devices with the `measure_battery` or `alarm_battery` capability must specify which type and the amount of batteries they use. This will be shown to the user in the UI.

For example, a device with 2x AAA batteries:

/drivers/\<driver\_id\>/driver.compose.json

```auto
{
  "name": { "en": "My Driver" },
  "images": {
    "small": "/drivers/my_driver/assets/images/small.png",
    "large": "/drivers/my_driver/assets/images/large.png"
  },
  "class": "thermostat",
  "capabilities": ["measure_battery", "measure_temperature", "target_temperature"],
  "energy": {
    "batteries": ["AAA", "AAA"]
  }
}

```

Possible battery values are:

- `LS14250`
- `C`
- `AA`
- `AAA`
- `AAAA`
- `A23`
- `A27`
- `PP3`
- `CR123A`
- `CR2`
- `CR1632`
- `CR2032`
- `CR2430`
- `CR2450`
- `CR2477`
- `CR3032`
- `CR14250`
- `INTERNAL`
- `OTHER`

(Maybe ‘PowerPack’ should be added by Athom)

[Source](https://apps.developer.homey.app/the-basics/devices/energy#batteries)

---

<div class="post-metadata">

**Author:** ![reyntjensw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/reyntjensw/32/34189_2.png) [@reyntjensw](https://community.homey.app/u/reyntjensw)\
**Post date:** [March 13, 2022, 10:59am UTC](https://community.homey.app/t/drivers-luna-is-missing-an-array-energy-batteries/61620/3 "2022-03-13T10:59:31Z")

</div>

> [@Peter\_Kawa](#):
>
> OTHER

Perfect, thanks @Peter_Kawa
