How to dim lights over time

Some examples would be Philips Hue, LIFX and Yeelight bulbs. The bulb does the dimming.

I use a z wave dimmer (fibaro, aeotec, qubino etc.), the dimmer does the dimming and the dimmable bulb gets dimmed

Thanks @Mutt,

Going with a separate dimmer seems to be a better idea.
But these models are expensive!

Why do you think it is a better idea? I think it depends on your use case.

When I’m away and a bulb goes (and inevitably they will) my wife (or even the dog (almost !)) can change the ‘dumb’ bulb (I have a Box of bulbs, they have numbers written on them, so ‘like’ is replaced by ‘like’).
No need to pair a bulb, set up identity names for automations, scenes, scripts etc.
Oh and the bulbs cost 1/10 of what ‘some’ smart bulbs cost. (I buy Ikea Ledare)
AND they don’t ALL come on after a power cut (like tradfri)


Some 6 years ago I replaced most of my bulbs with Philips Hue and Ikea “smart” bulbs and since then, not a single bulb failed on me. If it happens one day that I’m away, my wife at home and a bulb fails, she’ll happily wait some hours for me to replace it, as they are anyway too high up in the ceiling for her :sweat_smile:
Regarding cost, I agree they are more expensive than “dumb” bulbs, but the IKEA bulbs are extremly cheap as well. You also have to include the cost of your dimmers in this calculation and then I think the total price would be very similar in the end. Power cuts are no problem here, I had one power cut in the last 10 years, lucky me :rofl:
Anyway the main reason for me to use smart bulbs over smart dimmers is that we live in a rented apartment. In addition as far as I know, insurance companies here won’t pay if my apartment burns down due to a failed Sonoff or whatever, which has not be installed by a certified electrician.
As you said YMMV.
Just out of interest, if your Z-Wave dimmer fails, will the light switch still work? I was thinking to get some of them in the future, when we move into our own home.


Every single point you raised is valid.
I am an electrical engineer by training (with heavy control bias) so installation is not a problem for me. But each switch is live so requires isolation, so in the last six months, some parts of the house have been up and down like…
I was also under the impression that for scene activation (I don’t use scenes but I do use them as triggers) I needed to include those nodes as secure. So many more exclusions and inclusions later I have proved they don’t and so I will soon have to do the rounds again to improve network speed.
I think a dimmer and a dumb bulb will generally be slightly more expensive (especially above tradfri, maybe over the ‘20 years’ I’ll be ahead (Edit: though a pesent worth calculation would probably laugh at that contention), but then who knows what lights we’ll be using in 5 years time ???) and though our supply is both stiff and resilient, I never rely on that AND I have incorporated an SPD (surge protection device) at the incomer (stats attribute nearly 20% of all equipment failures to transients even in developed countries, a trend that has been exacerbated by the drift away from transformers to voltage dividers and choppers).
Different bulbs have different quoted lifespans and though the wife tends to leave lights on all over the house (I have added timers to ALL lights) I try to convert those lifespans into as many years as poss (reduces running costs twofold - bulb and power) even 15, 000 hours assuming 6 hours a day (my worst case) is 6.8 years. Some bulbs are 50,000 hrs.
The life of my switches is >= 20 yrs (longer than I’ll be in the house :rofl: )
If a switch goes then it’s just broke and it’ll be me (or a trician) who has to fix it. BUT if if HA goes down I can still switch everything just like a normal dumb house.

Edit: I don’t think my wife would be happy to wait a couple of days before getting a bulb changed, but I suppose you could just fit another unpaired tradfri and use the standard wall switch for that time

1 Like

Your insights are highly appreciated!
Good to hear that you are still able to control the light at the switch when HA goes down. Need to investigate the whole thing more, I even thought about doing some studies in the electrical field in order to be able to do mains powered stuff myself, but it’s probably overkill :rofl:

You are right, in case my wife would be home alone for a few days and a bulb would fail, I’d just tell her to replace the bulb and switch it with the standard wall switch.

Hi there,

I’m still having trouble with the transition. I wanted to add that in one of my automations, which looks like this:

- id: '1578176920150'
  alias: Licht WZ an 1
  description: ''
  - event: sunset
    offset: -00:15:00
    platform: sun
  - condition: or
    - condition: zone
      entity_id: person.p1
      zone: zone.home
    - condition: zone
      entity_id: person.p2
      zone: zone.home
  - alias: ''
    data: {}
    entity_id: light.stern
    service: light.turn_on
  - entity_id: light.couch
    service: light.turn_on
  - entity_id: light.globus
    service: light.turn_on

I tried to enter the line

transition: 900

after each

service: light.turn_on

but then Hassio tells me that I have an error in my automation.yaml (after reloading) and the updated automation is not visible in the editor.
Where am I going wrong? Hints warmly welcome!


The transition is part of the data: block. Try like this:

  - service: light.turn_on
    entity_id: light.stern
       transition: 900
  - service: light.turn_on
    entity_id: light.couch
       transition: 900
  - service: light.turn_on
    entity_id: light.globus
       transition: 900

First success, the editor lets me save this. I keep the fingers crossed that my lights will dim to off later (with another automation of course)

For others: in the GUI-editor enter

transition: 900

in the service data box.

I forgot, you need to add the brightness that you want to have in the end. You can’t use transition without a brightness, except if you turn the light off.

1 Like

Thank you!
To set brightness for turning on also came to my mind and works as it should. The turning-of seems a bit odd at the moment but nothing that I should not be able to solve myself.

Hey guys,

Can this be done direct from an automation and could someone please share a code example?


Pleaae open a separate topic, tell us your goal, post your current code and we’ll be able to help you.

1 Like

Hello Noahma,

For some reason this does not work for me. Running the automation does not even turn the light on. I have a light strip to my aquarium with a cheap controller. More details about the light and set up here: How to access in Virtual Box

When creating the automation, the strip doesn’t turn on however, when I use “wake the aquarium night light” from Google home it works.

I have built the exact same automation with you… Is it possible that in some lights it works and others not?

Thank you

Better open a new thread and post your automation properly formatted there. Without seeing your code it’s impossible to help.

1 Like

Hi Burningstone,

As per your suggestion, i have raised a new topic here: Replicate Google Home Wake/Sleep lights with HA not working

Sorry I missed your post. I don’t check the forums all too often. It looks like you have the issue solved though?

BTW, which lights are you using for your Aquarium? Curious as I have a fully planted freshwater tank and am always interested in ways to automate the system more lol

Yes I did solve it by installing the Assistant_relay… So now I send text commands to Google home.

I have a cheap led from Amazon which was Bluetooth only but I bought a wifi controller… However, this is my night light… It is not for plant growth…