This app was mentioned in 19 comments, with an average of 1.26 upvotes
Should be pretty easy to do with AutoHue. As for toggling on or off, AutoHue can query the current state and then you could toggle the state.
Tasker + AutoHue Plugin should work well for you.
AutoHue Play store link https://play.google.com/store/apps/details?id=com.cuberob.autohue
I recently created a profile to set alarm for daily sunrise and worked really well.
Guessing AutoHue isn't working for you then?
I'm not much help, but I have played around with this hue plug-in before and it seemed to work well. I've never played with NFC triggers though.
https://play.google.com/store/apps/details?id=com.cuberob.autohue
AutoHue:: AutoHue Ever wanted to control your Philips Hue Lights without reaching for a remote? Or have the lights turn on automatically as soon as you enter your home? Or have the lights blink when you receive a new notification? Well now you can do this with AutoHue!
Just triger off the notification and use AutoHue
https://play.google.com/store/apps/details?id=com.cuberob.autohue&hl=en_GB&gl=US
The least requirement is an Alexa compatibility for the aforementioned Tasker/AutoVoice integration, see [How To] Trigger w/o Voice every Alexa Device with Tasker, AutoVoice and Amazon Alexa App — No Need for Hardware (like Echo*) or Voice Commands.
But my personal preference is a Signify (new name)/Philips (old name) Hue system in combination with AutoHue plugin. It just works ...
I have no need for a dedicated server (RasPi) but is most likely the most flexible but also most complex solution.
But I also use EventGhost (Forum with the Hue plugin.
No problem, but for the Hues you'll additionally need a plugin, e.g. AutoHue or Hue Essentials. AutoHue is the more technical solution - plugin only, Hue Essentials the more user friendly one - standalone app with reduced plugin functionality compared to AutoHue. I prefer and therefore recommend AutoHue.
It is not clear if you've described one or several use cases - I would assume several. But in either case you should become familiar with Tasker and learn about its handling: UI, Preferences, Profile/Task Settings, and functions: what is a Context/Profile, difference between Event and State, how to use Variables and most important which Actions are available and how to use them. The User Guide and the Tasker Wiki are perfect starting points. Further valuable information can be found in the side bar to the right or if you are on mobile at Tasker sub tap ≡ or ⠇then 🛈.
Tasker is NOT an out-of-the-shelf app.
Your success is directly dependent on willing to learn and your understanding how it works and how to make it work. The device and Android version should be negligible for that.
If I had to estimate the time needed - starting from the scratch - I would say two weeks full time at least, depending on your available technical knowledge and foremost coding skills.
Either/Or... you choose.
In my test above, I only had it active while the phone was off/standby. If the screen was on, the volume controls behaved normally. If the screen was off, the volume controls converted to on/off the LIFX lights.
QuickClick allows you to set it up however you choose.
*edit: LIFX Tasker Plugin appears to be wonky/unreliable these days. There are other LIFX+Tasker options however:
There's a Tasker AutoHue plugin for Lifx which works pretty nicely. Sadly it's not free but other available plugins simply don't work, so that's your only option. I have this set up in my room (NFC tag at the night table and at the light switch + one on my desk lamp) and most of the time it works nicely, with a few seconds of lag (plugin uses the Cloud).
It also doesn't work if your battery is < 15% (Android power savings)
To set up the tag you'll need NFC Tools and to actually launch the tasker task you'll need NFC Tasks
Remember to enable task access by 3rd party in Tasker.
I've asked devs about Intent support on their community forum some time ago but it's not coming anytime soon (that would allow to skip the plugin and tasker altogether)
Cheers
Sure; not sure how detailed to get, so figure I'll start with the basics - tasker is an android app that allows you to program your device, from your basic "turn the brightness down and go to vibrate when GPS shows I'm in the theater" to "When you see an alarm app going off, turn on my Hue at 1% with a light blue color, and bring the light up 1% every 5 seconds until full- then wait 10 minutes and go full brightness, normal White color." Autohue Is a plugin to allow tasker to control your Hue system. Autoremote allows you to remote-control your tasker from other devices. In my setup, I'm using my Nexus 7 tablet as my "server" - it runs all my tasker home automation tasks, controlling my Hue and Zigbee networks (thanks, Autovera! The phones all run tasker states (or exported programs, in my wife's case- NOT a techy, not a fan of tasker, etc.) that simply push updates to the Nexus (which is set to take their settings and combine them appropriately- for instance, if someone is coming home (is within 500m of home) AND nobody else is home, AND it's 1 hour before sunset or later, it turns on the porch light and a kitchen light. However, if someone is already home, it just fiddles with the porch light. Similarly, if someone leaves the 500 M fence, their device sets their variable to away- and if EVERYONE is set to away, tasker kills all the lights, etc.
AutoHue Ever wanted to control your Philips Hue Lights without reaching for a remote? Or have the lights turn on automatically as soon as you enter your home? Or have the lights blink when you receive a new notification? Well now you can do this with AutoHue! A link to the Dev's website. ...Please Note: I am a Bot.. To report errors or request additions, message /u/letestaccount
AutoHue Ever wanted to control your Philips Hue Lights without reaching for a remote? Or have the lights turn on automatically as soon as you enter your home? Or have the lights blink when you receive a new notification? Well now you can do this with AutoHue! A link to the Dev's website....Please Note: I am a Bot.