# \[APP\]\[Pro\] Better Logic Library - Just some better logic, variable and library management

**URL:** <https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568>\
**Category:** Apps\
**Tags:** app, tools, homey-pro, bll\
**Created:** [December 16, 2018, 10:29pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568 "2018-12-16T22:29:57Z")\
**Posts on this page:** 1\
**Showing post:** 345

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [June 21, 2023, 9:52pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/345 "2023-06-21T21:52:53Z")

</div>

Hey @Pieter_Pessers ,

What you can do, is use an Advanced Virtual Device from the [Device Capabilities](https://homey.app/a/nl.qluster-it.DeviceCapabilities/) app.  
I am in contact about adding BLL variables to Sharptools with @joshua, but in the meantime, i have done this:

I have created an Container AVD with one field:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/9/992c3bf3a191142176f75d9c0428d3f1eae63e13.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/c/bc22594c6bf323a0b4ccf4651e3dfadfdcd115cc.png)

BLL expression: `!$value.trim() ? '' : 'Morgen: ' + $value`

This can be added in the Sharptools, where i created a custom Super Tile:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/2/d2062af5a1096bb60b349d591761a5a57d17c5f5.png)

In the bottom field, the text from the AVD is shown.

Next, in the dashboard, where the tile is used, i have configured some colors based on the values:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/9/99a106b397474334cb99de8e970d881ea8649cb3.png)

The result, based on a BLL variable is this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/8/58a87bccf0ec2362a6ed587d7b5c77cef2cb78a3.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/6/262de310511743f0bad301cb51bcb825774f4462.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/9/494f4c05b05f11bd59319a85b31d0e40ff4c9a37.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/4/f43ccf4ea115cad5ae258fd9bbb4b27bb2b27401.jpeg)

I have also added a Button on the AVD:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/c/3c1e026356a158b4044a16d5346d8276e0bcbcd0.png)

In Sharptools i have setup a rule for this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/1/9108c45b6674c9d950f46b586e11ce16343044bd.png)

When i click on the trash-bin in Sharptools, the Button on the AVD is pushed and in a flow, when that button is pushed, it will clear out the BLL Variable (turning of my Homey light and also the Sharptools tile will reset, meaning i have put out the trash).

So, yeah, using BLL variables is possible already without flows, you just need an AVD 😉

---

_[View the full topic](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568)._
