Exploring Govee and Nanoleaf Integration for a Dynamic Lighting Experience

Hey everyone, I’m thrilled to share my recent journey into the world of smart lighting with Govee and Nanoleaf! :star2:

I’ve recently integrated a Govee LED strip and two bulbs into my home setup, and the results have been nothing short of amazing. The Govee app has been a revelation, offering a wide range of effects that truly bring my space to life. It’s so satisfying to see how these lights transform the ambiance of my room with just a few taps on my phone.

Buoyed by this success, I decided to take it a step further and automate the color sequence based on the weather. I spent countless hours tweaking templates and scripts, but it was well worth the effort. Now, my Nanoleaf Aurora panel changes colors depending on whether it’s sunny, cloudy, or raining outside. It’s a small touch, but it adds so much personality to my home.

Here’s a quick glimpse into how I set it up:

yaml
automation:

  • alias: Change Nanoleaf on sun or weather change
    initial_state: true
    trigger:
    • platform: state
      entity_id: sun.sun
    • platform: state
      entity_id: weather.local_weather
    • platform: state
      entity_id: light.nanoleaf_aurora_52_4b_ff_local
      to: ‘on’
      condition:
    • condition: and
      conditions:
      • condition: state
        entity_id: light.nanoleaf_aurora_52_4b_ff_local
        state: ‘on’
      • condition: template
        value_template: ‘{{ trigger.to_state.state != trigger.from_state.state }}’
        action:
    • service: homeassistant.turn_on
      entity_id: script.changenanoleafcolour

And the script that does the magic:

yaml
script:
changenanoleafcolour:
sequence:
- service: logbook.log
data_template:
name: “Script Triggered”
message: “Change Nanoleaf Colour”
- service: homeassistant.turn_on
data_template:
entity_id: light.nanoleaf_aurora_52_4b_ff_local
effect: >
{% if is_state(“sun.sun”, “above_horizon”) %}
{% if is_state(“weather.local_weather”, “cloudy”) %}
Sunlight through trees
{% elif is_state(“weather.local_weather”, “sunny”) %}
Sunny days
{% endif %}
{% elif is_state(“sun.sun”, “below_horizon”) %}
{% if is_state(“weather.local_weather”, “cloudy”) %}
Night mode
{% elif is_state(“weather.local_weather”, “sunny”) %}
Moonlight
{% endif %}
{% endif %}

While I’m thrilled with how it all came together, I’m curious to hear how others have taken their setups to the next level. Have you integrated weather-based automation? How do you ensure smooth transitions between different lighting effects? I’d love to learn more about your experiences and tips!

Let’s continue to explore and share our smart lighting adventures! :rocket: