Light level accepting a tag


#1

Hi,

Athom does not have a working google home integration skill for Homey yet, so I’m using IFTTT to accept commands like “Bedroom lights on”, “Nighttime mode”, etc. That is working great, except that I don’t seem to set light levels in a Homey flow to a specific variable.

Within IFTTT I can setup ingredients, so that if I would say “Bedroom lights xxx percent” a Homey flow would start (BedroomLights) with a tag that holds the xxx value. However, the dimmable light devices within Homey have a slider and no textbox where you can drag a tag into.

Is there a workaround for this?


#2

Drag the tag upon the slider and u’ll be amazed!


#3

That’s the first thing I tried, but it is not working. I’m using the Homey desktop app. The flow starts with an IFTTT “when” that holds 3 variable tags (var 1, var2, var 3). Var 1 should contain the percentage. I drag this to the “Set forced brightness” slider of a dimmer in the “then shape” but only see the circle with diagonal line icon displayed and that’s not really amazing me yet :slight_smile:

What am I doing wrong here?


#4

Can u try a Chrome browser to check if that works? And maybe try a number variable?


#5

Can you reach homey settings with a browser as well? I’m always using either the Homey desktop application or the Homey Preview app on my phone. Did not know it was possible using chrome as well?

I don’t think I can change the variable types for the “On IFTTT Event” card. It simply has 3 variables on it.


#6

Just type ur IP or go to my.athom.com
Never used the desktop app.


#7

Lol, didn’t know that. Tnx for pointing that out. Funny thing is that at the login screen it displays a warning “Browsers are not supported. Please use the Homey Desktop app” but it indeed looks and works exactly the same. Unfortunately that’s also true for the variable not being able to drag to the slider.

But I think your right and it is a type mismatch. I can drag a number tag from my tags list to the slider. The variables on the “On IFTTT event card” are all green.

Would there be a way to parse that value to a number and use that further on in the flow?


#8

And use dim level in the 0-1 range…


#9

1 way could be :
Make a number variable with the Better Logic app.
Use the “execute mathjs. expression” card. Drag ur green card to the left of that card and type the name of the numbervariable u just made in the right.

BLapp1


#10

Hi, sorry for my delayed response, just wanted to say thanks, this indeed works!


#11

Very nice! :+1: