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

Good question… Haven’t seen this anywhere else, but I was able to solve it by using the "Set to and card, which also saves me from converting the value from text to number :slight_smile:

Hi Arie,

Some tests here also show no tag selector for the number input, but the other types seem fine:

Some random other cards seem to suffer from the same “bug”:

But these random cards are OK:

My guess, @Chillout has the honour to report a web app bug :wink:

1 Like

Thank you for creating this app. I’m hoping to get some advice for my setup.

I’m using this app in combination with the Modbus app to monitor and control my solar panels and home battery. I’ve create 2 virtual devices:

  1. A device of device class “Solar Panel” to represent my solar panel / inverter.
  2. A device of device class “Other (Default) to represent the home battery. The current power (Huidig Vermogen) of the battery is setup to be positive when the battery is charging (consuming energy) and negative when the battery is discharging (providing energy).

When I did the initial setup, this made sense as it provided me with an easy way to see current producten by the solar panels and status of the battery. With some of the latest features and enhancements to Homey (Dashboards, Energy tab) it no longer feels right.

The primary reason for this is that Homey does not seem to be recognizing my battery as a home battery. It is not showing up as such in the new energy tab. In fact, it is reported as being the device with the highest consumption. Supposedly 12.6 MWh yesterday. Then again my solar panels supposedly produced 15.9 MWh. No, it’s not a typo, at least not on my side ;).

So my questions:

  1. Given the MWh production and consumption reports, did I make any errors the setup of my virtual devices?
  2. How can I get Homey to recognize my home battery virtual device in a proper way?
  3. Should I merge the 2 virtual devices into one? If so, is there any way to do this without losing historical data?

Thank you for any insights you can provide.

It seems like the latest web app update has been withdrawn: I am not seeing the text indicators anymore on device tiles. Also the Advanced Flow notes have returned to their prior color scheme (which I personally think fits better with dark mode).

Indeed, I also don’t see web app devices’ string status indicators anymore, @SunBeech , nor can I select them anylonger (not restricted to AVD’s though).
It’s not documented (yet):

In short, Arie has to implement all changes needed for the new Energy tab. He’s aware, but busy living. So patience is your friend :wink:

1 Like

Hi everybody.
I tried to read the whole thread, but got tired of it. :wink:
I want to use an AVD as the primary power meter for my home.
Right now I have an MQTT Hub device showing my values for power (W) and energy (kWh).
But the Homey Energy tab says, that my device would only show actual power draw (W).
Is it possible to create an AVD that is capable of showing power (W) and energy (kWh) in the Energy tab?


Many thanks in advance for any help…

Edit:
So I tried to make a AVD but it also only shows the current power (W).
There is a checkbox which can be checked to do that.
But why the heck isn’t there any option to do that for the energy (kWh)?
I mean, my shelly EM for my heating pumps could be used as power meter in homey and that would also show energy (kWh) in energy tab. But that’s not the device for the whole house.
Am I doing something wrong or is it just impossible with AVD or MQTT Hub device?

Hi again,

after fiddling around a while and checking which capabilities are present in another device, I tried the following settings inside my MQTT Hub device successfully:


Answer is right above your post :grimacing:

And indeed, the MQTT hub virtual device has everything in place for use with the Energy tab. You could have asked in the MQTT Hub topic btw. :wink:

I see now.
I got confused with the thread.
My fault.
:sweat_smile:

1 Like

BORUIDAPLS Tuya Zigbee Smart Socket - Corrected Metering

I have four of cheap smart metering sockets that work as expected, except the power consumption values are reported in W/h.
Disclaimer here: This is my assumption based on rough calculations I made base on the device insights.

Link to shop

Device Information

Device Name: TS011F
Device Model: _TZ3000_ko6v90pg
Device Description: BORUIDAPLS Tuya ZigBee Socket Smart Plug

Other things people need to do to get it working correct?

Select your Device at the marked entries:

TEF:

[tef:AVD:"H4sIAAAAAAACA6WWWY+jSBLHv8oIzcOuXLXmNljaB2wuc2MO24xGrQQSk5jDXDa41d99VTV1jLpbq9YuL4j4R0RG/MhQ5lcshTeUwF3S1NgaU+l+J/z1bIUVFTwOq9gU7ionJ3mCMtEnpITMV6TWmBQhHL04RGJkFb5Iab22ytK02+aBujgRF36uC3rsHpslpMb0wS1UUM/CzI8Uu0iyG8M5ovAIy7EXiBW8MVRpLVV6mWU87fSPmuN4Z1o4BGwPHX7isw5PS2Z0VCY73rmb/5ipSum4hcpzd2n1mHPNCHDJDZVgcmucj1bqgzeN6Tw3XLtMyB3LBU5ruhsjykE9KuI8C9W0Z0fBz8NR1c/mPJqjrxyTTlBEWQ0mIlINorS6Um+9mQPN/uTvUIQI26yTW5qU0Fstjwwh6eCkqvFWnRJ7XpjjVqD6nbpIb05h6UfJWFS+Hk9DH0dRyTa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VZuIxAiQpbZ1GJ66wxN8mxpxXylTbOwPT5uBmkwy3SnGQsk2BdP8wqJZeaA3Q7lWTNuO808UZooScbeeswHhCLHu6rXyiyky0XRfQnXdzJRofBC3ucDGboKzeWT7vtT6/q2G5zIFOHQ5je6v+/7QdgVJsMGG3Yo5FK2yuTS2J7hdc0Fj9RU6S+hCwzKBcahli5tqDTEznD4Mma3Badc0Za5oOaa3Em0cZVA2Pdh1U8hy/N2nt4pPoh421jVpRPYI82K4cathbg+6QZdlolEsRo7aSfCijc2o1UhMS3snjdOGWs9KhsU9GUjCAL27QlrOnRGNSh3KbbGMpqKAWDiZ5ZN2GcaJswzD3n6maCylGQyBudxGnvCejgMqD6/jhysYXeev9xAOcIvL3M4gHrA1vVYlk9YPVYx7OzMh9MgI1imPbbGP83W6/tdID+FTdOUENQ/CdmMw9B8CMSnsAUV7MBPIgzU/33tpOyxNdY3yQUO2LsXYYEKYmvMae6w+7TuYVbCZBBfD/8eW//xFfv99xz0uQ5nbI01cQGTYU3xJPaEoRd+HMOAjOPo55RM6Gc6S5hnQFHJM5VBjmLphE0Agz1h1665wm54yVFB0I8d/HJ9Xfnbnx9re/AKOjDALbiCGJVoQC8VZKDs4adP3tyF/ocs39ePrbE0WadvXXyoQY2Gl+DDh4l8wyC9/FMEb7CLOzAm+afDrxHhcO7/ITLA7gce5C/wIP/G4zPH97X/nAb5TuNyWP7Yr9x0FXiJNMGQ/6trxjr9x++vW35J4Dj+z88AESaoAi97jHrC4tfN+r657NrOMuzDuu0gGKBcNvct6NLPXt7kXyNNUDj7v6Nu6ibLXiG/15TD5ALT72v5r+zffd7Z/5X0w/52Z/44mb9v8Pvf8aGCV23oRvilboYvP3iIqAdx+VHst6e3S/ob7Y29D3ai4Bjeb/44g98idI4h/M2rQPcy9wBb//Hnt/8AKjNbLdkLAAA=":/tef]

You’ll need a Power by the Hour app’s “power summariser” device. Along with values in kWh, It calculates many nice figures (no flows needed):

1 Like

Thank you for the tipp, but this doesn’t solve the issue. Because there is no dedicated app for the socket the values are in the wrong unit. Power by the Hour doesn’t allow me to correct anything here…

Another picture with a side-by-side chart: