Home Tasker Tasker 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 in style with crypto-currency

New to Tasker?

Tasker Quick Start – Getting started with Tasker

0
From newb to not so newbie in 10 min

Best Tasker Projects

Tasker PC control – #Tutorial 3 (Apps menu)

0
Launch apps and websites from the mobile!

Tasker PC control – #Tutorial 2 (Volume Menu)

0
If you missed the part one, I strongly recommend you to check it out. It tells you all about the framework used,...

How to control your PC like a boss – Tasker Project

0
Control PC, and other devices from a custom notification system.

Bluetooth battery monitor – monitor any Bluetooth battery with Tasker

0
Measure the battery use of Bluetooth devices

The Minimal & Elegant giveaway WINNERS

0
Picking the winners live! Livestream and making a Tasker Winners project!

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)?