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

Question, I try to move an advance flow from a Homey 2023 to a Homey 2019. But I get stuck in the WEB API with an error:

I use export on the 2023 and get a TEF.
I import the TEF in Device Capabilities on the Homey 2019 and I get the code to import in the Web API. and then it goes wrong.

"root":{1 item
   "error":string"Cannot read properties of undefined (reading 'split')"
}

Homey 2023 v12.2 Device Capability v2.14.9 BLL v3.4.13 TadoZone v5.3.3
Homey 2019 v12.1.2 Device Capability v2.14.9 BLL v3.4.13 TadoZone v5.3.3

De gebruikte TEF

[tef:FLOWS:"H4sIAAAAAAACA9VZS2/jRhL+K0SfdgGV0e8Hb0l2D4sEe0l2BtiBIfSjWmZMkVqK8sSZ9X9fNEU5sq2ZMImTzF5si6pu11fPr4ofSCL1B+K1Qy91hJiTB8mUh4DcARNGi6xN4N4WuY7U5O3XDL67wWHb70fvR7IikdRkPD0ZycOKWCE5Z5aCt9aAROHABmeBK504d0F57s/ve9P2ONzh8N4P26bbVPvxMDTdZr5738dbHMnDw4rclVOZ8iCSNBAcUpBOWPCSakjJmiwZRRfd2e3rXb/drTvf9v1uPTbfJ7IiI6lJd9gGHKZrx0m8vcrYtv37DsereDP0Xb8Z/O7mdNVXZ48eVqRINZDw7irgOOLQ9psmnmS/nB5V35Rn1TdNGPxwPx1qr7oG233C2xaH26u235yOfNtsdy1Wf/n2fv/XcnBSzJP63QfSkJpwFKh8CCCsTiBZYBBSUmAjRadU5EwIsppuevfF395cV2+/ZlVBXt09Ne7RqB9ItlRpxxhwZiNIYRlYZxUklxzllsmcdZH7gdSSrsg9qZmlK9KTmtz0W7yvE941EetFsbOaMPzic7Vv/bBd36Afm26zHocDzs4bh2azwYGsyJ7U7wjyhJZzBqhYBBksgotGgaUhCyrRGjTkerLnh2JXqqyyOQrg6ClIniz4bDMo6RlziSnH+FPwUv/J4LNv9x9BL2yiBo0C6WX5kSR45BmYEzR5j9HJfI5eRS/RSF3kPUhLPVhvOMgsY4hBOcXVjJ6JGb+iT/D73a7+a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0FKRXCjzFBCwEYaimjltxju6Ldl+AfPWmusUR22risqvjryr5rur72xPSn0HAX0N/wYS03BvIQjiQ0WVwLAiQySmOgmUp3XP9cag2iF1VjD3i3eD9ptoiDlWzP0eScPbez+AQr+KIRTz0afF9Tpr/iBmt2Z8GtN9Wha9XpM9FehEfPs1yU02eBsMy06L2yJUDybgHqWgCq4IEz3UQgaWEx8Q8Z13813bngON7xI+3nky1N8JEsJ5nkKGUQxkC+KBpzllrL9yTzsuOrVdMU2CzRT63YnqcoJZc93xK4C/Z88WdzQvqfEmqbro44Ba7cX1cHK3v/ND40F5m0Y9fnvHo2xeLLihlAYZDt4emAy4LjZ8zk67IeL/Dn/ZUKzLgtr/D2eEr0vr9+NWN7zaYyn6IcgHUADffMVsLUQtx5aj5d8ml+Uo2WdJF61BzyJEHkJEF8DJmYFYwI9EmZP5ZXhn9qoY8mWa99WO8wf36EeDlUFpEw37KHxeUE05AEL6065DBlrasslFa2qxjlo+B9zl6iU5T8RIUz+L9ld20x//fSJ9suIjWzjacKOH9sYUtZoaLCm6hfIu44VETdSrMP69JwtY/6qJR2CSUAaW9AplphMCSAkyZaylRMi0ew/54svjraPCalNXx9tCOza5tygM2zfGLdm+zBY1cTPOfKL6IXn9ccXVZ8SXj4az4PJ5Y+StaYfL3a/zPwbf7jzfCJfX2EV9BR47T56LZ9SkGxz8bDHLCsGiVcgogPUf+xaXXi7cmF/Zdz2Xqf3S7w7jeDP1htz6eeVm+pjcw5G3fd7d+i8PztyXVF76ITneQmrw5f42yxzscmrHA1WRFso9Ne/w47w+WrAafpQ9j9LOC/69mvAy/AFxUdOa6dvKu/d1WmsOh6z7FwxctYF9xs521YhklBc1lGfQ5A6etgiypRp+01iI/2/qX/C3KT0PXL3u39fDwcP3wP7q0t/PPHQAA":/tef]

Hi,

I tried to change a function, which I use in one of my devices. It was not there anymore in the function list, but it is still working.

So I recreated it with the changes I need. But it does not output a value even though it gives the correct result, when I test it in VSCode with nodejs. Even renaming the new function and using this does not give a result. Instead the $value (which is the input of the function) is displayed.

Can anyone help with this, please?

I tried a bug report on Bitbucket, but got no response. I also sent a bug report: 53dfc5ac-fbee-4471-9b75-4b77b5d09fbd

Kind Regards,
Gerhard

(post deleted by author)

Does anybody experienced “lost properties” issue after a restart?

My Homey was unplugged for almost 8 hours because of an electricity maintenance. When it went online again one of my AVD device which was a button and a chronograph timer on that it lost these capabilities.

Now I restarted the app AVD and Chronograph and Homey as well but I’m unable to remap the chronograph timer. If I select the correct timer and click save it happens nothing.
I’ve checked the timer it started.

I’ve created a diagnostic report if it matters. 2517f61c-2bb1-43b6-a384-cbce083618e4

Not sure if it’s been asked before but I can’t seem to change the icon no matter which one I choose from the list.

I followed this up a couple of days and when removing the % symbol the issue is solved.

No percentage shown, but I guess that’s the fix for now.

Since a couple of days this flow has no longer been reliable:

It does not fire off automatically, although the Tado Geo does, but the icon of the advanced device does not change (I checked with a notification behind the tado geo, and that I do receive.

strangely enough if I start the tado manually, then the icon of the AD does change


I am running into the strange issue in the settings/repair screen of some advanced virtual devices. For some fields, when the value is a reflection of a BLL variable, the selected/displayed BLL variable changes to another BLL variable, though the actually used variable is the correct one. This occurs both in text based and boolean based fields.

As an example. The virtual device contains a text field called ‘Status’. The value of this Status field is based on BLL variable ‘bllWTWStatus’, which is a string.

When I select that BLL variable from the list of BLL variables the settings screen shows the correct selected item. However, after I save the settings (Save device button), the selected item is changed to another BLL variable: ‘bllWTWKoelen’ in this example, which is a boolean.

Also if I close the settings/repair screen and open it again, the indicated BLL variable name is the incorrect one (‘bllWTWKoelen’ instead of ‘bllWTWStatus’).

The strange thing is however, that the Status field is actually populated based on the correct BLL-variable: ‘bllWTWStatus’.

So there seems to be a glicht in the user interface of the settings/repair screen.

I have already tried to restart both the Device Capabilities and BLL apps, as well as my Homey Pro 2023, to no avail.

Hello

Is it possible to achieve the following with DC app: create a device composed of multiple Homey devices, but when I click on the device tile to see the detail, it would only show me devices that meet a defined criteria (the ones in red in the image below).
I’m trying to create an DC device for my door / window sensors, and would like to show only the ones that correspond to an open door / window.

If it’s not possible (this may not be in line with the very logic of DC app), maybe at least I could order the list of devices based on the value (to show at the top of the list the open ones)

EDIT: I understand from @SunBeech displaying values in a list is not currently possible with DC app: @Arie_J_Godschalk : is this something you would consider adding to the app or do you not see the value?
What I have in mind something similar to the climate button:

Thanks

Hello answering myself as I have found a “partial” solution. Here is what the solution does

  • 1 device displays an alarm when there is at least one door / window open

  • when opening the device I get a list of all windows / doors with their status (open = yes / closed = no). The open ones show up in red, which makes it quite easy to spot in the long list (I have 27 doors / windows)

It works really well for me and i’m happy with the solution.

Here is how I have achieved this if anyone wants to find some inspiration :slight_smile:

1°) Using a YES/NO field, I have created a “summary” device, grouping all my doors and windows. It is important to select "show as: alarm (custom)

  • for each device the property is set to : contact alarm (boolean)
  • the calculation field is set to “true if any property is true”: this will basically triger the alarm sign if any device shows an open status

2°) I use this summary device (called “gĂ©nĂ©ral” as a status indicator

3°) Using YES/NO fields, I have create a device for each single door / window (sensor)

they all have the same setup, just linked to a different device (door / window sensor)

Et voilĂ !

This is my firsy real use case with Advanced Device Capabilities app and I am amazed with the possibilities.
Thanks @Arie_J_Godschalk for your great work. Could you provide the link again for donation please?

Hi and thanks for a super app. I do run into some problems. Today I have approx. 140 pieces virtual devices. Most of them holding fields that are set from flows, some are picking up information from other devices when they are updating. The problem is that DC are running just below 130 mb in memory RSS on my 2023 Homey. So my question is how to lower the memory use of DC without deleting any DC devices ?
I don’t know what’s consuming memory in each device, anyone


Check the first post in this topic :wink:.

Can you try the test version, Kjell?
This uses homey-api instead of the older one (it might use less memory).
You can install it “over” the live app
https://homey.app/en-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/test/

The app is quite memory heavy when you have large(r) numbers of AVD’s;
140 is quite a number of AVD’s you have there.
Out of curiousity, did you actually count them, or was the last one named ‘advanced virtual device 140’? (that number just keeps incrementing, even if you delete AVD’s on the way).

The number of AVD’s affects the memory usage:
Pro 2019 #1 (apps should use less than 40MB)
60 AVD’s: 55MB

Pro 19 #2
7 AVD’s : 35MB

Hi Peter,

I have the test version installed. And I didn’t count them just looked at the last name. But I have a lot. Most of them are connected to energy meters like the Shelly 3 pros and covering 3 different buildings and several energy measure points. Also several preset devices for LED RGBW drivers. I really like this app but it looks like I’m hitting the roof. Do we know if there is any new version coming out ?

Just count them to 105 pieces.

I even don’t have so many devices (17 only ) but the app is crashing due to the memory constraints multiple time a day on HP23 :frowning:

I hope Arie is just busy at this moment as I haven’t seen him around for a while :frowning:

Heu @Sharkys ,
Just to reassure, yes, im “just busy”. Have been sick, which made me fall behind on work stuff.
I do hope to have some time aroud the holidays and january to put time in Homey again.
:wink:

I also have chosen to wait a bit so Homey2023 would be more stable and the homey-api is (more) fixed. Else i can keep programming without real effect. :face_with_hand_over_mouth:

2 Likes

Hi, Are you using the test version ? its a big different for the memory problems.

I wonder if there is any difference in memory use, if you create the virtual device with the test version of DC or the old version ?

No, not really.
The difference between test en live version is the homey-api instead of the athom-api.
The DC app itself is not really different, creating an AVD is not different.
You can switch between the test and live version without issues.

1 Like

Thank you Arie for letting us know :wink: Fingers crossed that all will be fine.

Yes but I’m using it since beginning so it’s hard to say but at this moment, DC app is force stopped by Homey multiple times in hour, however true is that I start utilizing DC more and more over last year so it’s hard to say.

https://bitbucket.org/QlusterIT/nl.qluster-it.devicecapabilities/issues/98/dc-is-crashing-due-to-the-memory

So is there any difference in memory use in AVD considering if the AVD consists of ex. a on/off button or one AVD with several numeric fields that getting there data from “reflect” other devices ?
Or is it only the amount of AVDÂŽs

I allo discovered that if you don’t check the field “Insight” if you create a number field, the homey makes the insight anyhow but without any name just the kind ex. energy .

Try the test version?