[APP][Pro] Advanced Virtual Device (Device Capabilities App) with Unique Text Status Indicator

Is it possible to group 2 single dimmable lamps/bulbs to 1 AVD, so that is possible to change the dimmlevel in the AVD for both lamps/bulbs simultaneously like it’s possible with the < group > app?

Well, depends on how you want it, but i would say: Yes, Yes and Yes.
But maybe not how you want it :stuck_out_tongue:

What do you want? Want slider on a AVD that, when changed will also adjust 2 real lamps? And when the Lamps are changed, also change the slider?

Or do you want an AVD with 2 sliders and 1 main slider?

Yes, this one. Plus On/Off button.

Coming up, i’ll make an template, i allready have one (but with to much crap in it).
And it’s TFE not AVD, so, one sec.

It’s so fun, to create a good example, i also create fake “real” devices to use, so i can give them good names and stuff :slight_smile:

Edit:

Still one sec, i have everything working very nice, but the templates filter out the function from the Topic. I’ll fix it, just a moment.

2 Likes

Pff, i just mist 1(!) questionmark in my beautifull RexExpression:
This:
(?:<p>.{0,2}TEF.{0,2}:.{0,2}<\/p>.{0,2})?(?:<p>.{0,2}THE Exchanger? File.*?:.{0,2}<\/p>.{0,2})?(?:<ul>.{0,2}<li>(?:.{0,2}The Exchanger? File.*?:.{0,2})?(?:.{0,2}TEF.*?:.{0,2})?<\/li>.{0,2}<\/ul>.{0,2})?<pre><code class="lang-auto">.*?((?:\[TEF:){1}(.+):)??(H4s(?:.*?))(?:])?(?:(?:\s)+.*?)<\/code><\/pre>

Should have been
(?:<p>.{0,2}TEF.{0,2}:.{0,2}<\/p>.{0,2})?(?:<p>.{0,2}THE Exchanger? File.*?:.{0,2}<\/p>.{0,2})?(?:<ul>.{0,2}<li>(?:.{0,2}The Exchanger? File.*?:.{0,2})?(?:.{0,2}TEF.*?:.{0,2})?<\/li>.{0,2}<\/ul>.{0,2})?<pre><code class="lang-auto">.*?((?:\[TEF:){1}(.+):)??(H4s(?:.*?))(?:])?(?:(?:\s)+.*?)?<\/code><\/pre>

Can you believe that? :rofl:


Oeps, Well perhaps it needit a bit more:
(?:<p>.{0,2}TEF.{0,2}:.{0,2}<\/p>.{0,2})?(?:<p>.{0,2}THE Exchanger? File.*?:.{0,2}<\/p>.{0,2})?(?:<ul>.{0,2}<li>(?:.{0,2}The Exchanger? File.*?:.{0,2})?(?:.{0,2}TEF.*?:.{0,2})?<\/li>.{0,2}<\/ul>.{0,2})?<pre><code class="lang-auto">.{0,10}((?:\[TEF:){1}(.+):)??(H4s(?:.*?))(?:])?(?:(?:\s)+.*?)?<\/code><\/pre>

1 Like

Okay Dirk, i have got a very Nice AVD with all needed flow actions for you:

Now, as you can see there is a function in it that you need to place in the App Settings of DC.
With your current DC version, you do not see that within the Web/Homey app. So copy it from the link above or update to the current Test version.

  • Create the function (copy from link above) in App Settings.
  • Create a new AVD and select the Control 2 dimmable lights as one template.
  • When you get to the flow creation, change the Light 1 and Light 2 with the lights you want to control:
    image
  • Click update text and run it in the WebAPI Playground (just click on the link).

Tada, there you go!

If you like the template, leave the used template a like :heart:, so it goes to the top of people’s lists.

Hi @Arie_J_Godschalk,
thank you very much for the AVD, it works exactly the way I thought it would. :+1:t3:

However, I found two bugs or malfunctions:
After importing the AVD, the flows and testing the AVD, I’ve changed the names of the 2 on/off buttons Light 1 / Light 2:

  1. the Homey smartphone app crashed after pressing the “Save device” button
  2. the new names were saved in the settings, but not in the device (see screenshot). Even after restarting the app, the new names were not applied. In the flows, however, I could select the new names and apply them.

I’ll have a look into it, by adding an OnOff and removing the last OnOff Make’s WebApp also crash.
This i already reported to Athom.
However, i will test this through the Mobile App also beter and see if i can solve it on my end.

What hapends if you change one name right a little bit and press save?
Are the both changed correctly?

I changed 1 name from Stehlampe oben to Stehlampe and saved it. After that the names of the buttons were correct.
Then I changed the name again from Stehlampe to Stehlampe oben and saved it. Now both button names are displayed correctly.

1 Like

Hey Martijn, you can add the tenary now with the current test version.

1 Like

Hey Dirk,

I think i have this resolved; i recieved a few errors in the logs because of the newly added List( picker/ternary) fields.
The error happends just after settings the field names and just before setting the names of fields that are shown to the user in the Device.
So, it would explain the issue you discribed.

The issue has been resolved in Live already, so do you mind importing the AVD again (you can ofc delete them after)? :wink:

I would love to hear that it all works as expected (except for the Homey App crash, need so time to look into that one).

Btw, no, this would not happen: I do not update devices during start or otherwise. AVD fields etc. are only updated after changing the settings (or importing).
When a AVD is created or altered, it stays that way untill the user actively changes things him/her-self.

After I left the device menu (not the device settings menu!) and went back to the device menu (via long tap), the names were correctly updated. The Homey app did not crash either.
Thanks again for the quick support!

1 Like

The Device Capabilities App just got updated to version 2.8.1.

I have changed the Community Forum wrapper/container for the TEFs, so it will be shown in nice colors on the Forum.

This way, it gives more readability, and that is the whole point of the wrapper/container: you can see by the Tags on the “box” whats in it, without opening it: AVD and/or FLOWS.

With these new colors, that become even more readable and stands more out.

Example:

[tef:AVD,FLOWS:"H4sIAAAAAAACA61VW3OiSBT+KxRPu5WwcmkQrJoH1DhqvGu8ZGsr1dAHQYFWaFRM5b9voyZmqpyZPIxl2dh9+juX7zuHV5HALnCh5dJYrIhNlLbs86dmq8pkMjOD7vBoPSrPxiqFtqmsD+P+wUoOOVotarNxWNuGq451B+naljvkAZY9pJN4YDHfnE8tH3aOtzscS9l6ai8aHTOc793j9s4rzbduJzQHTY/0Wwh1N6g0P7LOqK1Spdk5dKf7ftrfTedmulg6uNux16a+mdgLv5rucgbJ0zyG7zPaZf3VtD6x676yH/WMca3dG6hb+9B56OyW0UI+VusjX6lPne9Vo9ecsTJrz4Lj0Dbw42NvMZiORlPHDyPWqIWKfwzn9W1vPW6vgiweD6eopQ/TflNOhnqD7GbZQwMG0yEdtKLVg/3Yajwl+yjfjeqD+YMaLdZtU149I3VGN/t8xjbLYw/1t86wX3/OZmu8Rw39+yhrpSaaqMdc7Xi+v/Vosz0+Gk8texHf6cpWjp9XoVU/zGlpC13ruN8v1LvMe3Db2pGOOqSfp5ts1ifOKKvK0VOTDKtJ9LxZ4bABpayDnWzj9HLXx4NRMAibqx5dburrHqMUGpamtg60M7s7ZP0H67ncGkxs1TC32eRp7CC5mcF+6VTH1u6g9ncxW7UO5ed5yQstbUC2nqWWYs0tK2N5rk/ujiXbe8zzO9vZd7lUvn0T70U3SxmNCh2lYuX17V6kSbAMYhy2CBcWaIqByqYlIct1JERULJkIPAkZZrls6pZiYMJBUmAsiJcFgggxJMv8ZYfDDF4KWIZjJlbiLAzvxTiLHEj63gQOrBFASPgV+brdO63vB+r1oEppCDi+caWaMUZvHdRwBAn+dOCGfBUp8yER382UHrfiuxOINtyaZQkIf3UBp/yB/H01G8MG82Oo4Q12gjBgAXAwD4cpXG18urcLF9H5/gu7gl6RaglwnEZI9zWcFJGxJPvAUG+FM8HJEtg1GPULwagfwbDT7ZuxqL+Mpe91gvRKElfGeeRcQpwGCctwKEx4OSPKSWYcl5wE8BXNcLv4ZyjuB01v3CsWK/++igHfQx52FGx4kqUZmoQwMSTsWVjSsOI5popcS3OK5H6GC+8JuoV7C8B1LUWXsKa6PExCJFNTLEl2kax44CJTO9kdTuLJxYqi8pVycJ9GkFfO1ah8sUOCm1S88Mbhh7w9ROyygM/yU76vt1irqHJRDl0FvawTRSpbhIdtcqemLPO/WMEWL4RqgFEgnPqvkJIfpILL6RW4r1TgZRXO4NIJ/IJ+L6z4HBDCYA1CTjNhT7OQCHwixUsQAiYE8enmOefCIkkh9P4pyKIhTbifHEKuI77xUS/+uw8I899734dg6X9MgiLnmDIQeU4ygIyJiyWEkCJxmjXJQQqWHIe4uoZlQkzrQoVm/iEydmeFnC8WPLycZX+TDq/oguIhKIbipZMLqf1mehBI3STYnKAq4nm6CUqR8sUZz6MgVdEcRdU1XVJUo8yDN2TJ8TxDMh1i6gbwr/E7Ui9DhwifNCNQ73RmT+s/o+q9nl8nC2ReZdnTJMskvMaaymM1FJAsy+TFxx6RDfmHvtGMP983Z2WSC1mMv7KWxbjgUlIw8ABcSUOeU8wIkEwgpuQpxPXKliwjQ7tdST4LXQa8mPRUs9MedugOBByTYvfkk7/lPvXQD8WOcMwFFea/7goVfbXUb2//vf0PfSpWTugJAAA=":/tef]

In Test now:
Added to the default icon list:

2016 icons from Font Awesome!

See the list with icons here (or in the App settings and device settings ofcourse).

Install size still less then 7MB, the icons are from 450kB to 1.400MB.

4 Likes

Great hehehe. Now I can’t decide what icon I should use. :stuck_out_tongue_winking_eye: :grimacing:

2 Likes

New feature just been thought off and in development:

I will implement a feature in DC’s AVDs so you can use the thermostat as a combination-dial: put in the right numbers to activate a flow (and perhaps enable the normal funtions of the thermostat)!
And turn the dial to the end/configurable-number/combination-of-numbers, and it locks again :slight_smile:

Anyone looking for something like this?
I don’t think combination-locks exists in Homey already right? Or am i missing something?

Do you mean this principle to (un)lock a flow?
Screenshot_20221112-162054_Chrome

I’ve read a question somewhere about if there’s a possibility to lock a thermostat, to prevent f.i. kids playing with it, or setting the target temperature too high.

1 Like

Indeed!

I have flows that, if the Tado target temperature is set too high then Homey sets it back to a sensible level. Useful to ease the boost function which with our big cast iron radiators can have the house feeling like a sauna quickly

1 Like