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)
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:
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: