This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.

[KaKu remote + Hue Lights] How to make a Dim-flow?

Hi Guys, 
i'm totally new to Homey, received my Homey yesterday and immediately started experimenting...
Before i knew it it was 01:00 and i realized my alarm would go off the next morning @6:30 so i stopped learning :)

I have a few Hue lights and an old KaKu system (remote and wall switches)
I want to automate everything but still keep my girlfriend de-stressed ;)

Therefore i need some manual controls before i start automating everything.

My problem:
I want to be able to use my old-skool KaKu remote (AYCT-102) and wall-switches (AWST-8802) to turn Hue lights on and off (this works)
But i also want to use the same dimming-logix of KaKu;
- press on: light switches on (on the last known brightness level)
- press on again: light starts to dim up
- press on again: light stops dimming
- press on again: light starts to dim down
- press on again: light stops dimming
- press off: light switches off

I'm not really sure how i can put this in a flow (or multiple flows?)

For my work i use PowerShell a lot, there i can use a do until loop but that does not work in Homey.

So, i'm hoping any of you guys have the same setup or can help me in the right direction.

Thanks!

Comments

  • TmaniacTmaniac Member
    Well maybe i solved it myself already by creating 5 flows and 3 variables.

    Here's what i thought up of while at work (been a slow day :smile: )
    Variables:
    [string]$LastDimState_1_4
    [bool]$AllowDim_1_4
    [bool]$OngoingDim_1_4

    Flow: KaKu_Remote_1_4_LightOn
    When...
    AYCT-102 Button is pressed
    Channel 1; Button 4; State On
    ..and..
    [Ambience-Bank] = Off
    ..then
    [Ambience-Bank] [Turn light On]
    Set $AllowDim_1_4 = $True

    Flow: KaKu_Remote_1_4_StopDim
    When...
    AYCT-102 Button is pressed
    Channel 1; Button 4; State On
    ..and..
    [Ambience-Bank] = On
    $AllowDim_1_4 = $true
    $OngoingDim_1_4 = $true
    ..then
    [Ambience-Bank] [Set Brightness value: (Tag #Dimlevel)]
    Set $OngoingDim_1_4 = $False

    Flow: KaKu_Remote_1_4_LightOff
    When...
    AYCT-102 Button is pressed
    Channel 1; Button 4; State Off
    ..and..
    [Ambience-Bank] = On
    ..then
    [Ambience-Bank] [Turn light Off]
    Set $OngoingDim_1_4 = $False
    Set $AllowDim_1_4 = $False

    Flow: KaKu_Remote_1_4_DimUp
    When...
    AYCT-102 Button is pressed
    Channel 1; Button 4; State On
    ..and..
    [Ambience-Bank] = On
    $AllowDim_1_4 = $true
    $OngoingDim_1_4 = $False
    $LastDimState_1_4 = "Down"
    ..then
    [Ambience-Bank] [Set Brightness] (100% over 30 seconds)
    Set $LastDimState_1_4 = "Up"
    Set $OngoingDim_1_4 = $True

    Flow: KaKu_Remote_1_4_DimDown
    When...
    AYCT-102 Button is pressed
    Channel 1; Button 4; State On
    ..and..
    [Ambience-Bank] = On
    $AllowDim_1_4 = $true
    $OngoingDim_1_4 = $False
    $LastDimState_1_4 = "Up"
    ..then
    [Ambience-Bank] [Set Brightness] (5% over 30 seconds)
    Set $LastDimState_1_4 = "Down"
    Set $OngoingDim_1_4 = $True









  • TmaniacTmaniac Member
    Well.. That doesn't work :(
  • EternityEternity Member
    edited May 2018
    Do you still use the bridge?

    If so, I had flows that used a AYCT-102 too, but to select a scene. 










  • TmaniacTmaniac Member
    Almost there...I have created 5 flows to try to get the dimming working....
    all i need is to find a way to cut off the dimming process at the current level of brightness

    Flow-Light_On

    Flow-Light_DimUp

    Flow-Light_StopDim

    Flow-Light_DimDown


    Flow-Light_Off

Sign In or Register to comment.