fablav

Tap action apre menΓΉ hold action apre popup torna ad android

Oct 20th, 2025
1,166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.52 KB | Software | 0 0
  1. tap_action:
  2.   action: call-service
  3.   service: |
  4.    [[[
  5.       this.dispatchEvent(new Event('hass-toggle-menu', { bubbles: true, composed: true}));
  6.       return none;
  7.     ]]]
  8. hold_action:
  9.   action: fire-dom-event
  10.   browser_mod:
  11.     service: browser_mod.popup
  12.     data:
  13.       dismissable: true
  14.       autoclose: false
  15.       timeout: 5000
  16.       content:
  17.         type: custom:mod-card
  18.         card_mod:
  19.           style: |
  20.            ha-card {
  21.               padding: 5px;
  22.             }
  23.         card:
  24.           show_name: true
  25.           show_icon: true
  26.           show_label: true
  27.           label: chiude Home Assistant
  28.           type: custom:button-card
  29.           tap_action:
  30.             action: url
  31.             url_path: app://l.l
  32.           name: Torna ad Android
  33.           icon: mdi:android
  34.           styles:
  35.             card:
  36.               - border: solid 5px red;
  37.               - box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36);
  38.               - border-radius: 30px
  39.               - height: 390px
  40.               - background: black
  41.               - opacity: 80%
  42.             name:
  43.               - color: white
  44.               - font-size: 24px
  45.               - font-weight: 500
  46.             label:
  47.               - color: white
  48.               - font-size: 14px
  49.               - font-weight: 300
  50.             icon:
  51.               - color: yellow
  52.       right_button: chiudi
  53.       right_button_action:
  54.         action: fire-dom-event
  55.         browser_mod:
  56.           service: browser_mod.close_popup
  57.           deviceID: this
  58.  
  59.  
  60.  
Tags: ha
Advertisement
Add Comment
Please, Sign In to add comment