# \[App\]\[Pro\] Color Tools

**URL:** https://community.homey.app/t/app-pro-color-tools/52877
**Category:** Apps
**Tags:** app, tools
**Created:** [October 8, 2021, 4:15pm UTC](https://community.homey.app/t/app-pro-color-tools/52877 "2021-10-08T16:15:26Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)
#### Post date: [January 15, 2023, 12:25pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/22 "2023-01-15T12:25:23Z")

</div>

> [@Caseda](#):
>
> this was recently added

Thanks a bunch @Caseda I’ll have a look into it.

---

<div class="post-metadata">

### Author: ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)
#### Post date: [January 15, 2023, 12:56pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/23 "2023-01-15T12:56:20Z")

</div>

Hi @Torch1969,  
Update is out and waiting for review by Athom. You can grad it for testing from the test channel already if you like.

Thanks again to @Caseda for pointing me to this fancy feature 😃

---

<div class="post-metadata">

### Author: ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)
#### Post date: [January 15, 2023, 4:45pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/24 "2023-01-15T16:45:09Z")

</div>

I can confirm it’s working 🙂

Thx a lot @Shakesbeard for this very fast “service” for implementing my feature request.

🍻 or ☕

---

<div class="post-metadata">

### Author: ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)
#### Post date: [January 15, 2023, 10:00pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/25 "2023-01-15T22:00:06Z")

</div>

Cheers! Thanks for your support 🙂

---

<div class="post-metadata">

### Author: ![HvN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hvn/32/56789_2.png) [@HvN](https://community.homey.app/u/HvN)
#### Post date: [March 17, 2023, 8:43pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/26 "2023-03-17T20:43:38Z")

</div>

Hi Guys,

Hopefully, someone can help me.

I’m trying to convert color from Hue degree to decimal format, but unfortunately, it doesn’t work or I do not know how to do this.

Can the Color Tools App convert Hue 0-360° (color in degrees) to decimal notation?

In Homey I have a virtual device with Hue color capabilities that are stored in decimal notation.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/0/30e9a739046ef1075d3c57f61be3fcf8fe813116.png)

Homey uses the following standard for this light capability.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/d/4de0602b3a9ac63143c79ced891e800ce2cf7809.png)

I have a remote touch panel that sends color in Hue 0-360° degrees to my Homey, but I don’t know how to convert this to decimal notation.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/6/d690fa5d27316eb7905e1d7579cd0f9992aa222c.png)

Example of an MQTT message I receive on my Homey from the touch panel.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/1/b1c1b9bab1be41e496932fff2cabb6fa92bdefde.png)

I have tried a lot of conversion methods in my flow. Maybe it can be done with simple (or complex) math (Trigonometry), but I do not know how.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/14fa67c48224936c1b7dfb267bcd26051d310247.png)

Thanks!

---

<div class="post-metadata">

### Author: ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)
#### Post date: [March 17, 2023, 9:30pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/27 "2023-03-17T21:30:00Z")

</div>

No need for complex calculations, just devide by 360 to go to percentage (0.00 - 1.00) that Homey uses, you might need to round it to 2 decimals:  
`{{ round(VARIABLE / 360, 2) }}`

---

<div class="post-metadata">

### Author: ![HvN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hvn/32/56789_2.png) [@HvN](https://community.homey.app/u/HvN)
#### Post date: [March 17, 2023, 11:08pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/28 "2023-03-17T23:08:42Z")

</div>

Many thanks Caseda, this work great.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/40fcba7737f2dc9ac4e1cac693c08d2c48c8a444.png)

My “Virtual devices” is now changing to the correct colors when I touch the Hue slider on my wall touch panel.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/d/fd9aa812911984ccfb99baf44deb24bed36f48c9.jpeg)

The “temporary variable” app can’t be used for the calculation, it does some strange things with the values, maybe because it has rounding built in, so I used the “Better Logic” app for that. I leave this here in case someone else needs it.

Again many thanks I’m very happy with this.

---

<div class="post-metadata">

### Author: ![HvN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hvn/32/56789_2.png) [@HvN](https://community.homey.app/u/HvN)
#### Post date: [March 17, 2023, 11:11pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/29 "2023-03-17T23:11:35Z")

</div>

Please see my answer above it works. No idea why your name is not attached to my post. I used the right reply button as far as I know.

---

<div class="post-metadata">

### Author: ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)
#### Post date: [March 17, 2023, 11:34pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/30 "2023-03-17T23:34:09Z")

</div>

I did receive the notification 😉, but as it is the direct reply (no messages in between) it doesn’t have to show what the reply is on.

---

<div class="post-metadata">

### Author: ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)
#### Post date: [March 18, 2023, 6:45am UTC](https://community.homey.app/t/app-pro-color-tools/52877/31 "2023-03-18T06:45:24Z")

</div>

> [@HvN](#):
>
> The “temporary variable” app can’t be used for the calculation, it does some strange things with the values, maybe because it has rounding built in

@spkesDE, can you say something about it?

---

<div class="post-metadata">

### Author: ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)
#### Post date: [March 18, 2023, 8:59am UTC](https://community.homey.app/t/app-pro-color-tools/52877/32 "2023-03-18T08:59:43Z")

</div>

There is no rounding in the decimal card. The “full numbers” card is simple Math.Round() same as BLL using.

---

<div class="post-metadata">

### Author: ![HvN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hvn/32/56789_2.png) [@HvN](https://community.homey.app/u/HvN)
#### Post date: [March 19, 2023, 12:17pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/33 "2023-03-19T12:17:02Z")

</div>

I don’t know if it has something to do with rounding, but the outcome of both methods was different.

Please see below the flow and calculation I used and their results.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/b/fb20562f847d48329c15c12e3d8d3e63f8ffd402.png)

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/f/3fa29ea3f74f0262a94c5f2d448f51d2528cac54.jpeg)

---

<div class="post-metadata">

### Author: ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)
#### Post date: [March 19, 2023, 12:29pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/34 "2023-03-19T12:29:52Z")

</div>

You used the wrong flow card, you need the Calculate as Decimal Number also it doesn’t need `{{}}` you just could enter `#Number 1/360`

---

<div class="post-metadata">

### Author: ![HvN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hvn/32/56789_2.png) [@HvN](https://community.homey.app/u/HvN)
#### Post date: [March 19, 2023, 1:41pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/35 "2023-03-19T13:41:02Z")

</div>

Please can you tell me witch (then) flow card is the right one? I used ADV.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/1/919e5a362915d5834c4b0406e087cd23c5edf449.png)

My problem is already fixed, but maybe interesting for the future or someone else.

---

<div class="post-metadata">

### Author: ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)
#### Post date: [March 19, 2023, 2:04pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/36 "2023-03-19T14:04:32Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/1/21c6687c4dadc08c01126102248da526e160f301.png)

---

<div class="post-metadata">

### Author: ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)
#### Post date: [March 19, 2023, 3:27pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/37 "2023-03-19T15:27:23Z")

</div>

Yeah, for bll you are actually not using bll-expression (which is just javascript basicly), but you are using an homey/athom coding, which is directly returned bij the bll expression. 🙂  
Works fine ofc, nothing wrong with it, but hardly bll-coding 😉

@spkesDE just fyi: but there is not a default rounding or anything in bll expressions, you would have to write Math.round yourself if you wish to round in bll.

---

<div class="post-metadata">

### Author: ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)
#### Post date: [March 19, 2023, 3:30pm UTC](https://community.homey.app/t/app-pro-color-tools/52877/38 "2023-03-19T15:30:02Z")

</div>

> [@spkesDE](#):
>
> it doesn’t need `{{}}` you just could enter `#Number 1/360`

Haha, jep, same code for BLL 😉

---

<div class="post-metadata">

### Author: ![Robinjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robinjo/32/2656_2.png) [@Robinjo](https://community.homey.app/u/Robinjo)
#### Post date: [May 19, 2023, 10:39am UTC](https://community.homey.app/t/app-pro-color-tools/52877/39 "2023-05-19T10:39:10Z")

</div>

I see examples how to convert hex to separate colors. But is it also possible to do it the other way around?

Trying to convert hue and saturation from a virtual device to hex and then sent the hex number thru Homesh to my other homey to control mi light color card.

---

<div class="post-metadata">

### Author: ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)
#### Post date: [May 19, 2023, 11:11am UTC](https://community.homey.app/t/app-pro-color-tools/52877/40 "2023-05-19T11:11:57Z")

</div>

> [@Robinjo](#):
>
> Trying to convert hue and saturation from a virtual device to hex and then sent the hex number

You can try formatting an input string like ‘hsl 0, 1.0, 0.5’. See examples section at the top.

---

<div class="post-metadata">

### Author: ![Robinjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robinjo/32/2656_2.png) [@Robinjo](https://community.homey.app/u/Robinjo)
#### Post date: [May 19, 2023, 11:25am UTC](https://community.homey.app/t/app-pro-color-tools/52877/41 "2023-05-19T11:25:52Z")

</div>

Thanks for your reply, I now see I can’t sent a hex value to a color card, so I need to sent it separate to color and saturation card. The strange thing is you can select a color with saturation levels in de color section card and see the hex value, but it only had a trigger and color input I guess.

[Previous page](https://community.homey.app/t/app-pro-color-tools/52877.md?page=1)

[Next page](https://community.homey.app/t/app-pro-color-tools/52877.md?page=3)
