[APP][Pro] Enhanced Device Widgets. Live 1.1.21, Test 1.1.23

I have played around with the % values to try and harmonise those better.
I have made light_saturation a special case and convert that to a percentage (homey just treats it as a unitless value between 0 and 1).

As for the colour mode, I don’t think I can do anything in the widget to help with that. All the widget can do is change the values of the capabilities and if the device doesn’t act on them then I can’t force anything. I will take a look at the SmartThings app to see if I can do anything in there.

I have added my Alexa device to Homey and played with the settings and everything works as well as it can. My Alexa devices don’t report back the play/pause state when changed on the actual box, so the toggle can’t stay in sync. That is reflected in the normal Homey device as well and the widget just follows that setting.

My Alexa devices (Gen 1 and a Gen 2 display model) also don’t report Artist or Title, etc.

Thanks Adrian. Your efforts on these stated issues are appreciated. All considered, its a very nice widget. Thank you for another good community contribution. :clap:

As confirmation of the temperature conversion issue, here is a screenshot of my Living Room dashboard. The nest thermostat is reporting the room temperature at 72 degrees where as the two Tapestry Presence Sensors and the Third Reality Moisture Sensor at an average of 162 degrees:

I have published a new test version with some fixes.

3 Likes


I’ve published some YouTube content featuring the Enhanced Device Widget (Test Ver 1.1.16). The video features the two elements of this widget. Includes a tutorial on how to get both elements setup within the Homey Dashboard.

5 Likes

Hi Nils,
I’ve been fiddling with HTML tables and columns.
It works well, but I can’t get rid of the large empty space above the table.
Any hints / ideas?

HTML:

<table style="width:250%">
  <tr>
    <td style="width:50%"><b>Plant</b></td>
    <td><b>Value</b></td>
  </tr>
  <tr>
    <td><b>ZZ</b></td>
  </tr>
  <tr>
    <td>Moisture:</td>
    <td>[Moisture] %</td>
  <tr>  
    <td>Nutrition:</td>
    <td>[Conductivity] µS/cm</td>
  </tr>
  <tr>
    <td><b>Vijg</b></td>
  </tr>
  <tr>
    <td>Moisture:</td>
    <td>[Moisture] %</td>
  </tr>
  <tr>
    <td>Nutrition:</td>
    <td>[Conductivity] µS/cm</td>
  </tr>
</table> 

About <table style="width:250%">:
When not declaring width, both columns appear on the left half of the widget.

There’s a bug in the test version. Adrian said he’d have a look at the GitHub history to check the changes. But if you roll back to stable version, the gap disappear, correct?

I have figured out what is causing the big gap, now trying to thing of a way to keep everyone happy :slight_smile:
As a quick fix, just remove all the prettfying (spaces and new lines) so everything is on one line.
<table style="width:250%"><tr><td style="width:50%"><b>Plant</b></td><td><b>Value</b></td></tr><tr><td><b>ZZ</b></td></tr><tr><td>Moisture:</td><td>[Moisture] %</td><tr> <td>Nutrition:</td><td>[Conductivity] µS/cm</td></tr><tr><td><b>Vijg</b></td></tr><tr><td>Moisture:</td><td>[Moisture] %</td></tr><tr><td>Nutrition:</td><td>[Conductivity] µS/cm</td></tr></table>

The change I made was to allow new lines in the text so it could be formatted:

Show this on line one.
And this on line two.

I do that by replacing cr-lf codes with <br> so the status widget displays them. Unfortunately, your pretty HTML has those codes in it and they get converted.

1 Like

Hello @dooniem
Thanks, reverting to the stable version resulted in my data shown without the gap.

Hello @Adrian_Rockall
Thanks for your quick response.
Oooowwwww, it didn’t occur to me yet to try that code without newlines and spaces in it.

Like this, using one line, it works great in both test and stable versions:

I’m sure the majority of the users will use simple text with newline option.
If HTML (table) code should be on one long line, no problem (for me).
Thanks for your efforts, much appreciated!

2 Likes

Love your widget👍 Thanks🙏🏼

One request, if it is already possible then sorry for spam😳

I would love to have a possibility to use a variable to define background and text colour​:crossed_fingers::roll_eyes:

Br Jyri

@Jyri


Achtergrondkleur = backgroundcolour
Tekstkleur = Text colour

So yes. It is already possible

Edit: Sorry you actualy mean a variable. No

1 Like

You should check the DataVista app for this.
It’s quite customisable

I think the only way to do that is to introduce a new action card that is the same as the current one, except it would define the colours as numbers instead of colour pickers. But would users find that confusing?

I would take it gladly👍
Is it so that you cannot have same color picker that Homey uses in the web UI, it gives both?
And if it is troublematic for some, why not just add another card that defines color as text (hex):thinking:

The colour picker doesn’t support tags, even though there’s a space to enter the ASCII hex value.

1 Like

That is too bad, but if you just make another card where colours are defined in text. People could use the one they like more? The case where I would needed is in Homey Script I would like to be able to define the colors and somehow be able to pass them to to your widget🤔

1 Like

New test version with an ‘Enhanced Set Status’ Flow action card. The colour fields are text so they can take tags. I have also added a parser so you can specify a formula, including ternary operators to calculate the colour. For example

Battery > 50 ? '#00FF00' : Battery > 30 ? '#FF00FF' : '#FF0000'

Here Battery is a tag that has my current house battery percentage charge. So, if the charge is greater than 50% the text is green, if it’s between 30% and 50% the text is purple and below 30% it’s red.

4 Likes

Wrong topic, message moved :wink:

Thank you🙏
This opens new possibilities👍

One more wish. It would be nice to have When card for clicking the Status Display🤞

Hello Adrian,

I discovered your app a couple of days ago, and playing with it since to get a feedback card for my roborock flows…

very nice work btw :wink:

one dumb question from a newbie …

how do I have to write my formula if my variables returns text…
like : $status = Mop ? ‘#00FF00’ : $status = Vac ? ‘#FF00FF’ : ‘#FF0000

In tried things with no success…even with the help of chatGpt (==,=, ',“”…)

I changed my text variable to a numeric one, it’s work off course, but for my own information I’m interested to know how text are working

Regards