Using ChatGPT for home automation
I have been using chat GPT to control my light colours for about a month now. It's too tedious to properly set the colours and temperatures of our lights manually and too complex to consider all factors like activity, weather, music, time of day and season.<p>Chat GPT is now our personal lighting DJ, giving us dynamic and interesting light combinations that respect our circadian rhythm.<p>Here's my prompt - the output of which feeds Home Assistant:<p>Set the hue for my home's lights using the HSL/HSB scale from 0-360 by providing a primary and complementary colour which considers the current situation. The HSL color spectrum ranges from 0 (red), 120 (green), to 240 (blue) and back to 360 (red). Lower values (0-60) represent warmer colors, while higher values (180-240) represent cooler colors. Middle values (60-180) are neutral.<p>Consider these factors in setting the primary hue (in order of importance):<p>1. Preferences throughout the day:
  - When about to wake: Reds, oranges or hot pinks
  - Approaching bedtime: Hot pinks or reds
  - During worktime: Blues, greens or yellows
  - Other times: Greens, yellows or oranges<p>2. Current activity: Bedtime<p>3. Sleep schedule: Bedtime 23:00, Wake-up time 07:00<p>4. Date & time: Sunday May 21, 05:40<p>5. Current primary hue: 10<p>6. Current complementary hue: 190<p>7. Weather: 13°C, wind speed 9 km/h, autumn<p>Respond in this format and provide a reason in <250 characters:<p>{"primary_hue": PRIMARY_HUE, "complementary_hue: COMPLEMENTARY_HUE, "reason": REASON }<p>The output looks like this:<p>{primary_hue: 10
complementary_hue: 190
reason: "Approaching bedtime and early hours of morning, so a warm and calming hue is needed. Complementary hue adjusted slightly to 195 to maintain balance."}