[APP][Pro] Device Capabilities - Enhance the capabilities of devices

I tried creating a adc-VD of type wall socket. I expected this to add the on/off capabilities. Is my line of thought correct, or why does this not happen?

Like a wall plug device, I would like to switch the device on/off (so when in off state, the device is greyed out in the UI).

1 Like

You need to add a button: on off, and create flow cards.
I am at home in about 30 minutes, ill create a AVD for you!

Thanks for the offer Arie, but I now have sufficient info I think.

Really generous though!

2 Likes

Okay Roger :wink:

Still, since i was allready done when reading this, i’ve posted the AVD (including the flows) on Share Your Device.

You can select it while creating a new AVD:
image

image

1 Like

Known bug: I am having some issues creating a device from templates, while creating and then reading templates works fine.

In debug it works, when i install normal, it doesn’t always work.

Working on it.

EDIT

Resolved in 2.6.31, in test now (waiting for the review).

Hey Roger, and other people.

I just created one more AVD Template OnOff and Dim AVD with Default Flowcards (with Flow).

This to explain how Homey handles Devices classes and capabilities.

Device Class doesn’t create anything in Homey, as far as i know.
It only reacts.

Capabilities (what i call Fields) are what creates Homey default flowcards.
For instance, when a Device, no matter the class, has an OnOff capability (only one real OnOff can exists), you will get several flowcards: Devices Turned On, Device Turned Off, Turn On Device, Toggle Device on/off and Turn Off Device.
All the cards on the next image, are created because the AVD has a OnOff(button)+create-flowcards and a Dim(number)+create-flowcards.
afbeelding

This is why there is a Create FlowCards property when you select a default ShowAs type.

Back to Device class.
The example AVD can be turned On Off / dimmed through the flowcards in the image above.
But if you use Default Zone/Class flowcards, it would only react if you have the same Class.
Also other apps, like Group search for classes (sometimes).
Thats why i included the Class option.

Lets say you use the AVD as “real light control”, then you might want it to react to the default flowcard: Turn [[device-class]] On/Off.
If you put this on Turn All Lights On, the AVD is only gonna react if the class is Light (and it needs the OnOff button with flowcards).
image

I hope this clarifies things?

2 Likes

Hi,
I just got my device working nicely.
image

The device is greyed out when not charging, the charging power and energy are neatly updated when charging is in progress.

Now I wanted to add a charging duration, and there are 2 struggles I encountered.

  • I added a text field and called it Duration.
  • I tried choosing a clock as icon for this field, but cannot seem to find the right icon for that. I have seen it, but I just cannot select the right one in one go - and a trial and error is time consuming.
  • I cannot get the duration to work

Struggle/Question 1: could someone please post a complete overview of the default icons in the app?

Struggle/Question 2: I try to calculate the duration since charging started. I can foresee several ways to do it but I’m sure there’s an easier way:

  • use a timer/stopwatch/chronograph… app but I cannot seem to find a way to extract the elapsed time (there are no flow cards for this it seems)
  • use javascript - but I’m not very proficient at this it seems. Taking two snapshots and calculating the time elapsed is a bit of an over-ask for me.

What would be a simple way - and do you have an example somewhere?

Thanks for considering to spend time on my request.

1 Like

You can see al Default icons in the App Settings, where you can change the Custom Icons.
Also, you can give the customicons a name in App Settings by double-clicking in the textarea with the Custom_** name in it. A field will appear and you can alter the custom name to what you want.
After that, the custom icon list in the Device Settings will show your own custom name.

I was allready thinking about to more DC Flowcards:

  • One to ask for the duration (hours, minutes, seconds) that an Insight was changed.
  • The average of a Insights in the last ****

I think card one would solve your question 2?

2 Likes

Aaaah H.O.O.P! That was/is a great app.

1 Like

Hi Arie,

Yes, excellent:
Question 1 solved in App Settings icon overview (which displays an error btw. when opening app settings: Error: Cannot read properties of undefined (reading ‘flow’) - but it works nonetheless)

Question 2 - yes it would be great if there were a flow card duration-since-last-change for a property. Thanks for considering.

Roger

1 Like

@RogerSt Please send me a app diagnostic after you recieved that error, that would help me resolve it.

Wait, are you running Test or Live?
Live has a bug yeah, solved in test (with a lott of other improvements and bugfixes).

H.O.O.P. has a new flowcard (handy for AVDs): Change a device name.

Using Live channel.
diagID = f8e654df-553f-4de9-b857-d1187a071d50

1 Like

Yeah, sorry, can’t help you: allready solved in the Test version, waiting to be reviewed by Athom.
You can install the test version off course: Device Capabilities | Homey, it resolves more issues like: Hitting the refresh for AVD templates is gonna created a never stoping loop, because there was a faulty itiration, which only showed up now we have more than 20 posts in the Templates topic.

So, beter install the test :wink:

If the issues persists, let me know!

1 Like

Solved my Q2 with JavaScript:
image

2 Likes

Not urgent - Not critical - I can wait for the new Live push - thanks Arie!

1 Like

Please share your solution :grimacing:

1 Like

Of course. See this posts:

2 Likes

I have 3 Zigbee dimmer and i want them in sync

Most of the time de Lock is not working, because after using a few times the lock is on.

can some help me?

H4sIAAAAAAACA91bTW8cxxH9K8LCR7XR1Z/VewySnIwc4iCHGITQn9TC/FAoUogg67/n9e4sxZ0dmS3vShB8kURxZrrrVdWrejU9H1Zltf6wImN9ZhlFUjYIEziJWK0VxSvpUkjaxNCvu1mtV3+p5cVPm5tf365erjJ+vtpcvr7Hv+/7BWVzvb/ur5vrF1f1Xb3a/W5183Cd6t3q48ePL1eptmgpGJGzJmFUZBGzqyKZ3FSW0pNLT9f7Z82v709ZsFKCUSoKqT0Lk4MT0dokqjVSWZN0yf7Jc67r3Yv/bC5TrX94TSz6rl9lg1UhOQ1AtYSpmUWw1YtCIZimjHclPXnaPzbvanyYPQ2AxZhLsV6YFrQwHL2IJhahXAnsam1Zy/1TfrrNv04PSLe3VzXerPpu4mr9y4fVBv8bCvlClgUXp4SpMQiOVIXXtXpndE6J8YAnWNy+efHz+5v84t/qR4nf1NX6/u6hbqH5sDKWrdPYkdcBFrZce/BkEUoNyhDgDbVf97/VWr5cvV+tifH3LZ7++va6vl+X+m6T63ooBl9uDYADXuXX8eaylsnQ+7vN5SWgerl6CzNXGmvqkIowVmdhNOFZEnBFq1qkVmF+XV0AFCApo3JNKESAME4aXANQWEc2rmrjjD3Yu17c+1A8D+49+qZLlE7YEpswvsE7haJQnI2kIJuXbrv3xgpOzPhNBlam1iyislFU0kp568loNe1dK95t38jTtz9tO+b7ze3NftfIr0gl4xHV4xExAkPHeA5zss2y9CmtLrZROCXQ6pdfdpu4jjcR9q+vbi83+beRfLm42EZ04KKDgd+sDlWYZKwIuTgh4WJ40WQE9QSA0m4CoP+9uXlX7+7hgHWLV28Rx7cP928e7v+FmO62BJeVJUSPZqSG0R6x7DKJ6JxXGbDLmrstu7v+3h/Rb5NOUbAlCN08HKdjFNx6KJtKTUuVrObtbSfAvwW8o59vb8pm6wAAMbTyBISVOyBsB2Jnwd/u7m7vvsSJZ7HgMH7GMIetG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sJJWgXX/hAfPgVtF5DFSeEWbVaGt3XKApFV1NE2jtO+1AiEPCN4GyJlEnItb0h5s36izq+BybR/DGFgJ220W98f2IVJfHSDhlM5zSeLZ5dx6NeY7NZ6eCrADLZ4lyHmVvPAzSV0nGNqMplo/aaKuOVCYjNHw/EUlO6n46DCAkRq6hasdkAjUll1RmtD54L0VxDqoctUykWvvI1/iC3oKaHGybT1aVEvsNaBURg30kJmFBCk0L6xur6qONFI+Q0ANn/lQumqNCZsrcZxAgvORrEymZ4rRylOTSPNpWdDwMEk2a+lseNiJl7tsjpkQB29LfSGtpTr5lOAhb7cWEtIhaYT+gTfBVi0DrCBo3AE0z1SPziyhWdv5TJCL21PvZYkOoyqelEysZ67WeYihHKDecew+K9jqYHDWzLVF/K7EVPWVCqgkbo0HLxlqE7NHMMqF+1ayt8jOxtUuf31dbyeniJcDOSFYgblDIFUqrbRFEngnCJX2Pamto34dqa16HTpRbA0k8yHqDcf915dYQkR/KLbLmuIUcitNeEIbYaq5BtpPxueAa5a9T6Kq1ZcU1tHYXISNla26tWTjfPFzITqlbn7F2bO2u3Ufodm6tW/DtMAGfwrefsXZs7e7bEVjm8mspd6oL5NlEoRtt1Q00ETpT0ZqvIRcTap46wZGwm6+o+YQVh8CYr+hOWXHowpnEpO2XAZ805gBMCxpzwJ3Hd40A9LzGbE2xTGz7RwHQ1T5bEZPrQ0RQXzU552h3GTZy4UxjnrMAfmWROfTx01SNjr8UeDw/OXIs7tnm5vJ+5JW7/NEevzf/8mNpu4OQI0eADq1fOp4ycj7om1g/fD5n95HfyMdjh9brY+uHDpN+G9+PHuaczorHgtJVRB8U9TO/FvvODpGScvOtOOt4fppauz/FaerH7B86wLyXge5JCHRzSr2K7z8ddRxA8/HEx/bO/gXq7tjbekV4zvXD1f3mzdWm/wdNH+IOQDRxL+0PKqvjUjj0GdjgabXBLwkvYMDFx/8D9lpDIzI9AAA=
1 Like

Okay, i have just update the 4 topics that are that for the DC App, and added a intro to all of them.
I also changed the Topic Title to Share Your Device, meaning: the current live DC App will not update the AVD templates atm. (but the current Live version doesn’t do that allready).
Update to the newest test to have AVD Templates loaded again.
Sorry about that, but i hope my push is gonne come through today by athom.
The intro to the various topics:

(The topic itself will be bold and have a extra line writen in the tabel).

Thanks!


1 Like