deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

Phoscon: Scene that turns off lights does nothing

Open criemen opened this issue 4 years ago • 47 comments

For one of my groups I have several scenes, all of them except one have the lights turned off. Recalling these scenes works fine. However, when recalling the scene that turns off all the lights nothing happens, and the lights stay at whatever state they were. Manually turning on and off the lights via the on/off switch in the GUI works, though.

criemen avatar May 31 '20 20:05 criemen

I have this issue aswell. Turning off lights in scenes does not work. I cannot seem to find the version number I am running.

Is there a way to set values for lights in scenes programmatically?

joelklint avatar Jun 07 '20 09:06 joelklint

Addition: Switches (Ikea Tradfri plugs) are turned on/off by the scene recall, just not dimmable lightbulbs (in my case Ikea Tradfri bulbs).

criemen avatar Jun 07 '20 10:06 criemen

I too am using Ikea Trådfri bulbs

joelklint avatar Jun 07 '20 10:06 joelklint

I have the same problem, but noticed that groups containing the same lights report as turned off.

I.e. the behavior of the lights on the left in the following screenshot is correct, but the actual lights don't turn off. image image

Deleting all lights from the group and re-adding them made it work sometimes rather than never. Turning lights ON via a scene never fails.

Further and possibly related - the saved states are not displayed in the scenes editor.

thomasloven avatar Jun 16 '20 08:06 thomasloven

+1

Same configuration (IKEA dimmable light bulbs) as discusses in Discord.

Logs shown after changing to a scene (5 light bulbs, 3 of them should turn off):

deconz    | 23:26:15:775 0x680AE2FFFEB80972 level 25 --> 80
deconz    | 23:26:15:776 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0008, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:15:862 ZCL attribute report 0x588E81FFFE4FC8D6 for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:15:867 ZCL attribute report 0xEC1BBDFFFEAF95AA for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:15:871 ZCL attribute report 0x588E81FFFE4FC8D6 for cluster: 0x0008, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:15:875 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:15:894 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:007 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:078 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:182 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:287 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:340 ZCL attribute report 0x588E81FFFE212BE2 for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:358 ZCL attribute report 0x588E81FFFE212BE2 for cluster: 0x0008, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:362 ZCL attribute report 0x588E81FFFE212BE2 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:395 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:490 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:595 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:698 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:16:774 0x680AE2FFFEB80972 level 80 --> 25
deconz    | 23:26:16:775 ZCL attribute report 0x680AE2FFFEB80972 for cluster: 0x0008, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
deconz    | 23:26:17:440 Current channel 15
deconz    | 23:26:17:448 Device TTL 1137 s flags: 0x7

Gateway:

  • Vendor: dresden elektronik
  • Product: ConBee II
  • Version: 2.05.77 / 5/22/2020
  • Firmware: 264A0700

f0086 avatar Aug 11 '20 21:08 f0086

I have now encountered the described issue... Running deCONZ in a docker container everything was fine for months using scenes to turn off my IKEA Trådfri lights of various kinds...

Then I added additional lights to deCONZ, same type and firmware as the existing lights. These newly added lights cannot be turned off by a scene, but existing lights (pre addition) does work fine... Upgraded lights firmware to latest and greatest for both the working and non-working lights and have the same result - existing lights work, new doesn't...

In the deCONZ GUI I can see the Level Control Cluster reads 0x0000 Current Value at 1, when using brightness to 0 method... using off methon in the scene does not change the light level, but sets the OnOff state in On/Off Cluster to 'false'... I both cases both from Phoscon og deCONZ the light should be off - however, the light is still on with no changes at all to either brightness, color or state.

I then tried to take a working light, reset it, delete it from deconz and re-discover it, and now that light does not work either... I have both E14 and E27 color temperature lights behaving like this.

@Mimiix - as requested I'm tagging you in this issue...

image image

bourskov83 avatar Aug 11 '20 21:08 bourskov83

Thanks for pinging me(as i requested 😄), i'll forwarded it to @YKO-de and @manup ;)

Mimiix avatar Aug 12 '20 06:08 Mimiix

If I may cut in, I doubt that this is a Phoscon issue. In my experience, this is more likely an issue with the API plugin and/or the light firmware. Zigbee scenes are challenging at best and flawed for Color Temperature. IKEA made some changes to the Scenes implementation in their ZB3 firmware.

In my experience, scenes tend to work well when created/updated through the Store Scene command. This includes turning lights off on Recall Scene. Of course, I haven’t tested all lights, but it works for my Hue lights. The obvious limitation is that Store Scenes copies the entire current light state, so it’s not possible e.g. to create a scene that changes only the colour and leave the brightness unaffected.

While Add Scene, at least in theory, could create a scene with only some attributes, I find this command to be erratic for a lot of lights. The Zigbee standard doesn’t cater for Color Temperature in Add Scene and different lights cope with this differently. I haven’t looked into this in detail, but I wouldn’t be surprised if the API plugin doesn’t send the correct Add Scene command for turning the light off. Of course, it could also be an issue with (some versions of) the Trådfri firmware.

To debug these kind of issues, you need a Zigbee sniffer to check the parameters to the Add Scene command and the response to the Get Scene command. Still, I’ve seen lights that don’t report the scene correctly through Get Scene.

ebaauw avatar Aug 12 '20 07:08 ebaauw

The Phoscon App has nothing to do with this problem. Please ask in deconz-rest-plugin. But I'm not sure if it's not really the FW of the lights.

YKO-de avatar Aug 13 '20 10:08 YKO-de

@YKO-de Can you please move this issue back then? I opened it in deconz-rest-plugin and you moved this over here.

criemen avatar Aug 13 '20 10:08 criemen

I'll move it back @Cornelius-Riemenschneider :)

Mimiix avatar Aug 13 '20 10:08 Mimiix

Is there any update available on this? Will it be fixed some day? Scenes are only about 30% useful if lights can't be turned off. I really hope this gets solved soon. Thanks!

ChrisPrefect avatar Aug 25 '20 21:08 ChrisPrefect

Any update on this? It is very annoying that I can't use the scenes at all. It is pretty useless for me if I can't turn off lights. Is there any further data/test/log I can provide to help debug (and finally fix) this issue?

f0086 avatar Sep 04 '20 20:09 f0086

Forwarded it.

Mimiix avatar Sep 06 '20 12:09 Mimiix

Any insights so far @Mimiix ?

f0086 avatar Oct 09 '20 20:10 f0086

Have same issue. When creating a scene in phoscon webapp, not all lights are turned off, even if set to minimum in scene. Wanted to figure out why, and did an API-call to get the scene data from DeConz. Turned out that some lights in my scenes are set to brightness=1 and on=true. And some others are set to brightness= and on=false. Those who are set to on=false, are always turned off when recalling the scene. Those with brightness=1 and on=true are randomly on or off. Did an API PUT to modify scene and changed those with brightness=1 and on=true to on=false. So far my testing shows that this solved the issue. So my conclusion is that the webgui for creating scenes in phoscon is not always able to set the correct value of lights. Maybe there should be a separate option to select to switch light off, instead of just setting brightness to 0%?

espen4001 avatar Oct 13 '20 07:10 espen4001

@f0086 This one somehow fell trough my net. Sorry! I monitor all issues, this one slipped :(

I pmed @manup again.

Mimiix avatar Oct 20 '20 06:10 Mimiix

Same problem here 😔 Wondered, should I move scenes away from deconz to home assistant itself, but perhaps I'll wait a moment before doing the migration.

mmaraa avatar Oct 31 '20 17:10 mmaraa

For the on=true issue, can you please check that the sliders are really on the bottom, the icons on the main page should indicate that the lights are indeed off=false.

Related: https://github.com/dresden-elektronik/deconz-rest-plugin-v2/issues/5

manup avatar Nov 01 '20 11:11 manup

Yes, the sliders really are at 0%. And the scenes have been saved multiple times after pulling each light to 0% again.

But please: Add "real" switches to the On/Off state and not rely on the sliders in Phoscon. I often am not able to reach 0% or 100%, due to resolution limits of the browser window I guess. There should be a off/on (100%) switch for each light and each group. Or how do you turn on or off groups in the mobile version of Phoscon?

ChrisPrefect avatar Nov 01 '20 14:11 ChrisPrefect

Have you tried to use the light symbols, they act as on/off switches?

manup avatar Nov 01 '20 17:11 manup

I have the same problem. If I turn off the lights with the symbol and saves the scene, the same thing happens: I can turn all lights on to 100% with "turn on" scene, but when I try the "turn off" scene, IKEA colour bulbs stay lit. If I look into deconz, the IKEA bulbs are shown as turned off.

If I then try to turn the entire group on, by clicking on the group bulb icon, all lights will turn on but at the minimum light level. The "turn on" scene still works to get them to 100%.

sorenjacobi avatar Nov 10 '20 14:11 sorenjacobi

@manup I don't think this is a user problem (sliders not dragged to the bottom, not tried to turn the bulb completely off by hitting the bulb symbol, etc.) as proved by a lot of people here. When I set up the scene with lights off, the lights turn off as it should and the bulb turned gray. When I save the scene, switch all lights on and recall the scene, the lights do not turn off.

This is a very annoying bug and makes the scenes unusable :cry: PLEASE give us some instructions how to debug this further. What information do you need to reveal the root cause?

I will do the same as @mmaraa if this bug is not taken seriously.

f0086 avatar Nov 23 '20 20:11 f0086

I have the same problem, 3 out of 10 Ikea bulb's I cannot turn off. Really make scenes useless

gongevangen avatar Nov 28 '20 12:11 gongevangen

I am having a simular issue with the ikea color bulbs as well. When toggling the light off through my dashboard sometimes the state changes to off but the light is still on - Deconz also shows off. Super anoying when lights are not turning off reliably.

FreshJonte avatar Dec 08 '20 19:12 FreshJonte

I too face the same issue where my lights do turn on correctly with a scene but only one of the lights won't turn off with a scene.

Work correctly: 6x TRADFRI bulb GU10 WW 400lm 1x TRÅDFRI bulb E27 CWS opal 600lm 2x TRÅDFRI control outlet

Won't work correctly: 1x TRADFRI bulb E27 WS opal 1000lm

The Phoscon and Homekit state is that the light is off however it's still turned on..

JurjenBraam avatar Dec 15 '20 08:12 JurjenBraam

Just got the Conbee II stick and have the same problem with my IKEA bulbs.

Drumdevil avatar Dec 24 '20 08:12 Drumdevil

Have to agree... this is broken for me. I'm using Ikea switches, too, with gledopto LED strip controllers. Note that if I use the old web app and press the Off button for the LED strips, the lights actually go completely off.

In the pwa, if you set the brightness to 0 (and the lights go out) and then save the scene, the brightness pops up to 1.

tjfoth avatar Dec 26 '20 23:12 tjfoth

I want to point out the need for a change in the scene settings page to be able to select if a light should be on or off, in addition to set the brightness to any value between 1 and 255. As the scene report from DeConz is inconsistent in the light state report on="true" or on="false" when setting the brightness slider to a minimum. Would recommend a switch to be able to set the light to be on or off, and this switch should override the brightness slider setting if set to "off".

espen4001 avatar Dec 27 '20 00:12 espen4001

I'm having the same issue.

I have in scenes two lightbulbs from IKEA TRÅDFRI:

  • TRÅDFRI bulb E27 CWS opal 600lm (version 1.3.002) : works correctly with scenes to turn on or off
  • TRADFRI bulb E27 WS opal 1000lm (version 2.0.022) : unable to turn off

My version of deconz is 2.10.00 (12/23/2020) and gateway firmware 26660700.

After clicking in a scene to turn light off the light stays on but says is off in the UI. Turning light on and then off in the UI changes the light state to off.

Maybe the problem is with the fade out to off? If more logs are needed, feel free to ask.

eSoares avatar Mar 02 '21 15:03 eSoares