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

Arie_J_Godschalk
Tue, 30 Aug 2022 19:24:40 +0000
Apps

If you have questions about the App Device Capabilities or seek help with an Flow or with the Flow Exchanger, please see the Device Capabilities Topic.

German

Another German topic

English

If you have questions about the Advanced Virtual Device or seek help with the Exchanger File, please see the Advanced Virtual Devices Topic.
This topic!

German

English

If you want to post a AVD as a Template for others to use, please post it on Share Your Device! - Advanced Virtual Devices.

German

English

English (HCS edition)

If you want to post a Flow(s) as a Template for others to use, please post it on The Flow Exchange(r) - Exchange Your Flows with Others!.

German

English

English (HCS edition)

Thanks!

If you also want a status text on your device tile, please continue reading!

Device Capabilities 2.0 App voor Homey | Homey
It’s live!

This Addendum to Device Capabilities (Forum topic) is for explanation on, and examples, for the newly created free fully customisable virtual device.

Fully Customisable Advanced Virtual Device with Unique Text Status Indicator for Device Tile.

You yourself can completely customise these virtual devices, the way you want!

Also allows for the creation of Insights for capabilities of existing devices that have no insights.

To explain how far this goes and how this works, i will create a Livingroom Device, which i will configure to accommodate multiple devices in my livingroom.

I will be using the Web App for this example and Advanced Flows, but neither are needed.

Because of the length of this article, i placed the texts inside summaries, click on them to open to open.

Living Room Example

Create a device
Summary (click for more details)
Enter the Device Settings
Summary (click for more details)
Create Media Buttons
Summary (click for more details)
Create a Flow
Summary (click for more details)
Textfields
Summary (click for more details)
Volume
Summary (click for more details)

Four Curtains
Summary (click for more details)
Custom Buttons
Summary (click for more details)
One Main Curtain Button
Summary (click for more details)
Setting and Using Functions
Summary (click for more details)

let dcApp = await Homey.apps.getApp({id:'nl.qluster-it.DeviceCapabilities'});

Added an API call to set the value of AVD fields:

await dcApp.apiPost('setvalue', {device:'Day-Amount', field:'number1', value:21});

await dcApp.apiPost('setvalue', {device:'Day-Amount', field:'measure_devicecapabilities_number-custom_1.number1', value:22});

await dcApp.apiPost('setvalue', {device:'c34dc5b4-3c30-48a9-8a4e-014aea93d00d', field:'measure_power', value:501});

Added an API call to set the name of AVD fields:

await dcApp.apiPost('setfieldname', {device:'Day-Amount', field:'number1', name:'Day-More'});

await dcApp.apiPost('setfieldname', {device:'Day-Amount', field:'measure_devicecapabilities_number-custom_1.number1', name:'Day-More'});

await dcApp.apiPost('setfieldname', {device:'c34dc5b4-3c30-48a9-8a4e-014aea93d00d', field:'measure_power', name:'Day-More'});

To be continued.

If you would like to add an example, please feel free to do so.

Apps:

[Profile] Arie J. Godschalk Developers

Apps developed or maintained by me: Advanced Triggers , BeNext , Better Logic , Chronograph , Device Capabilities , Advanced Virtual Device , FTP Client , Google Services , Homesh Controller , Homesh Satellite , JSON Handler and Manipulator , LOQED , Music Url Converter , Simple Log , Universal Media Player and Virtual Devices . Goto profile of Arie J. Godschalk for more …

Donations or Sponsorship

[Profile] Arie J. Godschalk Developers

Donations or Sponsorship. You can help with the development, maintenance and support for the Apps, by donating or becoming a sponsor. This would be much appreciated! The more donations i receive, the more time i can make free for development and support. Donations can be done through: [PP] PayPal Requires a PayPal account. [GS] Github Sponsors Allowes for CreditCard. Sponsorships can be done through: [P] Patreon Requires a Patreon account. [GS] Github Sponsors …

824 posts - 105 participants