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

Hi,

I got the same issue as @Layne_Staley where the previously saved fields are no longer visible. multiple DC restarts did not solve anything. Any other ideas to solve and/or avoid this in the future?

kind regards,
Floris

It is a lottery, but suddenly it just works. And it is still working for me. How about yours now, almost a day after your post?

No progress, I’ve been restarting it multiple times in the past days and it never reappears.

I do see the parameters when I check the homey developer page of the device

Ok, found it: my virtual device used all ‘better logic library’ variables. Restarting BLL did bring the virtual device back to life!

Great! Strange though. Maybe I did the same, can’t really remember.

Hmm, app crashes all the time… what did i do? :rofl::rofl:

baf4986c-3951-4bf3-88dc-0a1cb08b12f1

Hi.

I am ab bit stuck with constructing a status text from 2 boolean fields/properties:

I am aware how it works with one property using $value. But I am stuck with two properties ($values ?). I want to check both boolean properties and construct a combined status text depening on either value.

Couldn´t find any example and would be happy if someone could explain, what to do or point me to an example or any other helpful information.

Cheers
Peter

I am not sure whether you can reference other fields in the AVD.

You can use a flow that triggers on a change in the values you want to combine, and then combine them and store them in another BLL variable (that sources your field). Or simply update the field in the AVD directly, instead of basing the field on a BLL variable.

EDIT - Apparently you can reference specific values, in case you have selected multiple device capabilities as input for the field. Check this post: [APP][Pro] Device Capabilities - Enhance the capabilities of devices - #1388 by Arie_J_Godschalk.

Hi @SunBeech

What I am referencing are two boolean fields/properties of that device (not BLL variables,; BLL here just means using BLL logic, I think). And I am asking myself, why would it be possible to attach/reference more than one boolean or numeric field/property, if you can’t use them…

I also find it very intriguing to encapsulate the status text generation within the Device vs building a flow.

Check my prior post for my edit. I first thought you were referring to two fields in the AVD, but later saw that you want to reference two device capabilities that are source of that field.

Further note that you should use a regular Text Field for displaying the status, instead of the superseded former Status Field in the AVD. You can select any text field as device indicator now :grinning_face:.

I know and I use a regular text field:

And that are the two bools I reference:

Maybe @Arie_J_Godschalk can help with this…

[EDIT]
Cross posted. Thank you very much!

@4x4_Pete, Below an example on how to combine values.

An AVD that has a temperature and humidity value. I combined both values in a status field via a flow (Status) or via a calculation in the AVD’s field itself (Status 2). Same result.

Option 1 (Status): Combine values via a flow and update the AVD’s field

Option 2 (Status 2): Combine values in the AVD’s field definition itself

Note that if you need to do more complex calculations or e.g. check depencies, then a flow is more practical.

Thank you! - That was the missing piece.

So… I have a device with this many sensors…

Is that why my app is crashing a lot? What if i devide it into multiple devices, would that work?

More outside the screenshot area…

“What could you possibly need all those for..” Well i integrated my Euro Truck Sim 2 into Homey :laughing::laughing:

You should put that on the wall as a piece of art :rofl: :sweat_smile:.

:rofl::rofl::rofl::rofl: What should i do to stop making the app crash?? Devide into multiple devices?? or would it skill crash?

Your flow updates all fields in parallel. Maybe that’s too much. Try updating them in series (or series of parallel blocks).

Hmmmm, i’ll try! Thanks for the idea :laughing:

@Arie_J_Godschalk I have some AVD with a timer from chronograph that are not working anymore, when I open the device all settings are gone, it is still showing the timer in the card but the BLL expression I used to convert timer to days is not working. When making a new device same problem, icon selection is empty and when selecting Chronograph there are no selections to make.

Is there something changed in Homey that have messed up your app or is there something strange happening in my homey?