![]() on the request node, I decided I wanted to use a ping probe as it would be more elegant for various reasons. Although this works fairly well, and besides not being able to easily configure socket timeouts, etc. Realising this, I first tried running a simple HTTP server that node-red can poll. Thus, using a ping probe from node-red to decide if the laptop is asleep will not work as is. The ideal approach would be a ping probe (that turns the light off if it does not receive a response on the ICMP packet and vice versa) - but it’s worth noting that MacOS keeps theWi-Fi connected even when asleep whether WoL (Wake-on-LAN) is enabled or not. Node-Red configured to work with Home Assistant.A “smart” light bulb connected to Home Assistant (I have an IKEA Tradfri mono colour bulb screwed into the roof light socket and connected via ZHA).A MacBook laptop running a fairly recent version on macOS (I’m using a 2017 MBP running macOS Monterey here).Using a motion sensor in this case would cause endless irritation as I often sit still for long periods while I work and will have to frantically wave my arms in the air to turn the light on again (many of you will have experienced this with motion activated lights) Here’s a video of it in action:ĭisclaimer - I currently have a very unattractive ceiling light. Bedside lamps that (besides slowly getting brighter as the sun sets), goes to set brightness when I get in bed (when I usually read a book), and ultimately turning off when I fall asleep (according to my health tracker) and turning on again in the morning when it’s time to wake up.įor this post I will go over how I toggle the light in my home office (many of us have one now - thanks Covid) based on whether my laptop is asleep or not. #Launchcontrol macos tv#The lounge lights fading to a low warm hue if the TV is on and I am sitting on the couch after 19:00 in the evening (and turning it off when the TV turns off any time after 22:00). #Launchcontrol macos full#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |