HomeTaskerTasker and Yeelight - turn your lights on upon arrival

Tasker and Yeelight – turn your lights on upon arrival

Can you tell I'm a Spidey fan?

I talked about emulating sunsets and sunrises with Yeelight before, this time around I want to make sure I will live long enough to see the sunrise. I nearly killed myself numerous times before over some shoes left in the doorway.  This Tasker and Yeelight project make sure you have some light waiting for you so you could live another day.

Tasker and Yeelight – The Homecoming

As you are probably aware, just linking the Yeelight action to a WiFi-connected condition is a bad idea. However, I have a profile that fixes all that! This is one of the first profiles I introduce to all beginners so do check it out – it’s a Home Profile.

Buy Yeelight RGB smart bulb

Buy it using these links to support NotEnoughTech.

Thanks to the groundwork set by my previous tutorial I can keep this one short and sweet. All we need to do is to add a single Yeelight action and link it to the day/night operator stored in %Sunlight variable.

EDIT: 24/10/2017
Yeelight app has been updated. New Tasker options has been introduced including variable for brightness, colour and temperature. Unfortunately, the update broke the predefined scenes which rendered my other tutorials irrelevant. I have reached out to the Yeelight folks and passed over my feedback. I hope we will see the functionality restored in the next update!

Modifying Home Profile

TASKER PROFILE - Home Value
Profile: Home Value 
	State: Variable Value  [ %Home ~ 1 ]
Enter: Home Tasks+ 
	A1: Flash [ Text:You are home Long:On ] 
	A2: Yeelight Device [ Configuration:Device: lamp, 
            Action: SCENE, Param: 222027 
            Timeout (Seconds):0 ] If [ %Sunlight ~ night ]

Exit: Home Tasks- 
	A1: Flash [ Text:You are not home Long:On ] 

It’s a single action, which I don’t think I have to explain. You can turn this into a more fun profile and assign a different colour to each member of your family (that uses Tasker). I will re-iterate that using the home profile is the way to go, as lamp will turn on each time when all conditions apply:

  • leaving home zone (cell network towers)
  • night time

Conclusion

I hope you find this useful. Next time I will show you how to recreate these conditions directly from a Raspberry Pi. If you have any questions in regards to the Yeelight smart LED RGB light bulb – follow me on social media.

Project Download

Download project files here. Bear in mind that Patreon supporters have early access to project files and videos.

PayPal

Nothing says "Thank you" better than keeping my coffee jar topped up!

Patreon

Support me on Patreon and get an early access to tutorial files and videos.

image/svg+xml

Bitcoin (BTC)

Use this QR to keep me caffeinated with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

New to Tasker?

Tasker Quick Start – Getting started with Tasker

0
From newb to not so newbie in 10 min

Best Tasker Projects

How to use Raspberry PI as WOL (wake on lan) server

0
While you could wake up your PC from a mobile directly, having a dedicated server capable of doing so is the best solution. The reason is simple. You can hook up as many devices as you wish with a single endpoint. This is why Raspberry Pi is perfect for this.

How to wake on LAN computers and put it to sleep with Power Menu,...

0
How to Wake on LAN properly via Android, Alexa, Google Assistant and Web

7 awesome Bluetooth keyboard shortcuts for Android

0
7 unique Android shortcuts that you can add to any Bluetooth keyboard.

Smart overnight charging with Tasker

0
Still keeping your phone plugged in overnight? Try smarter overnight charging with this profile

One thing that Join app can’t do and how to fix it with Tasker

0
It's not possible to share the clipboard automatically between join accounts registered to 2 different emails. But you can fix this with tasker.

Essential Guides

Tasker: Seconds into DD:HH:MM:SS (dynamic)

0
It's time to.... ok it's a pun, but I will show you how to master time and convert seconds to DD:HH:MM:SS dynamically

4 ways to organise Tasker projects

0
Keep your Tasker tidy!

A better way to store Tasker credentials

0
The more clever way of managing credentials

Annoyed with dozens of AutoApps populating your app drawer? Here is a fix!

0
Clear your app drawer from the clutter in seconds

Putting AutoTools pie chart to a good use – SSID logger

0
Who wants a piece of the pie (chart)?