# HomeyDuino names of identical capabilities

**URL:** <https://community.homey.app/t/homeyduino-names-of-identical-capabilities/23414>\
**Category:** Questions & Help\
**Created:** [December 30, 2019, 11:37am UTC](https://community.homey.app/t/homeyduino-names-of-identical-capabilities/23414 "2019-12-30T11:37:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MCFurry](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mcfurry/32/12625_2.png) [@MCFurry](https://community.homey.app/u/MCFurry)\
**Post date:** [December 30, 2019, 11:37am UTC](https://community.homey.app/t/homeyduino-names-of-identical-capabilities/23414/1 "2019-12-30T11:37:08Z")

</div>

I recently got a smart-meter in my house, which I of course had to connect to Homey as well. Using an ESP8266 that gets it’s power-supply from the P1 port itself I wrote a small program based on this repo: [GitHub - jantenhove/P1-Meter-ESP8266: Software for the ESP8266 that sends P1 smart meter data to Domoticz (with CRC checking)](https://github.com/jantenhove/P1-Meter-ESP8266)  
Instead of Domoticz I based my code on the HomeyDuino library which works beautifully!  
One problem however, in my code I add the following capabilities:

> void setup() {  
> Homey.begin(“P1 Smart Meter”);  
> Homey.setClass(“other”);  
> Homey.addCapability(“measure\_power.consumed”);  
> Homey.addCapability(“measure\_power.produced”);  
> Homey.addCapability(“meter\_power.producedPeak”);  
> Homey.addCapability(“meter\_power.producedOffPeak”);  
> Homey.addCapability(“meter\_power.peak”);  
> Homey.addCapability(“meter\_power.offPeak”);
> 
> Homey.addCapability(“measure\_voltage.L1”);  
> Homey.addCapability(“measure\_current.L1”);  
> Homey.addCapability(“measure\_voltage.L2”);  
> Homey.addCapability(“measure\_current.L2”);  
> Homey.addCapability(“measure\_voltage.L3”);  
> Homey.addCapability(“measure\_current.L3”);
> 
> Homey.addCapability(“meter\_gas”);

So I have multiple of the same capabilities. The homey app does show them all, but without any different names:

 ![photo5784973897630855587](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5d14e053294550bda354d06fc3031f7c812c356e.jpeg)

In this screenshot, my “measure\_power.consumed” is 330W and “measure\_power.produced” is 0W. But there is now way to tell which is what in the app? They both are named “ENERGIE”.  
Same for the meter\_power, measure\_voltage and measure\_current, they all show up, probably in the order created, but without a distinguishable name. Is there any way to fix this from the arduino side?

EDIT:  
For those interested, I decided to share my code here:

> **[GitHub - MCFurry/P1-Meter-ESP8266: Software for the ESP8266 that sends P1...](https://github.com/MCFurry/P1-Meter-ESP8266)**
>
> Software for the ESP8266 that sends P1 smart meter data to Homey (with CRC checking) - GitHub - MCFurry/P1-Meter-ESP8266: Software for the ESP8266 that sends P1 smart meter data to Homey (with CRC ...

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 30, 2019, 11:42am UTC](https://community.homey.app/t/homeyduino-names-of-identical-capabilities/23414/2 "2019-12-30T11:42:58Z")

</div>

I don’t think it’s possible to override the default “title” of capabilities ☹

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [December 30, 2019, 11:21pm UTC](https://community.homey.app/t/homeyduino-names-of-identical-capabilities/23414/3 "2019-12-30T23:21:09Z")

</div>

you can change a (default) capabilities title with  
[capabilitiesOptions](https://apps.developer.athom.com/tutorial-Drivers-Capabilities.html)  
[example Snippet](https://github.com/athombv/com.fibaro/blob/master/app.json#L10443)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 31, 2019, 7:23am UTC](https://community.homey.app/t/homeyduino-names-of-identical-capabilities/23414/4 "2019-12-31T07:23:08Z")

</div>

Yes, that’s an option if you’re writing an app, but HomeyDuino is an existing app that doesn’t seem to provide a title override feature for capabilities that are defined by a device.

---

<div class="post-metadata">

**Author:** ![MCFurry](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mcfurry/32/12625_2.png) [@MCFurry](https://community.homey.app/u/MCFurry)\
**Post date:** [December 31, 2019, 7:56am UTC](https://community.homey.app/t/homeyduino-names-of-identical-capabilities/23414/5 "2019-12-31T07:56:53Z")

</div>

Hmm too bad it’s not an option (yet). @Caseda the feature you’re mentioning is exactly what I’m looking for, but unfortunately it’s not supported by HomeyDuino at the moment as @robertklep points out.  
I briefly looked through the homeyduino library and the app related to it and indeed there doesn’t seem to be an option or a quick around for this at the moment…
