🌘 Lunar Phase Integration for Home Assistant

@Tamsy PR my PT-BR translations :slight_smile:

Thank for the help and congrats for the card.

I will make a video on my youtube channel when the pt-br version is released :slight_smile:

Tks guys!

1 Like

If there are new translations added, or changes in localization, I gradually upload as pre-release. You can try it now, I want to release the official release with a delay, to see if there are any problems. Thanks for your contribution! :pray:

Hi, I dont think I got it.
HACS here is not showing any new version.
We must wait you to launch, right?

I have a new version of hacs, but it should be similar. You select Redownload, then Beta/Pre-release. After that hard refresh the page. You should then be able to select the new languages in the editor…


image

Hi friend, the pt-br version is not showing on the dropdown here.

There are 2 betas, please download v1.1.1-beta1 . the first one above is the latest release.

I guess my HACS is bugged, i cant download the beta1.
no problem, I wait until it became official release, its fine haha

image

Now I am in beta1, and still not showing the pt-br version.

image

Now HACS showed me the update then I could install otherwise was for some reason bugged

try scrolling. pt-br is later in the aphabet than cestina and english

YEverything that is common with the frontend, custom card etc. You have to hard reload the browser after installation to clear the cache. Just do a hard reload.


:wink::point_down:

yay!

now is working, the F12 option to hard reload was the only one that worked. omg!

Thanks!

I will use it in a few days to see if the translations are making sense, if not, I will call @Tamsy again XD hahahha

gj guys!

Hi, very cool integration.
Can you make an option in future updates to show the current moon image only on the lunar-phase-card? Without additional info (hide header, illumination etc.)
That would be nice…

@pee82 You don’t even like the compact view? :zipper_mouth_face: If there is only a picture of a moon, it seems to me that it is too simple…

1 Like

I have a compact view and it is OK, but values likes moon age, illumination % are useless on my bedroom dashboard, this would be enough for me:
moon

If you are using card-mod module, you can hide the data section like this…

type: custom:lunar-phase-card
card_mod:
  style: |
    .compact-view {
      display: none !important;
    }
entity: ""
use_default: true
use_custom: false
use_entity: false
show_background: true
selected_language: en
compact_view: true
12hr_format: false
font_customize:
  header_font_size: x-large
  header_font_style: capitalize
  header_font_color: ""
  label_font_size: auto
  label_font_style: none
  label_font_color: ""
  hide_label: false
latitude: 50.060362328075634
longitude: 14.399342536926271
custom_background: /api/image/serve/37e5649ba58033402674d62bf78bcd5e/original

Thank you - that worked :slight_smile:
Is there a way to decrease the size of the card now to the moon size only?

No, if you have the view in mansory mode, you can’t shrink it. It will always be at full width. What do you want to adjust it like that for? I think you can remove the HA card background… :man_shrugging:

card_mod:
  style: |
    .compact-view {
      display: none !important;
    }
    ha-card {
      background-color: transparent !important;
      border: none !important;
    }

Just wanted to add the current moon cycle next to hour and date, or one of the buttons

Work great. I just needs to figure out how to add Swedish to the language. :slight_smile:

hide everything with card-mod, and use stack-in-card custom cards…

type: custom:stack-in-card
mode: horizontal
card_mod:
  style: |
    ha-card {
      background-color: transparent !important;
      border: none !important;
    }
cards:
  - type: custom:lunar-phase-card
    entity: ""
    use_default: true
    use_custom: false
    use_entity: false
    show_background: false
    selected_language: en
    compact_view: false
    12hr_format: false
    font_customize:
      header_font_size: x-large
      header_font_style: capitalize
      header_font_color: ""
      label_font_size: auto
      label_font_style: none
      label_font_color: ""
      hide_label: false
    latitude: 50.060362328075634
    longitude: 14.399342536926271
    custom_background: /api/image/serve/37e5649ba58033402674d62bf78bcd5e/original
    card_mod:
      style: |
        .lunar-card-header {
          display: none !important;
        }
        .lunar-card-content {
          display: inline-block !important;
          width: fit-content !important;
        }
        .moon-image {
          max-width: calc(80% - 1px) !important;
        }
        lunar-base-data {
          display: none !important;
        }
  - type: entity
    entity: sensor.time
    name: " "
    icon: nothing
1 Like