Light turns on after automation

Hi all,

I have a quick question. Through my iPhone I have a automation set up that once my iPhone charges, it updates the sensors in HA through the Sortcuts app.

I have linked a automation that activates a scene and turn off the lights. Once the lights are off, one lamp turns on. Home Assistant sees it as ‘off’.

Does anyone know how this is possible? It is not a problem with the scene, because the scene is applied correctly, and runs in Single mode.

It is always the same lamp, a IKEA Tradfri.

I think to help ou we would need ALOT more information - a listing of the code/autoimnations/scripts etc.)

Maybe one thing is you can look at the light in question under whatever integration (Settings->Integrations), and look at it’s history of turning on and off, and pinpoint there, what automation turned it back on when it should have stayed off -