Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I name capabilities #20

Open
balsteroid opened this issue Jan 14, 2021 · 1 comment
Open

How do I name capabilities #20

balsteroid opened this issue Jan 14, 2021 · 1 comment

Comments

@balsteroid
Copy link

balsteroid commented Jan 14, 2021

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants