jimz011 / homekit-infused

Homekit Infused 5 2023
https://jimz011.github.io/homekit-infused/
Other
873 stars 137 forks source link

[NEW Question]menu not showing #161

Closed wedone closed 2 years ago

wedone commented 2 years ago

Sorry, translate with Google ###############NEW####################

HKI5, where are these functions in the picture below?

IMG_20220519_014018

###############OLD#################### I really don't know what went wrong,is the default, only changed to Chinese

my hki-user/views/02.menu.yaml

# Menu
menu:
  title: 菜单
  show_in_navbar: true
  show_in_menu: false
  subtitle: "[[[ return `HKI 5 v.${states['sensor.hki_current_version'].state}`; ]]]"
  icon: mdi:apps
  layout:
    layout:
      card_margin: 4px 8px 8px
      margin: 0px 8px
  addons:
    favorites:
      # Small Screens
      - title: 收藏
        view_layout:
          show:
            mediaquery: "(max-width: 350px)"
        columns: 3
      # Larger Screens
      - title: 收藏
        view_layout:
          show:
            mediaquery: "(min-width: 350px)"
        columns: 4
    menu:
      # Small Screens
      - title: 菜单
        view_layout:
          show:
            mediaquery: "(max-width: 350px)"
        columns: 3
      # Larger Screens
      - title: 菜单
        view_layout:
          show:
            mediaquery: "(min-width: 350px)"
        columns: 4

Screenshot_2022-05-18-07-37-09-512_io homeassistant companion android

my Lovelace

atomic-calendar-revive
button-card
config-template-card
cover-popup-card
light-popup-card
lovelace-auto-entities
lovelace-card-mod
lovelace-card-tools
lovelace-colorfulclouds-weather-card
lovelace-fold-entity-row
lovelace-layout-card
lovelace-more-info-card
lovelace-state-switch
lovelace-text-input-row
lovelace-xiaomi-vacuum-map-card
mini-graph-card
mini-media-player
scheduler-card
search-card
swipe-card
switch-popup-card
vacuum-card

my integrations

browser_mod
colorfulclouds
hacs
lovelace_gen
scheduler
xiaomi_cloud_map_extractor
xiaomi_miot
jimz011 commented 2 years ago

It seems like you have no menu items, that is why it is empty. Add more views first. ANY view that has show_in_menu: false will not be added to the menu.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: wedone @.> Sent: Wednesday, May 18, 2022 4:00:34 AM To: jimz011/homekit-infused @.> Cc: Subscribed @.***> Subject: [jimz011/homekit-infused] menu not showing (Issue #161)

Sorry, translate with Google I really don't know what went wrong,is the default, only changed to Chinese

my hki-user/views/02.menu.yaml

Menu

menu:

title: 菜单

show_in_navbar: true

show_in_menu: false

subtitle: "[[[ return HKI 5 v.${states['sensor.hki_current_version'].state}; ]]]"

icon: mdi:apps

layout:

layout:

  card_margin: 4px 8px 8px

  margin: 0px 8px

addons:

favorites:

  # Small Screens

  - title: 收藏

    view_layout:

      show:

        mediaquery: "(max-width: 350px)"

    columns: 3

  # Larger Screens

  - title: 收藏

    view_layout:

      show:

        mediaquery: "(min-width: 350px)"

    columns: 4

menu:

  # Small Screens

  - title: 菜单

    view_layout:

      show:

        mediaquery: "(max-width: 350px)"

    columns: 3

  # Larger Screens

  - title: 菜单

    view_layout:

      show:

        mediaquery: "(min-width: 350px)"

    columns: 4

[Screenshot_2022-05-18-07-37-09-512_io homeassistant companion android]https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F1226460%2F168940030-38e173d7-558a-4ecb-a669-73f5faaa272e.jpg&data=05%7C01%7C%7C02e26512ca824803edff08da3872328b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637884360424830465%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BdUZinXvG%2Fv0f4Ywfj9xE4r%2FoS5FoYRZx5tyPLgK3cw%3D&reserved=0

my Lovelace

atomic-calendar-revive

button-card

config-template-card

cover-popup-card

light-popup-card

lovelace-auto-entities

lovelace-card-mod

lovelace-card-tools

lovelace-colorfulclouds-weather-card

lovelace-fold-entity-row

lovelace-layout-card

lovelace-more-info-card

lovelace-state-switch

lovelace-text-input-row

lovelace-xiaomi-vacuum-map-card

mini-graph-card

mini-media-player

scheduler-card

search-card

swipe-card

switch-popup-card

vacuum-card

my integrations

browser_mod

colorfulclouds

hacs

lovelace_gen

scheduler

xiaomi_cloud_map_extractor

xiaomi_miot

― Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjimz011%2Fhomekit-infused%2Fissues%2F161&data=05%7C01%7C%7C02e26512ca824803edff08da3872328b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637884360424830465%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Uoz%2FGxl4IgzyQi104ctzuqVL6uGzs7Ls%2Fi%2Fhx4K%2FV44%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALG6BXXESWCWYCNMGV2KIQDVKRFMFANCNFSM5WGYYWKA&data=05%7C01%7C%7C02e26512ca824803edff08da3872328b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637884360424830465%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XdXT0Ql8aDgxMjdx9y5u9ViwJmmA5ULO%2Bh5mZ0tlBpY%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>

wedone commented 2 years ago

Thank you for your reply Turns out to be empty will cause an error I broke my homeassistant, try again another day

wedone commented 2 years ago

NEW Question