ZHA and Ikea Light Bulbs - status not reflected in HA

Hi,
Short story, when the light bulb is switched OFF from the wall switch, the status remains ON in HA.
Most of the lights are switched on/off by family members, so I never know if the light is really on or off.

I only used the UI, so nothing in configs and so on, tried a few things found on the internet (like hit reconfigure) - nothing worked.

Anyone having a fix for this ?
Thank you.

EDIT: this option is available in Integrations → ZHA → Configure.
Defaults are 2hours for mains powered devices and 6hours for battery powered.

1 Like

There can’t be a solution for that, as switching off on the wall does break the power to the lamp. No power, no signal to HA, the bulb is literally without power to work in any way. :slight_smile:

You could write an automation that checks for an unavailable state, but I do see this very error prone…

The easiest way is to change the wall switch to a smart one, either by buying a new switch or add something like a Shelly that controls the power and is controlled by the wall switch. Or you disable your wall switch and replace it by a smart button that you put up on the wall.

Which way you take is up to you, but without power connection a smart home get’s dull soon… :slight_smile:

Hi, I am no expert but don’t think HA can’t query/ping the device to know if it is still there, and if not, mark the device as unavailable.

You need to have a physical switch on the wall for the purpose it was intended and having a wifi touch switch and a wifi bulb all over the house is kind of overkill (and expensive).

The Zigbee stick or HA should know if it is still there, doesn’t ?

if using zigbee2mqtt :

for ZHA I don’t know.

It’s around $15 to use a Shelly, that does exactly what would be needed to run this. It goes between the physical switch and the power line and controls it. That’s the, IMHO, easiest way to use “old” physical switches and make them smart. And you wouldn’t need a seperate IKEA smart bulb, as the switch is smart.

The problem that will arise is there may be different reasons why the device will get reported as unavailable. One of them is switching it off, but all other reaosns are not accounted for. :slight_smile:

As I said, you can write an automation that checks, if the device is unavailable, but… :wink:

You could link the wiring behind the switch so that the light is always on, then replace the switch with a wireless zigbee switch like the Aqara D1 (make sure you get the version with no terminals and a battery as below, not the ones that come with terminals - these are for controlling a traditional light).

I don’t have a lot of experience and also, where I live, all walls are made of concrete (don’t have a single fake wall) so behind the switches and plugs there is no space - you have to drill a lot…

We will continue to use physical switches because you can’t have all the kids running around with phones when they want to turn the light on/off :slight_smile:

The purpose of zigbee bulbs was to be able to control intensity/color and to be able to shut them off remotely if you left them on by mistake. (happened a lot…)

But for now, this is not ok because most bulbs I have turns ON after power loss - frequent

Not meant offensive, but have you at least taken a look what is proposed (not only from me) in this thread? :wink: Unfortunately to me it doesn’t look like…

A Shelly is a device that is especially made for exactly these circumstances: to put it behind a wall switch. And I’m not talking about dry walls as well, I have a lot of Shellys behind my switches - in good old german concrete walls. Without any drilling or such things. According to the DIN regulations here in Germany, there must be enough space for cables and a Shelly. :wink: And with a Shelly the physical switch is still in place, it just does something different - it doesn’t connect directly to the power line, it connects to the Shelly and the Shelly is controlling the power line… So, yes, what you describe is exactly what you would achieve with a Shelly. And no, it isn’t what you imagine it would be. :slight_smile:

Smart bulbs in general aren’t the best idea, if you still want to have a physical switch.

I do see your problem, I had the same, and I have tested a lot of different things. In the end it is up to you, but there are limited ways to achieve the all-in-package. If you don’t want to do that, you need to strike some things of the list. Either this or that, or a Shelly (or something comparable to it). :slight_smile:

My friend, the wall is concrete, with circular wholes for the light switch with just the depth for such. You can’t put anything behind a switch simply because there is no space!

Similar to this

One thing you can do: buy a bunch of Ikea E1743, put them next to the switches, and teach your children to use these.

1 Like

For being friends, we should know each other a bit more, don’t you think? :wink: I for one need way more time to call someone a friend. :slight_smile:

And it seems to me, you’re looking for a validation of your opinion, not a solution to your question. If that may be true, I’m not the guy to answer this any further, sorry.

And last, but not least, yes your pic is like these things look. In these cases a Shelly likely fits. But as I said, do as you please, I’m out in answering this. :slight_smile:

Have a good day, and good luck in finding something that fit’s your needs and your prefrabricated opinion. :slight_smile: Let us know what you do in the end. :slight_smile:

if you are creative :

image

1 Like

I have edited the post a while ago, letting everyone know that I have already found the solution.

"For being friends, we should know each other a bit more, don’t you think? I for one need way more time to call someone a friend. "

  • I am friendly with anyone

“And it seems to me, you’re looking for a validation of your opinion, not a solution to your question. If that may be true, I’m not the guy to answer this any further, sorry.”

  • you don’t have to answer telling me you can’t answer - it is strange.

"And last, but not least, yes your pic is like these things look. In these cases a Shelly likely fits. But as I said, do as you please, I’m out in answering this. "

  • you refuse to acknowledge that simply there is no space behind for any device; I have to use some force to make just the switch stay in flush with the wall.
  • again typing that you won’t answer instead of just not typing?; double strange :))

"Have a good day, and good luck in finding something that fit’s your needs and your prefrabricated opinion. Let us know what you do in the end. "

  • "prefrabricated" opinion - It is not an opinion, just a fact. :wink:
1 Like

Yes, could be, but not pretty - I have grey glass switches so…