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.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Flow help
Tim_Brass
Member
Flow Question:
I have a wall switch with a CoCo dimmer behind it.
Now I want the lights to go off after 5 min when switched on (no matter if I use the switch or the CoCo).
Problem is that the CoCo doesn’t inform Homey when the switch is flipped manually. So Homey doesn’t know if the light is on or off.
Anyone with a brilliant idea to fix this? Is this even possible?
I’m not so good with the Variable tools, don’t know if that would fix it……
Comments
But if you want to stick with coco then indeed use the better logic app and create a variable current-status and a flow for each wallswitch that it should change the variable.
Thanks for your awnser.
Could someone help me out with this? because I'm fairly new at the better logic app.
Any help would be greatly appreciated......
I guess you have 4 options:
1. Change the Kaku for a Z-wave variant.
2. Change the Kaku receiver to a sender so you got the sender to send to homey as well, and add a receiver at the lamp
3. Change the lamp out for a smart bulb which you can be read out for feedback
4. Add another module behind the switch just for sending feedback to homey, or hack one in at the lamp side
4th option is a little bit silly but still an option
i have a wall swith by kaku, and i have a dimmer in my light socket by kaku.
i registered the lightsocket by clicking a the switch, and let homey use that signal.
i registered the wall switch to the same toom as the light switch.
when click the wall switch, i can actually see that homey sees that the light is off.
The OP is using a totally different situation then you:
OP is using a normal (non-KaKu) wall switch with a (probably) receiving Kaku module behind it (because OP doesn't state using a receiver at his lamp)
So he can switch his lamp also from another place (which would be a transmitter)
But Kaku only uses one way traffic (just receive or just transmit)
So his normal wall switch does not send any signal, it just receives it from other transmitters
So if you switch the normal wall switch (which triggers just the internal relay), homey cannot know the relay/lamp was turned on.
I follow the forum for a few months but now I finally have my own Homey I want to configure it but I can`t find answers to my questions.
Maybe because I have no experience and it's child's play and that`s why it`s not mentioned.
Devices up till now:
- 6 window / door contacts (COCO)
- 2 Dimmers (COCO)
- 6 Switches (COCO)
- COCO remote
When creating flows I get stuck on a few points.
When one of the window / door contacts are triggered, I want all the lights to go on.
However, there is only one trigger allowed in a flow. Does this mean I have to make 6 different flows for every trigger (window/door contact)?
I also do not want these flows are always on. I tried to switch off the flow whit a button off the COCO remote but it does not work.
The flow remains active so all lights continue to go on when you open a door or window.
The only way to turn off the flow is by editing on pc and unbox the flow.
I also tried to create a flow that another flow (alarm) should trigger and a flow to deactivate the flow "alarm" again.
Unfortunately, I have not either been working.
(and does anyone have a KPN TV remote working ?)
Sorry voor de spelfoutenJ
You will still need 6 flows to trigger the lights though.
Make a variable (Boolean, only on or off) with the name "door sensors off" or something similar.
Then you can stop triggering with the remote like this
[IF] pushed button on remote
[THEN] toggle Boolean value of the variable "door sensors off"
(switches from "True" to "False" and other way around)
Or any other method you'ed like, example: speech.
Then with all 6 the sensors in different flows
[IF] alarm triggered
[AND] variable "door sensors off" = false
[THEN] turn all lights on
Optional, easier if you have lots of lights turning on:
You could create another variable (Boolean) with "lights on" or something similar.
And let the sensor change this Boolean to "True" when alarm is triggerd.
And then create Another flow:
[IF] Variable "lights on" is changed
[AND] Variable "lights on" = true (otherwise it will also trigger when going to "False")
[THEN] turn all lights on
You can use the variables like this for your alarm "problem" as well.
if "time = 7.00" set temperature to 22 and set variable to day
if "reset-button" pushed and variable = day then set to 22
if "reset-button" pushed and variable = night then set to 18
This way you can adjust your temperature setting by hand but it will always be re-set at 22.00 and 7.00...
Or you can use the 'Emulate speech' card to use 'Turn on the lights', but Homey will confirm this by speech, so I don't know if you want that.
Allright, so in the following i have created a "scene".
- I have done this by creating a variable "Light_Livingroom_Strength" in Betterlogic.
- After creating the variable I have defined all the lights that should go when the flow is triggered (in this case it is triggered by the number 3 - as I have multiple scenes that I use in the living room).
- After I added the trigger, i defined all the light that should go on (right side), in my case slightly dimmed.
Does that help @Yannick ?
That's one of the reasons why using 'scenes' would be better; you can define the behaviour for selected lamps.
However, as we don't see what kind of flows you're building it is hard to assess what you are trying to do. Perhaps edit the post and add a screenshot? And/or try to describe what it is you are trying to do (i.e. in the style of Bas above).
What I'm trying to achieve is the following:
I want my lights in the whole house to be set to 100% brightness by default (only the ones that I manually turn on). Then starting from 9pm I want them to gradually dim till around 11pm where they would be at their lowest (around 20%).
Reason is for melatonin production and better sleep (see lifx blog for more details, they even have an implementation for that alread (lifx schedules)).
In case your lights do not go on with the 'set dim %' it should be quite ease to achieve, mind you could still be a lot of work with the current implementation of the dimmer sliders (in Ideas I posted a suggestion to dim the units using integers, so that an idea/scene like this would be easier).
So for you case, if your dimmer reacts in a similar way to the Qubino you mentioned, I would suggest to create a couple of scenes, that are triggered with integers (see my example above).
- Create flow for each scene in which you dim all the lights (as only the lights that are on will actually be dimmed) with an X% - For example 20% - This results in 6 scenes (5 is the maximum strength, 1 = minimum, 0 = off). So this leads to 6 flows which are defined as follows:
* As 'IF' condition you define 'If a variable is set' for the 'Light_Strength' variable.
* As 'AND' Condition you define if the value = 1 (of any other step)
* As 'THEN' condition you define the dimmer card for all lights on x%.
- Create a flow which triggers a timer (using the CountDown app), for example called 'Light_Strength_Timer' .
* IF Timer empty 'Light_Strength_Timer',
* AND Light_Strenght is greater than 0.
* THEN Decrement number variable 'Light_Strength' with 1. AND Start timer 'Light_Strength_Timer' for 24 minutes again.
(In this example you will let the timer run for 120 mins / 5 scenes = 24 mins (did not count the off scene).
- Create a flow which initially starts the timer (i.e. by time 9pm or by command) for 24 minutes.
- Create a flow that resets the strength to scene 5 each day (i.e. around 4 am) or use another flow that turns on the light and sets the dimmer strength to scene 5.
Some work, but you need to do this just once AND you can always reuse the scenes in other flows as well.
Hope that helps!
https://github.com/athombv/homey/issues/934