Open sidebar with button

Hi,

up until recently I was able to open the hidden sidebar (kioskmode) with a custom button:

type: custom:button-card
show_icon: true
name: Sidebar
icon: mdi:menu
show_name: true
tap_action:
  toggle_menu: |
    [[[ 
      this.dispatchEvent(new Event('hass-toggle-menu', { bubbles: true,
          composed: true })); ]]]

This stopped working couple weeks ago, and i couldn’t figure out how to fix it.
Can anybody help me?

Thanks for the help!

here can help you: "hass-toggle-menu" template doesn't work on Android in v5+ · Issue #1052 · custom-cards/button-card · GitHub

1 Like

Thanks, that did the trick