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.
Flows
Comments
On the SmartPhone I wanna use a Slider for the volume control:
I've take some time to develop 4 Flow and use for the Flow 3 variabele:
Flows:
Variable:
The trick is When I change the "VolumeVersterker", the following Flow will count the volume step.
Volume Changed Flow:
Now we know how many step the volume has to set up or down. (VolumeStap positive or negative) So the right Flow will start, Volume Up or Volume Down. Each flow is a "For...While"-Loop and stops when the VolumeStap counter is zero.
Volume Up:
Volume Down:
Relax and listen the music on the right volume. When the VolumeStap counter is Zero, the VolumeVersterker en VolumeVersterkerMemory is set to 50 again:
Volume Control for IR remote is created right now! Very difficult and I think you could do this easier!
I dare you!
The idea is simple:
1. If there first was movement and then the door is opened and then there is no movement -> persons left the house
2. If there first was no movement and then the door is opened and then there is movement -> persons entered the house
The motion sensor is placed in the living room, pointed at the door that goes to the hallway. So it always detects motion when some one is walking from halway to living room, or from living room to halway. The door sensor is placed on the front door (from outside to hallway).
Flow 1:
Start a timer "motion woonkamer ivm voordeur" for 5 minutes, when motion is detected (ignore the '..en..' part).
Flow 2 (Door out -> in part 1):
Door opens, and timer is NOT running, so door is opend from the OUTside. This flow only starts the timer "voordeur open ingaand" for 5 minutes.
Flow 3 (Door out -> in part 2):
If timer "motion woonkamer ivm voordeur" now starts (becouse of flow nr 1), and timer "voordeur open ingaand" is still running, Homey knows that someone has come inside.
Flow 4 (Door in -> out part 1):
If the frontdoor is opened, and the timer "motion woonkamer ivm voordeur" is already running, it starts the timer "voordeur open uitgaand" for 5 minutes.
Flow 5 (Door in -> out part 1):
When that timer (motion woonkamer ivm voordeur) stops, and the timer "motion woonkamer ivm voordeur" isn't running anymore, Homey knows that someone had gone outside.
But still, with these flows I know it more precicely than without these flows.
When
- The motion alarm turned on
- The Luminance changed
And
- Logic Lux Tag = less then 200
Then
- Set a hue scene.
But it keeps saying "only one trigger per flow is allowed"
The Sonos action card to adjust volume allows for global tags to be added to the slider:
So if you would create a Better logic numerical value Sonos_volume with initial value of 0
and you could create the following flows:
1. When push ON AND Sonos_volume < 1 THEN Sonos_volume = Sonos_volume+0.1
2. When push OFF AND Sonos_volume > 0.1 THEN Sonos_volume = Sonos_volume-0.1
3. When value Sonos_volume changed THEN Set Volume with Sonos_volume tag added
It should work...
Is this only available in beta version?
Have you defined the better logic variable?
In the flow view, open tags, search for the Better logic variable and pull this Better logic variable tag towards the small square with the slider on the action card you showed...
also learned this trick a few weeks ago...
Thanks a lot!!!
- I had a flow that if the ON button is pressed, the light will turn on with a brightness of 65%. I added an hourglass called 'switch_slaapkamer', which will run for 3 seconds. Also added a condition so it won't trigger if the hourglass is running (because of the next step).
- Now I make a new flow, which will trigger if the ON button is pressed AND the hourglass is running. The light will then turn on with a brightness of 100%.
- To make it idiotproof, I have edited the OFF flow to cancel the hourglass for that room.
If you press with small pauses, it will work flawlessly. Did not test it when you keep pressing. (edit: it does not work) You can even make it more advanced, by having a brightness of 60% on the first press, and with every next press within 3 seconds, it will add the brightness with 10%.
Nice idea, thanks!
You need to do a testrun to create the tag of testnotification so you can use it in the and condition after that place a logic in the and condition and put lastnotification tag and the current date tag
Get the following : BlitzWolf® BW-LT5 Pro IP68 Waterproof LED Panasonic 3350mAh Powerbank Emergency Camping Lantern
Use a cheap neo wall plug, and place it in your utility closet (meterkast).
Make a flow that runs every X days that puts the wall plug ON, add the wall plug again that puts the wall plug OFF with a delay of X minuts.
This way you have a powerbank that is "almost" always charged and you get a emergency lantern with it.
Now she can tell me to clean up the laundry!
Trigger : Homey starts listening
Conditions: none
Action 1: Set Sonos to pause
Action 2: Set Sonos to play (after 5 seconds)
I choose 5 seconds delay as mostly my commands are short.
In this way no need for better logic, only standard available tools
If so, it can be fixed with an else card I suppose.
Still, quite genius. I'm going to change my mute-flow to this. Simple and effective!
and if you start Sonos with the Sonos app on laptop or phone then the tag stays on false or threu, untill you use the Homey app :-( only then the tags changes.
why is the tag not usible ?