rogro82 / io.homeassistant

Home-assistant integration for Homey
GNU General Public License v3.0
24 stars 14 forks source link

How do I name capabilities #20

Open balsteroid opened 3 years ago

balsteroid commented 3 years ago

Awesome work!

When I add a compound, all the capabilities are listed as value only, how do I name these capabilities in yaml? It would be helpful to be able to rename the default "Power" for instance, now I have one compound that has 4 sensors with the name Power.

I have tried title, or id bu Yaml keep giving errors on duplicate values, also Homey does not pick up this naming scheme it seems.

klim123123 commented 3 years ago

Just add .1 or .2 or .3 at the end. Here is my example

mercury231_electricity_counter: name: Mercury-231 Electricity Counter icon: measure_power capabilities: meter_power.day: sensor.mercury231_t1 meter_power.night: sensor.mercury231_t2 measure_power: sensor.mercury231_p measure_power.1: sensor.mercury231_p1 measure_power.2: sensor.mercury231_p2 measure_power.3: sensor.mercury231_p3 measure_current.1: sensor.mercury231_i1 measure_current.2: sensor.mercury231_i2 measure_current.3: sensor.mercury231_i3 measure_voltage.1: sensor.mercury231_u1 measure_voltage.2: sensor.mercury231_u2 measure_voltage.3: sensor.mercury231_u3