# \[APP\]\[Pro\] Enhanced Device Widgets. Live 1.1.29, Test 1.1.30

**URL:** <https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835>\
**Category:** Apps\
**Created:** [October 10, 2024, 5:25pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835 "2024-10-10T17:25:43Z")\
**Posts on this page:** 20\
**Page:** 16

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 22, 2025, 9:14am UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/303 "2025-01-22T09:14:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Bud\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bud_m/32/97809_2.png) [@Bud\_M](https://community.homey.app/u/Bud_M)\
**Post date:** [January 22, 2025, 1:24pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/304 "2025-01-22T13:24:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bud\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bud_m/32/97809_2.png) [@Bud\_M](https://community.homey.app/u/Bud_M)\
**Post date:** [January 22, 2025, 1:55pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/305 "2025-01-22T13:55:51Z")

</div>

> [@Adrian\_Rockall](#):
>
> I will take a look at the SmartThings app to see if I can do anything in there.

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:

 ![Temperature Conversion Issue](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/2/920e466c1611a5cc22a5ebd57288ae95ea0b8cee.jpeg)

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 22, 2025, 4:33pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/306 "2025-01-22T16:33:02Z")

</div>

I have published a new test version with some fixes.

---

<div class="post-metadata">

**Author:** ![Bud\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bud_m/32/97809_2.png) [@Bud\_M](https://community.homey.app/u/Bud_M)\
**Post date:** [January 25, 2025, 4:20pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/307 "2025-01-25T16:20:03Z")

</div>

![Enhance Device Widget](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/e/ae61b8659205069c50958534223e8d730661f26c.png)  
I’ve published some [YouTube content featuring the Enhanced Device Widget (Test Ver 1.1.16)](https://youtu.be/9ipGNyp1bts). The video features the two elements of this widget. Includes a tutorial on how to get both elements setup within the Homey Dashboard.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 25, 2025, 4:54pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/308 "2025-01-25T16:54:41Z")

</div>

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?

 ![1000042265](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/0/2056d45d39ef871fbdfb044088d71af5ab658b7f.jpeg)

HTML:

```auto
<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.

---

<div class="post-metadata">

**Author:** ![dooniem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dooniem/32/58384_2.png) [@dooniem](https://community.homey.app/u/dooniem)\
**Post date:** [January 25, 2025, 8:22pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/309 "2025-01-25T20:22:25Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 25, 2025, 9:07pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/310 "2025-01-25T21:07:59Z")

</div>

I have figured out what is causing the big gap, now trying to thing of a way to keep everyone happy 🙂  
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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 26, 2025, 1:23am UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/311 "2025-01-26T01:23:05Z")

</div>

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:

 ![1000042284](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/9/e9799aee5e005b29c1a80bb09b8b65f1a4adaf11.jpeg)

 ![1000042286](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/a/ea10304e33942e04c7abd4621aab004af7821451.jpeg)

> [@Adrian\_Rockall](#):
>
> trying to thing of a way to keep everyone happy 🙂  
> The change I made was to allow new lines in the text so it could be formatted:

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!

---

<div class="post-metadata">

**Author:** ![Jyri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jyri/32/89238_2.png) [@Jyri](https://community.homey.app/u/Jyri)\
**Post date:** [January 27, 2025, 8:31pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/312 "2025-01-27T20:31:31Z")

</div>

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:🙄

Br Jyri

---

<div class="post-metadata">

**Author:** ![Rogier\_Verheugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogier_verheugen/32/77406_2.png) [@Rogier\_Verheugen](https://community.homey.app/u/Rogier_Verheugen)\
**Post date:** [January 27, 2025, 8:38pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/313 "2025-01-27T20:38:25Z")

</div>

@Jyri

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/f/2f0c5d0f4019864c5a81c0f8571e941ebe01d289.png)  
Achtergrondkleur = backgroundcolour  
Tekstkleur = Text colour

So yes. It is already possible

Edit: Sorry you actualy mean a variable. No

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 27, 2025, 10:24pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/314 "2025-01-27T22:24:33Z")

</div>

You should check the [DataVista app](https://community.homey.app/t/app-pro-datavista/121482) for this.  
It’s quite customisable

 ![1000042393](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/a/ca258563513ced7f2029ccc560c09274d42c04b4.jpeg)

 ![1000042395](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/8/e866cc886b35c637b186787c7de78ddad6a3aee7.jpeg)

 ![1000042388](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/eed41eb01cb8098ff7aeb60b493b8fa40ada23e0.jpeg)

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 27, 2025, 11:32pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/315 "2025-01-27T23:32:27Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Jyri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jyri/32/89238_2.png) [@Jyri](https://community.homey.app/u/Jyri)\
**Post date:** [January 28, 2025, 7:30am UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/316 "2025-01-28T07:30:35Z")

</div>

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)🤔

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 28, 2025, 7:43am UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/317 "2025-01-28T07:43:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jyri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jyri/32/89238_2.png) [@Jyri](https://community.homey.app/u/Jyri)\
**Post date:** [January 28, 2025, 7:52am UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/318 "2025-01-28T07:52:00Z")

</div>

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🤔

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 29, 2025, 5:21pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/319 "2025-01-29T17:21:04Z")

</div>

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

```auto
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.

---

<div class="post-metadata">

**Author:** ![Kringloper](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kringloper/32/70714_2.png) [@Kringloper](https://community.homey.app/u/Kringloper)\
**Post date:** [January 29, 2025, 6:38pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/320 "2025-01-29T18:38:44Z")

</div>

Wrong topic, message moved 😉

---

<div class="post-metadata">

**Author:** ![Jyri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jyri/32/89238_2.png) [@Jyri](https://community.homey.app/u/Jyri)\
**Post date:** [January 30, 2025, 10:10am UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/322 "2025-01-30T10:10:59Z")

</div>

Thank you🙏  
This opens new possibilities👍

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

---

<div class="post-metadata">

**Author:** ![Yann\_Liqueur](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yann_liqueur/32/114031_2.png) [@Yann\_Liqueur](https://community.homey.app/u/Yann_Liqueur)\
**Post date:** [February 7, 2025, 10:39am UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/323 "2025-02-07T10:39:30Z")

</div>

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 😉

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

[Previous page](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835.md?page=15)

[Next page](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835.md?page=17)
