# Variable "darkmode\_active" of "Advanced Conditions" isn't always effective

**URL:** <https://community.folivora.ai/t/variable-darkmode-active-of-advanced-conditions-isnt-always-effective/40331>\
**Category:** Bugs or Unexpected Behavior\
**Tags:** dark-mode, automations\
**Created:** [November 16, 2024, 4:57am UTC](https://community.folivora.ai/t/variable-darkmode-active-of-advanced-conditions-isnt-always-effective/40331 "2024-11-16T04:57:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhiwang1026](https://community.folivora.ai/user_avatar/community.folivora.ai/zhiwang1026/32/12023_2.png) [@zhiwang1026](https://community.folivora.ai/u/zhiwang1026)\
**Post date:** [November 16, 2024, 4:57am UTC](https://community.folivora.ai/t/variable-darkmode-active-of-advanced-conditions-isnt-always-effective/40331/1 "2024-11-16T04:57:03Z")

</div>

**Scene**

Define a automation that is when the "Pdf Expert" app is activated then trigger a "Menubar-item".

The content of "Menubar-item" is: when the system appearance is in dark mode, then switch the App theme from light to dark.

**Problem**

The auto switch action commonly is not effective, only opens BTT configuration after "Pdf Expert" app has been activated.

 ![image](https://community.folivora.ai/uploads/default/original/3X/f/a/fa8b06de1d210d0ef9972f800fb737ba26494b25.jpeg)
