#frontend-archived

1 messages ยท Page 55 of 1

buoyant skiff
#

im so happy ๐Ÿ˜„

north spear
#

Hehe. That looks pro

buoyant skiff
#

i got a request ๐Ÿ˜›

#

trying to use picture glance to show values

#

is that possible or does it need a custom_card

#

cause that would be awesome to have

wheat current
buoyant skiff
#

yeah

#

looking at that now also

#

gonna try

#

wow

#

now it looks freaking awesome

#

my very own beer cards โค

#

sooo happy ๐Ÿ˜›

north spear
#

and you can use a vertical stack and have the beer-card underneath

#

๐Ÿ˜ƒ

vapid field
#

@buoyant skiff How did you get untappd into hass?! sorry for offtopic, but how?!

buoyant skiff
#

i built an custom addon

#

and applied for an apikey

#

will publish once the code is better

vapid field
#

yay!

wheat current
#

@vapid field If you want to use it, apply for an API key now, it took a while to get one ๐Ÿ˜›

vapid field
#

thanks @wheat current will do!

lost turret
#

I'm trying to create a view with a card showing "all entities", keep getting error

#

here's my config

#
  • icon: mdi:settings
    title: Debugging
    cards:
    • type: entity-filter
      filter: [{}]
      title: All entities
north spear
#

@lost turret which HA version do you have ?

lost turret
#

0.73.1

north spear
#

stuff changed, as normal with an experimental UI

#

You can use now "Unused entities" in the submenu on top right

buoyant skiff
#

Marius does this work

      - type: custom:beer-card
        title: Untappd Wishlist
        entity: sensor.untappd_wishlist
        entity_picture: /local/icons/untappd.svg
        attribute: list
#

want to use a round icon for untappd

#

instead of the dull grey one

north spear
#

entity_picture not part of supported parameter list, but can get implemented

buoyant skiff
#

โค

#

haha

north spear
#

you would like to use that instead of icon ?

buoyant skiff
#

yes

#

very much ๐Ÿ˜„

lost turret
#

@north spear thanks

north spear
#

@lost turret if you're still unhappy with what you have available, you can always use the monster

#

@buoyant skiff send /local/icons/untappd.svg to me for testing

#

I have some free time on my hands

buoyant skiff
#

its the same

#

and its better

#

since its actually is round and not square

#

hass made it round before ๐Ÿ˜ƒ

#

is it possible to add background image as well ?

#

like the picture element

#

got a wicked idea ๐Ÿ˜›

hot gyro
#

got to say this is nice but would have been even nicer if someone would have given the demo'ed config to study

#

whose config is it? is it on github?

eager wharf
#

is there an untapt component i dont know about? lol

wheat current
#

not yet, @buoyant skiff are creating one, a custom_component (alpha/beta) version should be available "soon"

buoyant skiff
#

soonโ„ข

eager wharf
#

lol

north spear
#

added image for icon in dev

#

kept config similar, just made some logic behind to allow images

buoyant skiff
#

tnx ๐Ÿ˜„

north spear
#

oh darn

#

I just noticed the background request ๐Ÿ˜ƒ

hot gyro
#

found it - its actually in the documentation .... ๐Ÿคฆ

north spear
#

I will allow you do to a style tag and you can inject whatever you wish there

#

how about that ?

buoyant skiff
#

sure ๐Ÿ˜ฎ

#

gonna have the upperpart with logo and the start of the beer glas then then wishlist as the bottom part and use the entites as a break in the middle

#

gonna look awesome

#

simple to do also 2 images ๐Ÿ˜„

wheat current
#

Semi transparent background of a beer glass for the beer-card? ๐Ÿ˜ƒ

north spear
#

would this work:

      - type: custom:beer-card
        title: Untappd Wishlist
        entity: sensor.untappd_wishlist
        icon: mdi:heart
        style: "background-image: url('/local/untapped.png')"
        attribute: list
hot gyro
#

is there an option in the picture-glances to show the actual value of a sensor instead of the state? eg for temperature sensors?

#

I mean with hover-over it shows it but would be nice to output the actual value

north spear
#

@hot gyro use picture-elements instead

hot gyro
north spear
hot gyro
#

also as you can see it would be good if I could join all 3 motion sensors and if any of those trigger to show a single motion indicator

subtle rune
#

is there a list for which weather platforms are supported in weather forecast? I don't think for example darksky gives me a "weather.darksky" entity

split granite
#

Then you're using the sensor ๐Ÿ˜‰

wheat current
#

@north spear just perfect, thank you! ๐Ÿ’ฏ

north spear
#

@wheat current @buoyant skiff happy to merge to master ?

buoyant skiff
#

im good ๐Ÿ˜ƒ

subtle rune
#

@split granite Ooh, sorry, didnt realize there was two kinds.

wheat current
#

Im in no position to test it ๐Ÿ˜…

north spear
#

haha

#

ok, now in master

#

@split granite your URL includes sensors as well ๐Ÿ˜ƒ

split granite
#

That's the fault of whoever tagged those things ๐Ÿ˜›

#

๐Ÿ˜„

subtle rune
#

I understood anyways ๐Ÿ˜ƒ

buoyant skiff
#

@north spear should i use the version tag in ui-lovelace.yaml ?

#

?v=2

north spear
#

up to you , but it'd recommend using the actual version published now

#

I'll try to be consistent

#

and easier to ask you which version you have ๐Ÿ˜ƒ

#

so v=0.2.2 now

wheat current
#

If he only had used some sort of component for that. ๐Ÿ˜…

half osprey
#

@north spear you got yourself an update available card yet ๐Ÿ˜ƒ

wheat current
#

Soon (tm) ๐Ÿ˜…

north spear
#

whaaat ... that leaked? ๐Ÿ˜„

wheat current
#

Not well hidden ๐Ÿ˜œ

buoyant skiff
#
Custom element doesn't exist: beer-card.

{
  "type": "custom:beer-card",
  "title": "Untappd Wishlist",
  "entity": "sensor.untappd_wishlist",
  "style": "background-image: url('/local/banners/untappd.png')",
  "icon": "/local/icons/untappd.png",
  "attribute": "list"
}
#

cleared cache and did igonito mode

#

the file is present at www

north spear
#

@buoyant skiff any JS errors?

buoyant skiff
#

no

#

wait it loaded now

#

hmm

#

but no background image

north spear
#

you need to force refresh. Sometimes changing version on same file on resources results in browser saying your custom element is defined twice until you force refresh

buoyant skiff
#

atleast the icon is there ๐Ÿ˜ƒ

#

yeah i know

#

background doesnt load still tried both in edge and in ff

#
      - type: custom:beer-card
        title: Untappd Wishlist
        entity: sensor.untappd_wishlist
        style: "background-image: url('/local/banners/untappd.png')"
        icon: /local/icons/untappd.png
        attribute: list
north spear
#

@buoyant skiff try chrome

subtle rune
#

@hot gyro Make a template sensor for your motion sensors that is "on" when any of them is showing motion, then include that

hot gyro
#

I was thinking about that as a solution thanks for bringing that up again

buoyant skiff
#

downloading chrome

#

enabled those settings in ff

north spear
#

does it work now ? (after enabling)

buoyant skiff
#

no background in chrome

#

and settings didnt help

north spear
#

hmm

#

errrr

#

๐Ÿ˜ฆ that is not my code

buoyant skiff
#

should be it since im using it the same image

north spear
#

/banners/ ?

#

are you sure you have your image in <config>/www/banners/ ?

#

check filename

buoyant skiff
#

nwm

#

it was my fault

#

working now

#

sorry ๐Ÿ˜„

north spear
#

no problem, glad it works

buoyant skiff
#

but edge has issues

#

lol

#

it paints the background on all of the elements

north spear
#

edge will always have issues, as I'm not using polymer for proper polyfill

buoyant skiff
#

weather

#

and stuff

#

its untappd everywhere ๐Ÿ˜›

north spear
#

:))

storm lion
#

I need to implement this immediately!

#

@north spear helping alcoholics unanimous and home automation lovers everywhet

buoyant skiff
#

is the background resized to how large the entity is ?

north spear
#

@buoyant skiff you have full control of the style,

buoyant skiff
#

ohh

north spear
#

you can do as crazy things as you wish

buoyant skiff
#

so like .style.backgroundSize = "60px 120px"

north spear
#

you can chain those

buoyant skiff
#

tnx ๐Ÿ˜ƒ

hot gyro
#

hmm ... is there any sorting mechanism/option I can use with this?

north spear
#

style: "background-image: url('/local/untapped.png');background-size: 10px 10px;" etc

storm lion
#

Also @north spear amazing work buddy I think I'm using all your cards now for something basically, other than I need to implement beer card

buoyant skiff
#

hmm ๐Ÿ˜›

#
      - type: custom:beer-card
        title: Untappd Wishlist
        entity: sensor.untappd_wishlist
        style: "background-image: url('/local/banners/untappd.jpg'); background-size: auto;"
        icon: /local/icons/untappd.png
        attribute: list
#

kinda just did this

#

thats loaded in chrome

north spear
#

@buoyant skiff try using contain instead of auto

#

or cover depending what you want to achieve

subtle rune
#

Is all css possible to use in picture elements? the badges are darn big, would like to resize but width and height doesnt seem to work

#

not in percent at least

buoyant skiff
#

cover did it

#

tnx marius

storm lion
#

@buoyant skiff - link to your repo please so can I steal this in its entirety

buoyant skiff
#

havent uploaded a component yet

#

the code isnt that good

#

need to fix before i can release a beta

#

but if you want just the entry

kind shellBOT
buoyant skiff
#

whoops

#

sry

#

runs before Tinkerer yells at me

north spear
#

@subtle rune seems you should be able to send any type of property:

subtle rune
#

Doesn't effect it though. Will try more later, am going out now. But the picture elements card is awesome!

#

Maybe caching.

north spear
#

btw, i've seen some guy using camera with platform generic to fetch remote images. I guess you could than use that camera platfrom to build a more custom picture-entity card or in the future a picture-elements one ๐Ÿ˜„

subtle rune
#

Sweet

tender wasp
#

@subtle rune badges use css variables for size. Try setting --ha-label-badge-size: ... in your styles

#

and --ha-label-badge-font-size for the text

#

Default is 2.5em for size and 1.5em for font-size

grim light
#

Are there any plans to mainline all these custom cards when lovelace gets a bit more stable? It would be nice to have everything in HASS proper without having to seek out a ton of custom cards.

north spear
#

some might trickle down into hass if re-written properly

#

some probably not ... I don't see the monster getting in ๐Ÿ˜ƒ

grim light
#

Oh well, either way from what I've seen you guys are doing great work.

#

I'm holding off a bit until the rate of changes slow a bit, but I'll have to dive into writing my lovelace yaml here soon.

north spear
#

@grim light it's worth trying it now as it's not a switch

#

you can try out things and learn how stuff works

#

majority of cards are pretty stable

#

most things coming in are new options

#

you can run lovelace in parallel to see how it looks

#

saves you time building it gradually in the background

grim light
#

Yeah I've tinkered with it a bit in my test environment. Just didn't really have the time to come up with a full config for my main instance atm.

north spear
#

you can still put it there... you don't have to restart HA at all for updates and it doesn't interfere with anything else

grim light
#

I love being able to reload on the fly. So much cleaner than restarting HA.

split granite
#

Having upgraded to 0.73.1 it's been trivial to run the two side by side

#

I ran the migration script, fixed the output to be valid, and haven't looked back

#

I've culled 80% of the groups I'd created just to make the UI usable, and trimmed the default Overview down to the bare minimum

#

Even that's going to get removed shortly, and replaced by a Use Lovelace you idiot banner

#

Indeed, with Lovelace I no longer need my history_graph entities, so I can clean those out of my system too

vapid field
#

Is there a way to make the picture glance windows a fixed size ?

split granite
#

Pretty sure there's only two sizes - full screen (panel) and card (fixed width)

pearl hound
#

Hi, might be stupid question. But cant information in the docs. How do i make a link in the menu to lovelace? Panel_custom/panel_iframe doesnt work

vapid field
#

Does a card look the same as a panel?

north spear
#

@pearl hound just use weblinks or just set Lovelace to default and make a card to navigate to old UI

#

the old UI will be available using /states even after you set Lovelace as default

#

Much easier (and prettier) to link to old ui from lovelace than the other way around

jagged warren
#

Hey, I'm new to lovelace. Currently I am working on a custom component based on the iOS Home app. Only, I can't figure out how to get the default entity icons to show up. Currently I get custom icons (e.g. mdi:desk-lamp) working with a hacky way:
<div id="icon-${state.state}"><ha-icon icon="${state.attributes.icon}"></ha-icon></div>

Can someone please tell me the appropriate way to call icons?

north spear
#

@jagged warren Lovelace is UI only and it uses custom cards.

#

You are going after something like custom UI ?

jagged warren
#

Oh sorry I wasn't clear, yeah! I have everything working except the problem with the default icons

north spear
#

using ha-icon is not working for you ?

jagged warren
#

Nope, using ha-icons I see no icons

north spear
#

try using <ha-icon src="${state.attributes.icon}"

#

actually that is for custom images

#

ha-icon icon should have worked

#

is state.attributes.icon having a value ?

jagged warren
#

src=""doesn't work, for custom icons it should be icon="${state.attributes.icon}"

north spear
#

you can use src=<path to image> if you want more than mdi:<icon>, but not what you need - my mistake

#

is state.attributes.icon having a value ?

jagged warren
#

Not for the one that's missing

north spear
#

which type of entity is it ?

jagged warren
#

It's a light

north spear
#

ok, moment

jagged warren
#

Thanks!

north spear
#

seems the other are using constants based on the domain

#

there is a helper that does fallback

#

it's not exposed on hass states ๐Ÿ˜ฆ

#

maybe some other dev has more idea around this

jagged warren
#

Ahh okay! Well thanks a lot though! For now I will do the same.

north spear
#

no problem

vapid field
#

In about how many 0.x releases would one expect Lovelace to be "feature ready"?

split granite
#

IMO it's feature ready already

vapid field
#

The development is going so fast atm that Im hesitant to jump in yet

#

seems like theres new stuff every day when i check forum/reddit

split granite
#

There's nothing I can do in the current UI that I can't do in Lovelace. Can't say the same the other way though

#

Ah, so there's stock/core functionality, and custom cards

#

Core isn't changing as fast as the custom stuff

vapid field
#

ok

#

so I can safely start exploring the core, and add the custom stuff as it progresses?

split granite
#

Yes

#

As all of this works without restarting HA, so you can safely explore

vapid field
#

ok

#

Ill start to dig in when I have spare time then ๐Ÿ˜ƒ

#

can this also be used for a tablet gui, or is HADashboard/TileBoard the go to there?=

#

Ive setup HADashboard about 80% when Tileboard showed up

#

then I put it on hold to see where stuff would progress

split granite
#

You can use it anywhere

#

Until we can resize cards though I don't think it'll be a replacement for HA Dashboard, but I could be wrong

fathom tree
#

I'm setting up the floorplan on Lovelace right now.

frosty pelican
#

the only thing you can't do right now but will be in next release are badges at the top

#

however in some cases I find Glance card to be a suitable replacement

vapid field
#

guess Ill start with Lovelace first anyways. If it can cover the tablet bit Im already knowledgeable with Lovelace and wont have to learn Tileboard:p

split granite
#

The new features in dev will make replacing Floorplan easy

#

As for badges, I miss it for one thing (the alarm), for everything else the glance card is better IMO

fathom tree
#

best part is just changing one thing in the yaml, then save and refresh and see if it works. so much faster

frosty pelican
#

agreed @split granite

#

some of the custom cards from Marius are good replacements too....Gauge and Big number

vapid field
#

where should I start to read up on Lovelace? Considering theres been quite a bit of development since it was released in "preview"

frosty pelican
#

check the topic in this channel @vapid field

vapid field
#

ok ๐Ÿ˜ƒ

#

Making the backend faster. With Lovelace, the backend will no longer need to maintain entities like groups for the sole purpose of showing them on the frontend.

#

so all the groups.yaml can be removed, in theory?=p

snow stone
#

groups are used for more then just the UI. You can use groups for automations and controls so no they can't really be removed.

vapid field
#

yeah, true. However all my groups have been purely for changing the default GUI

#

so in theory they could be removed:;P

split granite
#

Yeah, I've removed about 80% of my groups, since they were all for display only

fathom tree
#

changing color of icons on the floorplan... no worky. I've got this:

#
    icon: mdi:earth
    cards:
      - type: picture-elements
        image: /local/floorplan.png 
        elements:
          - type: navigation
            navigation_path: http://192.168.1.71:8123/lovelace/0
            icon: mdi:death-star-variant
            style: 
              top: 50%
              left: 50%
              "--paper-item-icon-color": pink```
#

I tried with and without the quotes

vapid field
#

shouldn't the quotes be single?

fathom tree
#

ill try it

#

same result.

#

just a black Death Star

vapid field
#

and if that doesn't work try removing the quotes and put pink in single quotes

fathom tree
#

ah, ok

#

nope

vapid field
#

not sure if you can specify css variables in config tho...

fathom tree
#

there's only one example in the docs that I could find.

#

and I'm no css master

north spear
#

just use inspector

#

and see what you need to send

#

(developer tools)

granite prawn
#

@fathom tree i love your videos man, thanks for making them ๐Ÿ˜ƒ

vapid field
#

the thing is that the icons are a web-component in shadow dom that use css variables to style inline svg fonts.

#

I have never applied them inside a style tag before.

fathom tree
#

Thanks Count. I'm having fun with them, so I'll keep going.

vapid field
#

I will try it and let you know if I can figure it out.

fathom tree
#

cool. I'll move on from coloring icons for a bit. Thanks V

vapid field
#

mp

granite prawn
#

that soudns awesome man. they are really informative and helpful

#

i have learnt a TON from them

#

and its also super helpful that you keep updating the content regualrly

fathom tree
#

ha, ya things change so fast I can do the same things several times.

#

I just finished the Alexa Media Player (with TTS). That wasn't even possible like 2 weeks ago.

vapid field
#

Have you tried simply using color: pink?

fathom tree
#

And this Lovelace floorplan thing is awesome, so I'll get one together for it hopefully next week.

#

haven't tried it. one sec.

#

Ha!

#

that did it!

vapid field
#

awesome!

fathom tree
#

gees. Thanks man

granite prawn
#

i speak for a lot of people, we look forward to your lovelace videos

vapid field
#

my pleasure

fathom tree
#

there's no changing icons for "state-icon" right now is there? I tried, but it just stayed the default (lightning bolt for a switch)

#

maybe service button I can assign a different icon

north spear
#

I'm not sure if it works, but you could try customize, maybe icon gets on hass object

fathom tree
#

ooh, ok. I'll try that

#

that totally worked! Genius! thanks!

north spear
#

no problem

#

and if you plan to do floorplan, use plan-coordinates custom addon to help ๐Ÿ˜ƒ

fathom tree
#

oooh, ok. I was just doing %'s

#

where can I find that add-on?

north spear
#

yes, but that helps ๐Ÿ˜ƒ

#

it helps you so you don't have to guess %

#

see the example with panel: true at the bottom

split granite
#

So, here's a question, how do I raise a feature request for selectable zoom level for the map cards?

#

Right now the default zoom is too close

north spear
#

@split granite in ui-schema repo I think

split granite
#

Cheers

north spear
#

no problem

fathom tree
#

When i put that URL in the Hassio add new repo URL box, i don't get addons. Is it hassio-ready?

#

so far I'm pretty far off when I try to guess %'s for placement.

north spear
#

er... that is a custom card for lovelace

fathom tree
#

oh duh.

north spear
#

should be fairly easy to setup, just add one line at top to add the raw file as resource (preferably from your www folder) and then add the card in the same view with your floorplan

fathom tree
#
  - url: /local/plan-coordinates.js
    type: js
north spear
#

yep

#

and then in your view where you have your picture-elements add another card

#
- type: custom:plan-coordinates
fathom tree
#

I'm getting "custom element doesn't exist"

#

hmmmm

north spear
#

exact error ?

#

are you using FF?

#

as this needs Chrome I'm afraid, only downside

fathom tree
#

chrome. but maybe not updated.

#

I'm pretty sure I've got the syntax right

north spear
#

nah, works on older chrome

fathom tree
#
    icon: mdi:earth
    panel: true
    cards:
      - type: vertical-stack
        cards:
        - type: custom:plan-coordinates
        - type: picture-elements
          image: /local/floorplan.png 
          elements:
            - type: navigation
              navigation_path: http://192.168.1.71:8123/lovelace/0
              icon: mdi:death-star-variant
              style: 
                top: 50%
                left: 50%
                color: pink```
north spear
#

check developer tools

#

off topic

navigation_path: /lovelace/0
#

use relative paths

#

check JS errors as you might either not get your plan-coordinates.js loaded (404) or some other JS error

fathom tree
#

3:1 Uncaught (in promise) DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).

#

that's the error in the dev tools panel. There's more if I expand it.

#

render-status.js

#

it's pointing to several lines in render-status.js

#

and some other files

north spear
#

hmm

#

can you take a screenshot ? shouldn't be related

#

as you are loading the file from your local/

buoyant skiff
#

Marius

north spear
#

and card doens't load any cross domain calls

buoyant skiff
#

almost perfect ๐Ÿ˜›

north spear
#

@buoyant skiff still no custom background I see ๐Ÿ˜„

buoyant skiff
#

haha no too drunk atm

#

๐Ÿ˜›

north spear
#

@fathom tree ah, I think i might know why

north spear
#

can you try to access your home assistant using localhost:8123 instead of the URL you're currently using?

#

if it's running on localhost

fathom tree
#

I can get to it with hassio.local:8123

north spear
#

still same error ?

fathom tree
#

I'm using VPN to get in

#

that was it!

#

hassio.local:8123/lovelace and it worked.

north spear
#

๐Ÿคฆ I have a guy with similar issue which was puzzling for me as it had little to do with the custom card, but for some reason using IP instead of DNS on local network and the service worker causes this

#

can't figure out which part is affecting which, I'll have to test out myself

#

at least it worked ๐Ÿ˜ƒ

fathom tree
#

ya, no go with the IP or duckdns.

#

thanks for sticking with me!

north spear
#

hope you find plan-coordinates helpful

fathom tree
#

I'm sure I will. thanks

north spear
#

@fathom tree out of curiosity, is your home assistant running on http ?

fathom tree
#

yes

north spear
#

๐Ÿ˜ฆ

#

that might be the problem

#

lovelace uses a service-worker

#

service-worker needs TLS

fathom tree
#

ooooh

north spear
#

but... the only exception that google allowed was localhost or local stuff

#

it's a google chrome security thing

fathom tree
#

so do you expect there will be other problems?

north spear
#

no idea, I'll have to ask @half osprey

#

he's the expert in service worker thing

fathom tree
#

cool. well, if I find more issues I'll report back.

north spear
#

thanks

fathom tree
#

now, back to my floorplan ๐Ÿ˜ƒ

vapid field
#

how would you setup https/tls? Using a self-signed cert or something else like certbot, etc?

north spear
#

certbot is easiest, but you'd need to open some ports while it's doing it's thing

#

you can also setup https manually

#

you just need certs in right location

vapid field
#

yeah but how would you add them to the docker image?

north spear
#

no need

fathom tree
#

when I refresh after a change I get the big red error again. If I remove the /3 after "lovelace" and refresh again I get the plan-coordinates back and it works until I refresh

north spear
#

they stay in shared location

vapid field
#

really? where?

fathom tree
#

I'll use the plan-coordinates while I'm placing things on the floorplan, but then remove it after.

north spear
#

@fathom tree add ?v=2 at end of our resources, something got cached

fathom tree
#

ok

vapid field
#

yeah that's a good hack for any url that you don't want cached.

north spear
#

@vapid field using ssh addon for hassio , you ssh in and you'll find cert in /ssl

#

@fathom tree if you don't fix it to work you'll be missing out on some custom components that you might like ๐Ÿ˜‰

vapid field
#

ah... that's a bit of a problem as I have hassio installed over a ubuntu server... how do I ssh into the vm?

#

the host has ssh as well

#

I've got the same issue for samba etc.

north spear
#

@vapid field just setup the addon with different higher port

fathom tree
#

dang. So I'll have to use SSL to fix it for good?

north spear
#

like 222

vapid field
#

and the mapping will work automatically?

north spear
#

@fathom tree most likely unless someone with more knowledge than me can suggest alternatives

#

mapping inside the continaer for /ssl to use for certs should

#

but it really depends on the setup you want to take

#

ssl directly in home assistant

#

use nginx container in front for routing and ssl

#

use a different routing in front (apache or some other device)

#

I run mine using bestlibre nginx because it has multi vhost support

vapid field
#

that may be a lot easier... the only issue I always hit is with the way homeassistant uses iframes for add-on UIs... makes proxy config much harder.

north spear
#

er... why ?

#

check this config for my nginx

kind shellBOT
north spear
#

grafana and sonoff are addons running without https and on weird ports, and nginx puts them all on 443 based on the vhost

#

you can also do upstream if it's on different ip/server

vapid field
#

I wasn't aware of the vhost syntax. I was using server location mappings.

north spear
#

this is bestlibre nginx addon

vapid field
#

ah I thought it was native nginx syntax

north spear
#

might be working some other way on other addons

#

no no, it's addon config

vapid field
#

I see. My nginx server is another machine.

north spear
#

you can use upstream than

fathom tree
#

you guys are way over my head now.

vapid field
#

maybe I should just setup the addon your way and do a more basic config upstream.

#

@fathom tree sorry. ๐Ÿ˜ฆ

north spear
#

well... we're way offtopic for lovelace as well ๐Ÿ˜ƒ

fathom tree
#

no no, I can't know everything and I'm okay with that.

vapid field
#

me too! ๐Ÿ˜ƒ

fathom tree
#

I'm happy to know enough to get into trouble in all kinds of situations. And I'm there!

north spear
#

but ssl is a good thing to have regardless ๐Ÿ˜ƒ

vapid field
#

agreed

#

especially when you start using HTTP2

#

and the PRPL pattern

north spear
#

even in datacenters there is a shift from perimeter firewall to just consider everyone an enemy and use TLS across everything with strict ACLs

fathom tree
#

well, if (when) I do start using SSL, the main reason will be to enjoy the full Lovelace experience.

vapid field
#

and a more secure setup ๐Ÿ˜‰

north spear
fathom tree
#

there seem to be a lot of parts that could go wrong with SSL and for a dude like me it's scary.

#

oh! I saw that! so cool!

north spear
#

and it's mostly css ๐Ÿ˜„

buoyant skiff
#

once im hungover tomorrow i will rework my beer card

fathom tree
#

what's the beer card look like? I saw it listed in the custom cards repo

north spear
#

was a gift to Toast ๐Ÿ˜ƒ

#

it's just a multiline string card with support for custom icon and style background

#

(it's the one on the bottom)

fathom tree
#

it's listing breweries?

north spear
#

beers

fathom tree
#

good times

#

thanks again, I've gotta go do some real work for a bit. see ya

north spear
#

see ya

vapid field
#

how do you install bestlibre add-ons?

raven nacelle
#

@vapid field Wrong channel....this is for Lovelace only

buoyant skiff
#

untappd + hass = โค

vapid field
#

ok. I was just following up to the existing conversation about nginx.

#

is there a channel for that anyway?

raven nacelle
vapid field
#

hi i was trying the cardtracker but for some reason it shows then disapears
is this card with some bug or iam doing something wrong?

buoyant skiff
#

@fathom tree its listing of beers and breweries

vapid field
#

what are the setting to change the height/width of an picture-elements. Currently the floorplan looks rather small.

raven nacelle
#

@vapid field picture-elements takes up one column (height will be automatically adjusted based on the width of the column). You can use panel mode to use full screen for the card

vapid field
#

@raven nacelle tnx, Any link with some documentation which explains the things ?
Or have an example what your meaning (Not sure if I understand you) ?

raven nacelle
north spear
#

@vapid field that card was not supposed to be complete. The card autohides itself when there are no updates available

#

we need a bit more tuning for the custom_components to have some caching and to update the sensor when you call the update service that were planned for this weekend ๐Ÿ˜ƒ

vapid field
#

thanks for answer mate

north spear
#

no problem

#

i'll post the card on community forums and reddit when it's ready

vapid field
#

๐Ÿ‘

#

at some point i would love to see fix tables for cards, it seems that they dont have a order that will keep them in same places

candid rapids
#

Does anybody have a good dark theme that works with lovelace?

vapid field
cinder rapids
#

Is there a cookbook with examples for Lovelace?

frosty pelican
#

@vapid field got a screenshot of that?

#

@candid rapids i got some screenshots on my github, bottom of readme

#

~dshokouhi

kind shellBOT
vapid field
frosty pelican
#

oh i thought it would be the dark theme you posted with Lovelace ๐Ÿ˜›

vapid field
#

aha can make a screenshot of that as well ๐Ÿ˜ƒ

#

Need to remake my home, will take some time

frosty pelican
#

no worries, just like dark themes ๐Ÿ˜ƒ

candid rapids
#

Hmm, is there a way to change the text color of the history graphs? The x/y labeling is a dark gray

dense roost
#

@fathom tree custom card repository? Where is this that you speak of

fathom tree
copper mural
#

I got an error say: "Unknown card type encountered: camera-preview.

#

Isn't there a type: camera-preview ?

subtle rune
#

@tender wasp thank you for the css variables!

buoyant skiff
#

morning

empty heath
#

So I'm putting in a little time on the Lovelace migration script...now that we have vertical stacks, should I just use vertical stack to migrate groups to Lovelace?

buoyant skiff
#

yes

empty heath
#

Of course I could test the group's entities against a list of card-based entities, and then convert it if it has one.

#

(like media_player)

#

Right now you cannot have a media_player inside of an Entities Card.

north spear
#

@empty heath lies

#

๐Ÿ˜ƒ

empty heath
#

Oh, is that changed now?! ๐Ÿ˜„

north spear
#

wasn't it possible to have any kind of core card in entities?

#

using type ?

#

what would you be using vertical-stack with for old interface migration ?

#

that just forces one long column of cards

empty heath
#

I honestly haven't tested it. I was going based off of the errors that were thrown in the original migration script ๐Ÿ˜ฎ

north spear
#

let me test it real quick

#

meh

#

doesn't work only with custom cards

#

apologies

storm lion
#

@north spear - whats best way of testing a custom-card from a code editor? Or just run it and view element errors

empty heath
#

No worries. Thank you so much for testing.

north spear
#

was hoping that was including normal types ๐Ÿ˜ƒ

empty heath
#

Man, I gotta admit...only 2 beers in and programming in a language that I am not too familiar with is pretty difficult.

north spear
#

@storm lion best way is just to run it

storm lion
#

will do, thanks buddy

north spear
storm lion
#

yep, thanks for the reminder though

empty heath
#

I guess it doesn't help that Atom is being really glitchy on me, haha.

subtle rune
#

I can't manage to have an entity filter with a picture glance card, seems like I've tried every combination. With regular glance it's easy, but I can't seem to configure the right way

north spear
#

I'm using vscode

#

@subtle rune ping me a config, i'll test it out with demo:

empty heath
#

I've been wanting to switch since day 2 with Atom, but I couldn't pull the trigger.

storm lion
#

vscode really a massive step up over atom?

empty heath
#

Side note -- it's insane how many lines of code you can write while trying to debug stuff. ๐Ÿ˜‚

#

@storm lion It's very similar, from what I've gathered, but VSCode doesn't have as many packages available.

north spear
#

@storm lion I think it just depends on preferences

subtle rune
storm lion
#

doesn't hurt to try it I guess, I like you dale find atom to becoming more and more unstable

empty heath
#

Any time I switch projects I have to reload the window. ๐Ÿ˜ฆ

#

Thankfully, there's a keyboard shortcut for that. lol

storm lion
#

yeah I have the same problem

subtle rune
#

@north spear Sorry, my bad. Was a faulty entity_id that seems to have made the error

#

But i didnt get a nice red box for it, so I got confused

north spear
#

no problem

#

than back to building the backend for my cardtracker ๐Ÿ˜ƒ

storm lion
#

or is that not the kind of cardtracker your on about

north spear
#

if you look at docs, it points to the one you linked ๐Ÿ˜ƒ

storm lion
#

let me know when you want a beta tester ๐Ÿ˜‰

north spear
#

but it needs a bit of refactoring

#

I don't want you to specify both custom component and sensor

#

and I want it to use async and some caching

storm lion
#

makes total sense

#

great ideas, and looks like a tidy implementation

#

ready for it being tested yet?

subtle rune
#

Seems really wierd though, its a light thats alright and it's showing in entity filter with regular glance, but in picture glance with filter it gives me an error in log: "Uncaught TypeError: Cannot read property 'entity_id' of undefined". It is the only light thats on right now and should show in the card

storm lion
#

oww, picture glance won't like that many entities.. perhaps thats it

#

even if it is currently only get one passed to it

subtle rune
#

oh of course, thank you.

storm lion
#

try only leaving one light in the entity-filter and see if that solves it?

#

no problem ๐Ÿ˜ƒ

subtle rune
#

I just used my glances card for trying it out. didnt think of the amount of entites ๐Ÿ˜„

north spear
#

@storm lion not yet, but will probably be this weekend

storm lion
#

@north spear just give me a shout, excited for that one

subtle rune
#

Didn't solve it though. Only have one entity now and get the same log

#

regular picture glance without filter is working with the same light

#

can anyone confirm having a working entity filter card together with picture glance and perhaps share config?

storm lion
#

just trying to set one up now

subtle rune
storm lion
#

hmm its a strange one, just trying a few things bear with me

subtle rune
#

Happy for the help!

storm lion
#

sooo the syntax is right(ish) as in if I change it to a glance card from a picture glance it works a treat.. that may indeed be a bug

north spear
#

it's a bug

subtle rune
#

Glad that it wasn't just me ๐Ÿ˜„

storm lion
#

will add it to ui-scheme issues

subtle rune
#

Great! I wont make a ticket then ๐Ÿ˜‰

storm lion
#

๐Ÿ‘

#

(also congratulations Jedi @north spear , well deserved)

north spear
#

er...

#

what is jedi ?

storm lion
#

funny light up sticks, long cloaks, daddy issues....

north spear
#

light up long sticks sounds right , but no daddy issues

#

but seriously, I might be thick but I'm missing the joke here ๐Ÿ˜ƒ

storm lion
#

~jedi

kind shellBOT
#

The Jedi role (blue) is given to our community members who have proven themselves knowledgable and worthy of helping others. Please do not request to be assigned this role. It must be earned.

north spear
#

oooh

#

weird ๐Ÿ˜ƒ

storm lion
#

second line tech support ๐Ÿ˜‰

north spear
#

now i notice my name color changed

buoyant skiff
#

hehe

north spear
#

I bet it's because of the beer-card ๐Ÿ˜ƒ

buoyant skiff
#

its all about the beer ๐Ÿ˜›

storm lion
#

seconded!

buoyant skiff
#

scrapped my old webui and going all lovelace now

#

sooo much better

storm lion
#

can't believe it took you so long

buoyant skiff
#

been busy coding ๐Ÿ˜›

#

cant do it all

#

finally got all my services consolidated into hass

storm lion
#

@subtle rune - what version of HA are you running so I can add it to the bug notes please?

subtle rune
#

0.73.1

buoyant skiff
#

havent really looked at the other cards available beside the beer card need to check em out

storm lion
#

next port of call is the monster, by far my favourite card

buoyant skiff
#

k need to check that out

#

what are you using the monster card for ?

buoyant skiff
#

reading

#

seems like its has many uses

#

^ so my question above ๐Ÿ˜ƒ

storm lion
subtle rune
#

I haven't gotten to using it yet because I get sidetracked from its many uses ๐Ÿ˜„

buoyant skiff
#

haha i know the feeling

storm lion
#

filtering by device class is really call, but my favourite is this one:

  - type: custom:monster-card
    card:
      type: entities
      title: Things that are probably broken
    filter:
      include:
        - state: "unknown"
#

gives me a list to keep an eye on and fix or exclude

buoyant skiff
#

yeah gonna borrow that one ๐Ÿ˜ƒ

subtle rune
#

Ooh nice! Will use that one too

buoyant skiff
#

hehe the beer was strong yesterday ๐Ÿ˜› feeling it today haha

#

but i managed to fix my untappd stuff

#

just need to hunt down a better untappd logo thats long instead of wide

#

so i can split it and use it for the wishlist beer card

#

the gauge card is nice

subtle rune
#

I had quite a few 'unknown' ๐Ÿ™ˆ

storm lion
#

Yeah, I was very surprised too, thought everything was working for me until I checked that out

subtle rune
#

Will have to check them out later. Right now I really have to get to cleaning... We're getting guests and I've spent far too much time on this today ๐Ÿ˜„

buoyant skiff
#

had some broken stuff too ๐Ÿ˜›

#

added a new tab called bugs

north spear
#

Make sure to use ๐Ÿ› or beetle icons ๐Ÿ˜ƒ

viral sorrel
#

I've not yet tried lovelace but was wondering if this was possible.. create a group where the background is bright if any light is on in the room or dark if no lights are on. based on a value template or sensor.. or whatever.

north spear
#

Yes. Use two images

split granite
#

state_image ๐Ÿ˜‰

north spear
#

Based on state

split granite
#

I do that with picture_glance - one image for lights off, one for lights on

#

Sadly you can only use a single entity for that, so I'm going to be creating some input_selects to allow me to do things like "day/night lights off/night lights on/away"

#

Being able to nest state_image would be awesome, maybe I'll raise another feature request...

north spear
#

@split granite maybe better:

state_images:
  - image: /local/living_room_day.png
    match:
      sun.sun: above_horizon
  - image: /local/living_room_night_on.png
    match:
      sun.sun: below_horizon
      group.living.room: on
  - image: /local/living_room_night_off.png
    match:
      sun.sun: below_horizon
      group.living.room: off
#

nesting seems a bit unreadable

split granite
#

Yeah, that works too

#

I was thinking for of a traditional set of nested if statements, but yours is more flexible I think

calm rock
#

hi all!, im having problems to make my "old" ipads to load homeassistant page ( just the top blue band header appears ) , i suspect of the line "javascript_version: latest # for lovelace to work on ios" may be forcing this to work with a version that it simply dont have (?) , is it possible to put this line on a file that only applies when you invoque the lovelace UI ? ,.

stable socket
#

Hey guys, how have you implemented your alarms in lovelace? I'm just setting up the Manual Alarm Control Panel HA entity. Interested to see any examples or tips?

buoyant skiff
#

read it

calm rock
#

red it already , thanks, that is why i suspect about that , and want to see if enabling latest , can be better directed when needed , and not as default .

#

on those old ipdas , im not using lovelace

north spear
#

@calm rock by default you get latest on devices except ios

calm rock
#

@north spear , ok so you mean that the browser is not forced to pick the latest , if not needed ?

north spear
#

no idea how it's implemented, but I think there is some backend logic based on the user agent

calm rock
#

ok, will disable latest , and test again, just to confirm then , on the same ipad , i can get the UI without a problem form a PI without lovelace config , and cant open anymore the page that the rpi, with latest config , .

#

is serving

north spear
#

how old is your ios on that device ?

#

Mine are running fine on 11.4 with latest

calm rock
#

its 9.3.5

#

it worked, perfect , until recent changes

#

and , as said , still works perfect , with the other PI running hassio73, hassOS, without lovelace ios enabled .

north spear
#

ok

buoyant skiff
#

@north spear enabling the options in ff on android makes the browser crash ๐Ÿ˜›

#

sent a bug report to devs

#

love the gauge card

#

redid my whole system menu

north spear
#

nice

#

I'm almost done with the new card-tracker

empty heath
#

@north spear I gave you the Jedi role because of all of your dedication to Lovelace lately.

#

You're the...Lovelace Jedi. ๐Ÿ˜ƒ

north spear
#

๐Ÿ˜› thanks

empty heath
#

No, thank you.

#

You are seriously "the guy" when it comes to Lovelace, and for that we are all very thankful.

north spear
#

โค

storm lion
#

indeed, well said @empty heath - and so approachable and nice with it, even to me and my many many stupid questions ๐Ÿ˜›

empty heath
#

๐Ÿ˜ƒ

#

@north spear Where is this list of your custom cards with the "updates" stuff? ๐Ÿ˜ฎ

north spear
#

Just tested it on my production

#

Needs a bit more testing / tweaking it seems

empty heath
#

Like, is there somewhere we can add repos for Lovelace cards? ๐Ÿ˜ฎ

north spear
#

not at the moment

empty heath
#

Ahh, ok.

mortal cape
#

Custom Card Community Place

north spear
#

@wheat current was kind enough to provide a custom component that uses my repo for version checking

mortal cape
#

CCCP

north spear
#

I've build a custom card to take advantage of the sensor there and services exposed

empty heath
#

Has anyone been working on a "header" card, or is that even possible? (Something to hold "badges" like in the old UI)

raven nacelle
#

@empty heath badges are coming in the next release

empty heath
#

Yay!!! โค

empty heath
#

I guess I'll keep truckin' on my migration script then. โค

north spear
#

Card doesnโ€™t update when using update all but it does when running check ๐Ÿ˜ƒ

#

I need some deep troubleshooting

empty heath
#

^ the story of our lives.

storm lion
#

@empty heath - somewhere to keep custom cards - I have this setup, we just need to really get everything over there, if people are interested I doing it like that?
https://github.com/custom-cards

#

@wheat current set it up, along with one for custom components

empty heath
#

@storm lion Brilliant. ๐ŸŽ‰

#

Hmm...why not just a Hass.io add-on to manage it? ๐Ÿ˜‚

#

I mean, sure, the non Hass.io'rs would be a little upset, but pfffft.

storm lion
#

Hopefully, obviously @north spear is the biggest custom card manufacturer at the minute and all of his are nicely documented on his repo currently

#

Aren't you a docker user @empty heath ?

empty heath
#

Kind-of.

#

I use Docker for Hass.io and on unRAID, but no where else at the moment I do not think.

storm lion
#

You have hassio on unraid? Interesting, didn't think hassio could run its supervisor on another docker

empty heath
#

No, I do not, yet.

#

I have it booting in a VM, but never ran it on Docker.

#

But yes, theoretically, it could run on inception.

storm lion
#

AHH that makes sense

empty heath
#

Docker can run inside Docker containers.

#

But no one ever made it a reality.

#

Whenever we do have the ability to download/add cards from a repo, will someone please tag me on the post/commit/update/message/comment/etc? This will be handy for my migration script.

dim harness
#

custom card repository sounds awesome \o/

#

I'm unsure if balloob will agree with that notion though

wheat current
#

Streamline installation steps and one place for users to search through has to be a win win for every parts

dim harness
#

I agree. the point he has is that by making it easier for users to install custom components (/UIs/whatever) will make it easier for them to break their installation, which will then cause non-relevant bug reports to our bug tracker

chilly storm
#

Hi - starting to use the interface, and I've already made it the default on my iOS app. Having great success , in fact, I think the only real "difficult" is that when things are so customizable it can be hard to know where to begin. I am not much of a developer, but not having trouble using Lovelace with Hassio, and Nest, Zwave, and Konnected (alarm) components. Still getting set up, but happy to try out new things it that helps you all.

hot gyro
raven nacelle
#

@hot gyro Please check the docs....you can change the titles on the cards so that you don't get the .... Entities are sorted in the order they appear in the group. What do you mean by resizing?

mortal cape
#

@raven nacelle you can get rid of the ... in the glance card?

raven nacelle
hot gyro
#

First of all I mean sorting of cards, I mean the cropping of text inside the cards as shown, resizing meaning if I got a browser @4k why does it only show 3 cards per row

raven nacelle
#

They system is designed to work for most of the cases and not specific use case. Card are sorted based on a few factors - I don't claim to understand everything - but there is well defined algorithm.

#

If you remove the side panel, you get 4 columns

hot gyro
#

While I understand what you are saying pretty much any browser behaves differently doesnt it? Fit how it fits the resolution.. but as mentioned I said I believe its the same limitation as the regular ui

#

Cards sorted by algo is something that again makes it difficult to try to create a static UI from my perspective thats works as designed I had the situation that the backyard in my screenshot was perfectly in line where I thought it would be then it was placed differently and then the next card changed thats how I noticed that I cant sort them the way I would like it

#

Would you not prefer to define what shows where on your UI? Eg important vs less important cards/entities?

#

It in parts works with the old but still is a bit of pain with using the order tag

#

Just my first impressions playing with it really will need to dig through the docs to see what can be tweaked as you can see

#

Commenting with title renaming well if the title is too long it will still crop rather than resize the font as an example

#

Will see

north spear
#

@hot gyro there are various approaches that can fix the UI for you

#

however keep in mind that the current UI must work for majority of people and platforms out of the box

#

including very small mobile screens

#

with the new UI you do get some benefits on consistency in your UI suing vertical-stack & horizontal-stack

#

and I'm sure in the future (considering this is still experimental and only at the 2nd release) you might get a grid layout

#

However you can always go and use HADashboard or other frontends if you want a very custom use case

#

fitting to the resolution with various widths is tricky when your cards can have various controls and other bits and pieces dynamic on them and can cause a real pain in maintenance

#

the new UI has been built form the ground up with the main focus on decoupling it from state machine, which brings benefits in more easily adding custom cards & panels

#

An experimental UI at it's second release can't be perfect and fit like a glove any use case ๐Ÿ˜ƒ

hot gyro
#

Hmm ok - with regards to fitting to resolution I just thought if screen equals x and card width is y add as many as fit into x - not resizing/scaling it

north spear
#

hmm

#

I think when you have few cards it wont' do that as easily

hot gyro
#

Sure - as I said not criticising just throwing some ideas in the room

north spear
#

@hot gyro you can try to fit your full screen btw in lovelace

#

use a horizontal-stack card with the view set to panel: true

#

and get 3 vertical stack cards inside

#

and place rest at your discression

#

but only if you don't care of mobile ๐Ÿ˜ƒ

#

let me try and get a sample for you

hot gyro
#

Well let me study the docs and see whatโ€™s possible really this was just a quick assessment how far the improvements are and there are some I like some that seemed to require a bit of additional thought - at least for what I would consider practical for me

north spear
#

what browser are you using ?

hot gyro
#

Safari iOS/OSX

north spear
#

it's a bit strange you only have 3 columns as for that many cards I would get 4

hot gyro
#

Well I show the panel which usually renders the ui to 3 columns

#

If I hide it I should get 4

#

But thatโ€™s what I am saying there is plenty of unused space in my frame

#

Which could be dynamically read and filled

north spear
#

that is my view which gets filled completely

split granite
#

I get that with 4 cards, but with 3 I get "white" space either side of the three columns

hot gyro
#

@north spear thats interesting as it doesnt happen here ...

split granite
#

It seems three is the magic number, from one to two, and two to three, I get the full width, it's the three to four that gives space

#

But only with the sidebar showing ๐Ÿค”

#

If I hide the sidebar, it all behaves as you're saying @north spear

hot gyro
#

I even disabled all extension I had - same behaviour

#

3 cards with 4 without panel

#

ha - you arent showing the panet - that explains it

#

they could fit all into one row

north spear
#

I think it depends also on reported height

hot gyro
#

I guess you mean width but I agree

north spear
#

height

#

๐Ÿ˜ƒ

#

all cards have now a "size" which is the height that is uses to calculate how much it can stack somewhere

#

I'm no expert on how the flow is calculated, but there is some logic in there

#

however if you really want to a fixed layout there are various approaches , like HADashboard or other custom UIs like Tiles

#

(in the old UI)

#

in Lovelace you get some with vertical and horizontal stacks

split granite
#

To be honest, the vertical and horizontal stack cards work "well enough" for fixed layout

north spear
#

but I think more is coming

split granite
#

I've got a few views where I want to apply some logic, and they work there

north spear
#

I think the fixed layout can be done with stacks and panel: true

split granite
#

It ain't perfect, but then neither was the old UI ๐Ÿ˜›

north spear
#

It is really funny in my opinion how fast people are comparing Lovelace with old ui ๐Ÿ˜„

#

this is 2 releases old only

split granite
#

I know

north spear
#

and much effort has been put in ground work

split granite
#

But, frankly, it's already a replacement IMO

north spear
#

true that

#

I love the new UI and the flexibility

#

especially the custom cards (as you can tell )

split granite
#

I've reduced my groups, removed the history_graph entities, and I've got a better UI

hot gyro
split granite
#

That's the same link

hot gyro
#

sorry

#

if I could sort the appearance I guess it would already be a huge improvement

north spear
#

use some panels and stacks

split granite
#

I use vertical and horizontal stacks for that

#

Not even panel yet

north spear
#

@split granite try the setup with panel:true

#

use a panel: true with 1st card being horizontal-stack

#

then inside decide how many veritcal stacks you want (how many columns)

#

and sh*t just stays in place

#

let me give an example

#

this gives you two columns that stretch the whole freakin' screen, no longer how big you have it (no pun intended)

hot gyro
#

AAAAAAAH

#

that might just do the trick

split granite
#

Nice, I'll have to play with that

hot gyro
#

so basically you define a table with horizontal/vertical stacks and fill them with your cards ...

#

I think this may work

north spear
#

one horizontal.. and then just fill the Column

#

you define how many columns you want with vertical stacks

#

in my sample I used two

#

the nice thing is that horizontal stack fills the whole screen because it's set as "panel: true"

hot gyro
#

thats what I understood - let me try that - but I think you said that doest work with mobile?

north spear
#

it will.. but will try to maintain the layout

hot gyro
#

but I could use a different landing page for mobile - so it shouldnt matter

north spear
#

squeezing the sh*t out of your cards

hot gyro
#

let me have a play with that cheers

north spear
#

use can use deeplinks with Lovelace, so yea

#

no problem

hot gyro
#

thats seems to work

north spear
buoyant skiff
#

๐Ÿ˜ƒ

#

is it working now ?

north spear
#

yes

buoyant skiff
#

neat ๐Ÿ˜ƒ

#

using bignumbers card also now

#

so i should use the card tracker

north spear
#

I like it ๐Ÿ˜ƒ

mortal cape
#

@raven nacelle trying out the glance/title thing and it isn't working for me

#
      - type: glance
        title: Kitchen Stats
        entities:
          - entity: sensor.kitchen_temp_68
            title: Temp
          - entity: sensor.kitchen_ambient_69
            title: Brightness
          - entity: sensor.kitchen_humidity_70
            title: Humidity```
#

no error, but no change in appearance

#

(or @north spear ?)

north spear
#

@mortal cape title ?

#

not name ?

mortal cape
#

oh...arsaboo has - type: glance title: Doors entities: - binary_sensor.back_door - binary_sensor.front_door - entity: binary_sensor.door_window_sensor_158d0001bf26df title: Garage - entity: binary_sensor.ring_front_door_motion title: Front Motion

#

in his config

#

I'll try name

wheat current
#

@north spear amazing work ๐ŸŽ‰ : ๐Ÿ’ฏ

north spear
#

@mortal cape that was b03 code

#

always use docs ๐Ÿ˜‰

mortal cape
#

it works, but the ... are still there which is what I was curious about

north spear
#

... is CSS meaning it can't get whole text in

mortal cape
#

I think I just don't like the glance card

north spear
#

overflow ellipsis

#

it will be useful @mortal cape with entity filter

mortal cape
#

there would seem to be plenty of space heh

north spear
#

:))

buoyant skiff
#

dont like the glance view

#

most of my entries has spacing issues like that

mortal cape
#

yeah

#

for now...anyway

buoyant skiff
#

yeah

north spear
#

I'd set 4 per row and allow two title lines ๐Ÿ˜‰

#

but css for a more dynamic layout (like filling view if less then 5) it's a pain

hot gyro
#

@north spear works but as you say mobile doesnt - I guess I only want a single vertical stack on mobile - seems like /lovelace is hardcoded for the ui-lovelace.yaml - shouldnt be that difficult to get a second entry in that to allow ui-lovelace-mobile.yaml ๐Ÿ˜ƒ

north spear
#

You can get around this if you want with a bit of hacking

#

you make a mobile friendly view in lovelace

#

something like /lovelace/mobile

hot gyro
#

just thought for consistency

#

true could do that as well

north spear
#

and implement a custom HTML to set the default to that view

#

at the moment to set a path as default is a simple JS command

hot gyro
#

ok

#

will have a play with that as well ...

north spear
#
<script>
  localStorage.defaultPage = 'lovelace/mobile';
</script>
#

that would work if you are able to load that HTML only on your mobile platform

#

or add code in there to execute that command only when user agent matches what you have on mobile

hot gyro
#

I was just thinking about user-agent matching

north spear
#

you can be as creating as you wish

#

๐Ÿ˜ƒ

undone egret
#

reporting to spca

north spear
#

It's funny because it's true ๐Ÿ˜ƒ

undone egret
#

so your saying alll in or nothing?

north spear
#

you try a couple of cards, and usually end up doing your whole UI :))

#

and then never going back

undone egret
#

well i use the ui like 1% of the time ... but i think what you are doing is great

north spear
#

I think that is the right way to go, 1% of the time, but if you have a few things on the walls to glance at it every now and then... like time to work, schedule, etc. it has to look pretty

undone egret
#

yea been on hadash for years now... so controls are simple ... but mostly everything is automated

north spear
#

I end up using grafana more just to track anomalies ๐Ÿ˜ƒ

undone egret
#

true that

#

i just wish we could get alexa/home to be duplex

empty heath
#

Can someone with at least history_graph, plant, and weather entities provide me with a dump of their /api/states page so that I can use it for testing? If you'd like, feel free to sanitize the data first. Regardless, all data will be kept private and deleted after development and testing is complete. Do not post the link here in chat, but instead PM me.

half osprey
#

@empty heath run the demo component at home ?

#

just add demo: to your setup

north spear
#

demo is the best

empty heath
#

@half osprey Haha, never thought of that one. Thanks!

north spear
#

but plant doesn't work

#

you can build one with random sensors tho ๐Ÿ˜ƒ

#

@empty heath if you want changing values, use random sensor platform

empty heath
#

Thank you.

#

I just need something to know what to base the cards off of, lol

vapid field
#

i see the card-tracker is avaliable now, i have follow steps and i can see the card there but isnt showing the cards i have installed, when i click check it dont shows no cards
is this supose to show the current cards you have installed or will only shows when updates is available?

north spear
#

@vapid field it needs the custom component installed

#

and added to your configuration.yaml

#

I think docs on that side are not yet updated

#

but it's easy, install custom components and add custom_cards: in your configuration.yaml

vapid field
#

i have put the sensor folder and custom_cards.py inside custom components
configuration.yaml i have add

custom_cards:
  auto_update: False

sensor:
  platform: custom_cards
north spear
#

no need for the sensor part

#

it auto adds

#

and don't use the sensor from outside the custom_cards

vapid field
#

ahh let me test

north spear
#

I will update docs soon, apologies

vapid field
#

no problem i have removed sensor folder and configuration entry for it

#

restarting....

#

for some reason still wont show the installed cards

north spear
#

it looks for cards in www/ folder

#

if you have them in a subfolder they won't show

#

but one thing at a time, can you check you get the sensor? do you see any errors in your logs ?

vapid field
#

ahh i have sub folders

#

would be nice to have them in folders for organization heheยด

north spear
#

can you try it without folders? I will add an option for configuring folder location after if it works

vapid field
#

trying now

north spear
vapid field
#

wow damm amazing

north spear
#

states work, just need to fix buttons

vapid field
#

looking awsome!!!!!

#

still wont show grr

north spear
#

ok, let's take it slow

#

do you see components loading in logs ?

#

you should see two warnings , one for component other for sensor

#

2018-07-14 19:36:26 WARNING (MainThread) [homeassistant.loader] You are using a custom component for sensor.custom_cards which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.

vapid field
#
018-07-14 20:29:16 INFO (SyncWorker_6) [custom_components.custom_cards] version 1.1.7 is starting, if you have ANY issues with this, please report                   them here: https://github.com/custom-components/custom_cards
2018-07-14 20:29:16 DEBUG (SyncWorker_6) [custom_components.custom_cards] Checking for installed cards in  /config/www/
2018-07-14 20:29:16 DEBUG (SyncWorker_6) [custom_components.custom_cards] Checking which cards that are in use in ui-lovelace.yaml
2018-07-14 20:29:17 DEBUG (SyncWorker_6) [custom_components.custom_cards] These cards where found: ['bignumber-card', 'beer-card', 'gauge-card', 'sample-card', 'monster-card', 'entity-attributes-card', 'card-tracker']
2018-07-14 20:29:17 DEBUG (SyncWorker_6) [custom_components.custom_cards] Local version of bignumber-card is 14
north spear
#

ok, that is working properly

#

can you go to your dev panel and check if the sensor is there?

vapid field
#

sec

north spear
#

sensor.custom_card_tracker

#

that is the name of the sensor

#

and that you should have set as entity under the card-tracker as well

vapid field
#

sensor.custom_card_tracker wont find

north spear
#

that means your sensor is not properly installed

#

can you check if your sensor is in custom_components/sensor/custom_cards.py ?

vapid field
#

is not there

north spear
#

you need the sensor as well from the repo there

vapid field
#

k

buoyant skiff
#

seems the beer card is popular ๐Ÿ˜›

vapid field
#

@north spear working great, awsome job

#

will this detect also if new cards are available or just updates?

north spear
#

updates only for installed cards

vapid field
#

ya thats what i tought

wheat current
#

It can be used to install new card to, jeg create a blank card-name.js file and give it a version number in Lovelace config

vapid field
#

Interesting

vapid quartz
#

Does anyone know what the plan is for alerts in lovelace?

cedar coyote
#

is there anyone who has shared some it's own Lovelace on github? I would love to see how certain things are working

north spear
#

@cedar coyote @raven nacelle has

cedar coyote
#

ty

split granite
#

My Lovelace config is on my Github, and I've put some screenshots in the wiki that's there too

sudden lion
#

.tinkerer

kind shellBOT
split granite
#

(the picture glance cards are blurred out, because the house isn't tidy enough to show you all ๐Ÿ˜› )

cedar coyote
#

@split granite thanks will have a look ๐Ÿ˜‰

split granite
#

Pretty much everything I do ends up there automatically

sudden lion
#

Looking good

buoyant skiff
#

hehe @north spear i went another route with the big number card im color switching instead of having it fill up the value ๐Ÿ˜ƒ

north spear
#

๐Ÿ˜„ I made it flexible enough

buoyant skiff
#

works like a charm ๐Ÿ˜ƒ

north spear
#

as long as you don't specify min/mx it will not use filling , but just make whole thing colorful

vapid field
#

@north spear just one question i wanted to add a name on banner for updates

  - title: UPDATES
    cards:
      - type: entities
        entities:
          - sensor.custom_card_tracker

but when i click on UPDATES name it will only show custom card tracker
any way to show in table like in frontview, or iam not calling in correct way?

empty heath
north spear
#

@vapid field not sure I understand. Your setup there has nothing to do with my custom card

vapid field
north spear
#

to show it you need:

      - type: custom:card-tracker
        entity: sensor.custom_card_tracker
#

not sure what you mean by using views

buoyant skiff
#
  • type: entity-filter โค
#

can hide stuff ๐Ÿ˜„

north spear
#

yep