A minimalistic area card with sensors and buttons.

Overview

Minimalistic Area Card

A minimalistic area card to have a control panel of your house on your dashboard. This card will show numeric sensors with its value, and binary sensors with only the icon. Switches and lights will have their own button that you can tap/click to toggle, or tap/click and hold to see detailed information.

GitHub Release License hacs_badge

Sample preview

Options

 - type: custom:minimalistic-area-card
   title: Living Room
   image: /local/img/living-room.jpg #any image file on /config/www or an absolute image url
   tap_action:
      action: navigate
      navigation_path: /lovelace/living-room
   entities:
      - entity: media_player.living_room_tv
      - entity: switch.fireplace_on_off
      - entity: cover.window_covering
      - entity: media_player.speaker
      - entity: light.living_room_lamp
      - entity: sensor.hallway_humidity
      - entity: sensor.hallway_temperature
Comments
  • [Bug]: Background image does not respect rounded corners

    [Bug]: Background image does not respect rounded corners

    What happened?

    If you set a background image the card does not respect the rounded corners, see image below:

    image

    I think the design should be the same with or without background image.

    Card Version

    1.1.2

    HomeAssistant Version

    2022.12.8

    Relevant javascript log output

    No response

    bug 
    opened by laszlojakab 8
  • Change color icons based on state?('on' or 'off')

    Change color icons based on state?('on' or 'off')

    1. Can you add support for Change color icon when entity state change ?

    and 2. Possibility to change from tap/click(hold) to tap/click entity to see detailed information

    enhancement 
    opened by Kinnoon 8
  • Path Support and image base on Area

    Path Support and image base on Area

    Hello,

    Can you add path support like base card. ? I want to link to a new URL Secondly, can you use image from area without insert images url ?

    thank for create awesome card.

    duplicate 
    opened by anhnvme 7
  • [Enhancement]:  custom height for card

    [Enhancement]: custom height for card

    What happened?

    I love how space efficient the cards are...however it's quite short and so the images of my areas are almost too small to make them useful. It would be great if we could set a custom height for the card to give a bit more room when needed.

    Current: image

    A slightly larger height just makes my images a bit easier to see: image

    Seems like adding a custom height to the minimalistic-area-card or the ha-card would do the trick (but I didn't investigate much more than playing in dev tools).

    Card Version

    1.1.2

    HomeAssistant Version

    2022.12.6

    Relevant log output

    n/a
    
    enhancement question 
    opened by smenzer 6
  • Card fails to load with HACS install

    Card fails to load with HACS install

    Checklist:

    • [x ] I updated to the latest version available
    • [ x] I cleared the cache of my browser

    Release with the issue: "master" branch

    Last working release (if known): n/a

    Browser and Operating System: Windows + Chrome; Mac + Chrome

    Description of problem:

    After installing this card from HACS, it fails to load in the dashboard, indicating that the card cannot be found.

    This could potentially be related to the resource path it adds to the Dashboard config, which includes "null": /hacsfiles/homeassistant-minimalistic-area-card/null?hacstag=489457357

    Javascript errors shown in the web inspector (if applicable):

    ```[null:1] Failed to load resource: the server responded with a status of 404 (Not Found)```
    
    ```Uncaught (in promise) https://{{my domain}}/hacsfiles/homeassistant-minimalistic-area-card/null?hacstag=489457357
    atomic-calendar-revive.js?hacstag=246549747620:70 
    

    Additional information: 2022-05-10 17_44_27-Overview – Home Assistant

    bug 
    opened by j-steve 6
  • Ability to turn off popups on sensors

    Ability to turn off popups on sensors

    I don't personally have a need to see the built-in HA popup for the sensors in the binary row.

    It cause me to have to be more specific where I touch the card for navigation.

    A toggle to turn that feature off would be nice.

    question stale 
    opened by seraphx2 5
  • [Question]: Is there a way to icrease the size of the card/font/icon?

    [Question]: Is there a way to icrease the size of the card/font/icon?

    What happened?

    Would be a nice feature to be able to set the height of the card or set the size of the text and icons

    Card Version

    1.0.6

    HomeAssistant Version

    Home Assistant Core 2022.6.4

    Relevant log output

    No response

    question stale 
    opened by szemod 4
  • Support for Area image

    Support for Area image

    Is your feature request related to a problem? Please describe.

    Describe the solution you'd like Make use of standard home assistant area image.

    Describe alternatives you've considered

    Additional context See screenshots from #3

    enhancement 
    opened by elupus 4
  • [Bug]: Camera images appear with incorrect aspect ratio/do not fill card

    [Bug]: Camera images appear with incorrect aspect ratio/do not fill card

    What happened?

    When using a camera_image referencing the snapshots taken by my Ring cameras, the image only partially fill the card, thus:

    image

    Expected: card-filling image.

    (I see this has also been noted by @jlaska, here: https://github.com/junalmeida/homeassistant-minimalistic-area-card/issues/6#issuecomment-1364540323)

    Card Version

    1.0.6

    HomeAssistant Version

    2022.12.8

    Relevant javascript log output

    No relevant log output was seen.
    
    bug 
    opened by cerebrate 3
  • [Bug]: Unable to call service

    [Bug]: Unable to call service

    What happened?

    Hi there,

    I'm trying to call a service inside the area-card. Here is an example.

    type: custom:minimalistic-area-card
    title: Esszimmer
    image: >-
      image/serve/5514b9769af14cdd146c0946070c0a05/512x512
    background_color: null
    tap_action:
      action: navigate
      navigation_path: /lovelace-mushroom/dinner-room
    state_color: true
    entities:
      - entity: sensor.klimaanlage_esszimmer_temperature
      - entity: sensor.klimaanlage_esszimmer_humidity
      - entity: vacuum.puck_3_0_eg
        tap_action:
          action: call-service
          confirmation:
            text: Soll das Esszimmer jetzt gereinigt werden?
          service: xiaomi_miio.vacuum_clean_segment
          target:
            entity_id: vacuum.puck_3_0_eg
          data:
            segments: 17
    

    After the confirmation the following error occurs: Fehler beim Aufrufen des Diensts xiaomi_miio/vacuum_clean_segment. required key not provided @ data['segments']

    The service is correct, it works perfect with a pure entities card like this with the same formatting:

    type: entities
    entities:
      - entity: vacuum.puck_3_0_eg
        tap_action:
          action: call-service
          confirmation:
            text: Soll das Esszimmer jetzt gereinigt werden?
          service: xiaomi_miio.vacuum_clean_segment
          target:
            entity_id: vacuum.puck_3_0_eg
          data:
            segments: 17
    

    Any idea why it doesn't work? Thanks a lot :-)

    Card Version

    1.0.6

    HomeAssistant Version

    2022.10.2

    Relevant javascript log output

    No response

    bug stale 
    opened by SKis274 3
  • Entity optioned don’t work, icon and State-Color

    Entity optioned don’t work, icon and State-Color

    Is your feature request related to a problem? Please describe. This card is supposed to show the state of the sensors, switches and lights. But if the color is hardly different from the off state, it doesn’t serve its purpose.

    Describe the solution you'd like

    1. Lamps: Color the icon if turned on according to its actual color or let user set the color of it.
    2. Entity options as described in the “Options” of the description don’t work (e.g. icon in front of text and state_color)
    3. Picture for the card other than kitchen would be great
    question stale 
    opened by superpower10 3
  • [Question]: Correctly styling ha-state-icon elements

    [Question]: Correctly styling ha-state-icon elements

    What happened?

    Thank you for this fantastic card! I do some customization of the entity icons using card_mod.

    I'm able to animate my fan entities by modifying the state-badge element, as follows:

        type: custom:minimalistic-area-card
        title: 'Testing'
        card_mod:
          style:
            .: |
              @keyframes spin {
                0% {
                  transform: rotate(0deg);
                }
                100% {
                  transform: rotate(359deg);
                }
              }
              .box ha-icon-button.state-on state-badge[title*='fan' i] {
                animation: spin 1.5s infinite linear;                                                                                                                     
              }
    

    However, I'd prefer to access the ha-state-icon elements directly, but I'm not able to get this to work.

        type: custom:minimalistic-area-card
        title: 'Testing'
        card_mod:
          style:
              @keyframes spin {
                0% {
                  transform: rotate(0deg);
                }
                100% {
                  transform: rotate(359deg);
                }
              }
            ha-state-icon$: |
              :host([data-domain=fan][data-state=on]) {
                animation: spin 1.5s infinite linear;
              }                                                                                                                                                           
    

    Any guidance/thoughts/feedback is appreciated!

    Card Version

    1.1.8

    HomeAssistant Version

    2023.1.0 (Frontend: 20230104.0)

    Relevant log output

    No response

    question 
    opened by jlaska 1
  • [Bug]: Area images do not display when using external URL

    [Bug]: Area images do not display when using external URL

    What happened?

    When accessing Home Assistant using its internal URL, the card correctly displays the area images. However, when accessing it from outside the local network (using its external URL, via a nginx reverse proxy), the card displays with a white background (as distinct from a broken-image marker) and the images are not visible.

    (This only occurs when using the area images or the camera_image feature; it did not occur previously when specifying the image in the card configuration.)

    Expected: images to display properly regardless of access URL.

    I note, interestingly, that the HTML is different in each case. From outside the local network, the entire <img> tag for the card background image is missing.

    Card Version

    1.0.6

    HomeAssistant Version

    2022.12.8

    Relevant javascript log output

    No relevant output was seen.
    
    bug 
    opened by cerebrate 5
Releases(v1.1.8)
  • v1.1.8(Dec 30, 2022)

  • v1.1.7(Dec 30, 2022)

  • v1.1.6(Dec 30, 2022)

    What's Changed

    • Specify a custom height using themes #35 by @junalmeida in https://github.com/junalmeida/homeassistant-minimalistic-area-card/pull/40 Add a theme variable: minimalistic-area-card-sensors-min-height: 50px

    Full Changelog: https://github.com/junalmeida/homeassistant-minimalistic-area-card/compare/v1.1.5...v1.1.6

    Source code(tar.gz)
    Source code(zip)
    minimalistic-area-card.js(35.51 KB)
  • v1.1.5(Dec 29, 2022)

  • v1.1.4(Dec 29, 2022)

    What's Changed

    • Fix sensor list not wrapping #34
    • Fix version lookup in console
    • Add show_state by @junalmeida in https://github.com/junalmeida/homeassistant-minimalistic-area-card/pull/38

    Full Changelog: https://github.com/junalmeida/homeassistant-minimalistic-area-card/compare/v1.1.3...v1.1.4

    Source code(tar.gz)
    Source code(zip)
    minimalistic-area-card.js(31.36 KB)
  • v1.1.2(Dec 23, 2022)

  • v1.1.1(Dec 22, 2022)

  • v1.1.0(Dec 22, 2022)

    What's Changed

    • Move to form templates and update docs by @junalmeida in https://github.com/junalmeida/homeassistant-minimalistic-area-card/pull/21
    • Bump actions/checkout from 2 to 3 by @dependabot in https://github.com/junalmeida/homeassistant-minimalistic-area-card/pull/24
    • Add Support for Area image and entities #18 by @junalmeida in https://github.com/junalmeida/homeassistant-minimalistic-area-card/pull/28

    Full Changelog: https://github.com/junalmeida/homeassistant-minimalistic-area-card/compare/v1.0.6...v1.1.0

    Source code(tar.gz)
    Source code(zip)
    minimalistic-area-card.js(30.32 KB)
  • v1.0.6(May 28, 2022)

  • v1.0.5(May 11, 2022)

  • v1.0.4-alpha(May 6, 2022)

  • v1.0.1-alpha(May 6, 2022)

    What's Changed

    • Bump actions/checkout from 1 to 3 by @dependabot in https://github.com/junalmeida/homeassistant-minimalistic-area-card/pull/1

    New Contributors

    • @dependabot made their first contribution in https://github.com/junalmeida/homeassistant-minimalistic-area-card/pull/1

    Full Changelog: https://github.com/junalmeida/homeassistant-minimalistic-area-card/commits/v1.0.1-alpha

    Source code(tar.gz)
    Source code(zip)
    minimalistic-area-card.js(28.18 KB)
Owner
Marcos Junior
Developer building with React, TypeScript, Angular, .NET and .NET Core.
Marcos Junior
A Virtual Interactive Keyboard which replicates every key you press and a Text-Area in which everything is written and can be copied to the clipboard with a click of a button.

A Virtual Interactive Keyboard which replicates every key you press and a Text-Area in which everything is written and can be copied to the clipboard with a click of a button.

Devang Joshi 1 Mar 1, 2021
A simple and useful jquery plugin that allows you to create a Text Area Character Count Effect with limited warning.

jquery-character-counter A simple and useful jquery plugin that allows you to create a Text Area Character Count Effect with limited warning. #Demo Us

Abdoulie Kassama 0 Dec 28, 2020
An application where a user can search a location by name and specify a genre of music. Based on the parameters entered, a list of radio stations generate based on genre selected in that area.

Signs of the Times Description An application that allows for the user to enter a date and see the horoscope for that day, and famous people born on t

null 3 Nov 3, 2022
Adds a panel area where you can inspect your dumps.

Kirby3 Toilet Dump without stopping your thread or template rendering. Instead your dumps will go straight to the new Toilet panel area. There you can

Sietse Veenman 6 Dec 14, 2022
@TGMusicfy - Minimalistic Telegram music search bot written in TypeScript and based on Telegraf and Express JS.

@TGMusicfy Go to bot Deployed thanks to Heroku and New-Relic Bots are special Telegram accounts designed to handle messages automatically. Users can i

Saveliy Andronov 5 Sep 13, 2022
Minimalistic portfolio/photography site with masonry grid, page transitions and big images.

Gatsby Starter Portfolio: Emilia Minimalistic portfolio/photography site with masonry grid, page transitions and big images. Themeable with Theme UI.

Cryptob3auty 1 May 20, 2022
A minimalistic web application made using Next.js and Twitter API for Saturday Hack Night by TinkerHub

The Twittr. On the social media platform Twitter, a ratio, or getting ratioed, is when replies to a tweet vastly outnumber likes or retweets. This mea

Aswin Asok 5 Apr 17, 2022
Minimalistic, opinionated, and predictable release automation tool.

Release Minimalistic, opinionated, and predictable release automation tool. General idea Think Prettier but for automated releases: minimalistic, opin

Open Source: JavaScript 173 Dec 18, 2022
A minimalistic yet efficient way to stringify and revive instances via JSON.

json-instances Social Media Photo by Francisco J. Villena on Unsplash A minimalistic yet efficient way to stringify and revive instances via JSON. If

Andrea Giammarchi 11 Jun 23, 2022
⚡️A minimalistic and sweet router for blazing fast bun

Melonpan is a simple and minimalistic web-router designed to work with Bun, keeping performance in mind. ?? Why Melonpan? no/minimal learning curve De

Hemanth Krishna 66 Jan 6, 2023
🛠 Highly customisable, minimalistic input x select field for React.

Insect ?? Highly customisable, minimalistic input x select field for React. ⚡️ Features Tiny size (~4kb Gzip) 100% responsive. Highly customisable. Su

Kadet 32 Oct 29, 2022
🔖Minimalistic URL shortener as a microservice

?? u Minimalistic URL shortener as a microservice. Also Klein's successor. ?? stack Node.js TypeScript Express Prisma PostgreSQL Redis Docker Docker C

Faye Keller 9 Jul 17, 2022
Minimalistic bill tracker for those who despise tracking microtransactions.

?? Home Bills Minimalistic bill tracker for those who despise tracking microtransactions. ?? Goals & Milestones Goals ?? Track important data. Trackin

ERYC 50 Dec 6, 2022
Minimalistic pre-configured OAuth 2.0 client for Deno. Inspired by grant.

DenoGrant Minimalistic pre-configured OAuth 2.0 client for Deno. Inspired by Grant. NOTE: this is alpha software subject to breaking changes at anytim

CJ R. 12 Dec 13, 2022
Minimalistic configuration for TS to only extend JS with types. No TS features, no bundling. Readable maintainable code after compilation.

ts-guideline Minimalistic configuration for TS to only extend JS with types. No TS-scpecific features, no bundling. Readable maintainable code after c

Georg Oldenburger 41 Dec 22, 2022
A very minimalistic word counter.

wordcount Really minimalistic word counter. FAQ How do you get the reading and speaking times? The reading time is based off an average reading speed

iamkneel 7 Nov 14, 2022
This package creates embeds and buttons in a very simple way using the whatsapp-web.js module for whatsapp

This package creates embeds and buttons in a very simple way using the whatsapp-web.js module for whatsapp

DeathAbyss 17 Jan 3, 2023
A simple site to generate useful resources for Gitpodification, including "open in gitpod" buttons and sample configuration scripts

Gitpodify A simple portal to generate "open in Gitpod" links Contributing There is a list of suggested repositories in app/routes/index.tsx. Feel free

Jacob Paris 4 Nov 7, 2022