#frontend-archived

1 messages · Page 57 of 1

serene sierra
#

thank you guys

fathom tree
#

I used SweetHome 3d. @split pine

serene sierra
#

@north spear can i ask you one fix here for plan-coordinates? What coordinate box follow you when image is very tall now it sticked to the top. thank you.

north spear
#

hmm

#

if your image doesn't fit in 1 screen ?

serene sierra
#

yes

foggy tendon
#

@fathom tree how to export sweeihome 3d files into lovelace compatible images?

#

@serene sierra hmm... i'd like to see an example code of both vertical and horizontal cards together

kind shellBOT
raven nacelle
#

Are the cards getting dynamically updated? Meaning you have different cards showing for different options

fathom tree
#

@foggy tendon You create a picture from the 3d view. It saves as a .png

#

you can render it if you want to make it look more real, but you have to add lighting for it to look good that way.

rotund island
#

just wondering, is there a library where people can share their implementation of lovelace ? i know there is github but i was wondering more like a visual library displaying the cards and by clicking on the picture you can see the code used ?

foggy tendon
#

@fathom tree very nice... how did you colored the rooms differently? and which is the best resolution to use into HASS?

fathom tree
#

Once you draw the walls you make a room just by drawing the shape, then you can modify the room to put color on the floor and walls.

#

I was thinking about a HA specific tutorial for SH3d, seems like that would be useful huh?

foggy tendon
#

@fathom tree hmm... nice and complicated.... 😔

#

@fathom tree yes, very useful, i'll be the first to read it...

fathom tree
#

oh, it'll be a video, you wont need to read much at all.

serene sierra
foggy tendon
#

@fathom tree so you create the floorplan drawing a room one by one?

serene sierra
#

and later just take a screenshot cut and save as jpeg

fathom tree
#

I'm no expert but I can fumble my way into a nice looking 3d drawing.

#

oooh, that looks nice @serene sierra

serene sierra
rotund island
#

hi everybody, i was wondering if there is a library with lovelace custom card examples or integrations ? ;ore like you have in word where you can visually see some nice stuff and give you some ideas ?

wheat current
north spear
#

@rotund island some examples are also in the official docs, linked in the topic

#

Just make sure you scroll to "Cards" section

rotund island
#

@north spear @wheat current Thank you, i've gotten the basics so far, but lack of inspiration if you know what i mean. i have alread read through the doc and seen all the cards. what would be nice what people come up with. 😄 I don't know if i'm explaining myself correctly ? 🤔

kind shellBOT
#

Ludeeus is away for 4m 23s with a message :point_right: I'm out @ocean skiff can answer your queries

north spear
#

@rotund island could try repos from cookbook to see if peopleupdated to lovelace

ocean skiff
#

@kind shell OK I didn't want to call him now

north spear
#

I know @raven nacelle did and has it online, but there might be others

glossy birch
#

@wheat current did you run the lovelace script? yet

kind shellBOT
#

Ludeeus is away for 10m 18s with a message :point_right: I'm out @ocean skiff can answer your queries

rotund island
#

@north spear Thanks i don't know why I din't think about that myself. I will also have alook at the Reddit

north spear
#

check the links on the bottom and try to find repos with ui-lovelace.yaml in them. Usually they have screenshots

rotund island
#

@north spear yep i was quite stupid i look sometimes a them but las time was about 2months ago 😏

north spear
#

Discord down

half osprey
#

I like how you say that on Discord 😉

north spear
#

:))

storm lion
#

well he did also do it with smoke signals.. it can't have reached you yet 😉

hot gyro
#

I have to say I love this lovelace ...

rotund island
#

who doesn't 😄

hot gyro
#

my iphone 😃

#

at least not some of the config but I'll get there eventually

#

to be fair I was made aware by @north spear from early on when I started playing with it ...

rotund island
#

i still have to completely move to lovelace but started falling in a redesign pithole 😄

north spear
#

Get ios 11+ 😃

hot gyro
#

I do have it

#

latest but its the multiple stacks thingy you told me about

#

but I probably go with a single stack for what I really need

#

even the old ui works on the phone with lots of scrolling

#

the app I mean

#

I am thinking of getting a touchscreen and power it via a pi for larger inputs and then potentially wall mounting them

#

for that the tabs are perfect

#

but I could shoot my estate agent for using angled floorplans otherwise I would have just scanned them in ... now I need to build it all from scratch

north spear
#

:-))

hot gyro
#

1st world problems .... 😃

north spear
#

So it’s just a screen size thing

#

😛

rotund island
#

if it was too easy what fun would it be 😄

north spear
#

Hehe

hot gyro
#

well we had that discussion .. 40" 4k monitor in front of me 😃

north spear
#

Yeah

#

Short memory for me

hot gyro
#

yh noon til lunch

north spear
#

I talked to too many people about lovelace

#

😃

#

I am getting old

hot gyro
#

tell me about it ..

cedar coyote
#

Question: is it possible to use in state-image for a door open or closed - icon: mdi:pictogram_name? Or only local stored images?
And what is the setup?

north spear
#

Image in next version, not sure about custom icon

#

See the docs

#

And lovelace changelog

rotund island
#

@north spear just out of curiosity , what do you have in store for the next lovelace updates ? 😄

north spear
#

I have been slacking on helping the guys and my custom cards are not on the lovelace cycle. I think next card will be the thermostat and some fixes for the issues reported on my repo

rotund island
#

well we'll wait patiently 😃 👍

hot gyro
#

hahaha ... who's winning? was with the origianl purchase docs ... scanning now 😃

north spear
#

This week will be slow for me. Big festival in town and I have tickets and holiday from work

raven nacelle
#

Looking forward to the thermostat card...

north spear
#

Also planning to do Alarm compatible with ‘panel: true’

raven nacelle
#

You have the Ecobee, I think

north spear
#

Will run it against various demo setups and my live one

raven nacelle
#

We can get the first version out with the basic functionality - information display and basic controls

half osprey
#

First version can be without controls, tapping on it shows more info

#

Minimum viable product

#

btw, all public pens on codepen are MIT licensed, so make sure you add that to the source of the card

polar kelp
#

Does anyone know just off the top of your head if there's any github isues or PRs concerning organization of ui-lovelace.yaml? Like being able to split the configuration, or include files or so?

#

Like, can we expect that to happen in a reasonably near future?

half osprey
#

It's currently supported but we're going to remove it

polar kelp
#

It is? And why?

half osprey
#

@north spear you don't need to add ?module at the end of imports unless you're importing from unpkg.com.

#

Because we're going to write to your lovelace config

#

And we can't work with includes

polar kelp
#

So... the future holds huge config files with lot's of code duplication, or am I missing something obvious?

#

Like If I want the same card in two views - I have to copy the code?

half osprey
#

The future is where you configure via the UI and never see the YAML

#

The UI might just highlight one block at a time for you to edit

#

includes in configuration.yaml has crippled configuration in Home Assistant so much that we literally had to add a second way of doing configurations

rotund island
#

i like that idea but what if some people prefer the yaml ? like for automations i prefer the yaml over ui and i'm a total noob in yaml

half osprey
#

If people like YAML and a lot of different files, they can create a standalone config pre-processor for Home Assistant

#

It does not have to be part of Home Assistant to be able to work with Home Assistant

polar kelp
#

Well.. I can see a lot of problems with that path - mainly regarding readability of git diffs and the usefulnes of checking out other peoples config on github. But I'll assume you've thought of most of them allready and found this the best path. It'll be interesting to see what the future holds, as always. Thanks!

half osprey
#

Looking at YAML for sharing is not the right way for Lovelace, it's highly visual

#

We'll eventually get a website, people can show off their configs

#

Right click a card to copy it into their config

#

We can even leverage the cloud to send it to your instance right away

#

But all this takes time to build and implement, so help is welcome 👍

polar kelp
half osprey
#

Yes

serene sierra
#

why with actual state 56 im having red label? cant understand```yaml
- type: custom:bignumber-card
title: 'CPU'
entity: sensor.cpu_temp_round
scale: 18px
from: left
min: 0
max: 100
severity:
- value: 25
style: 'var(--label-badge-green)'
- value: 50
style: 'var(--label-badge-yellow)'
- value: 100
style: 'var(--label-badge-red)'

#

getting state from template sensor ```yaml
cpu_temp_round:

unit_of_measurement: '°C'

      value_template: "{{ states('sensor.cpu_temperature') | round(0)}}"
empty heath
#

@north spear Is this a known issue on iOS?

serene sierra
#

i think yes

empty heath
#

@serene sierra Thank you, sir.

north spear
#

Indeed

#

@half osprey thanks for the tip. I just merged the code. Most of it still requires review and adjustments (like the License)

#

I will appreciate more feedback like this

placid geyser
#

Good morning. I try to get the custom dark-sky-weather-card from the forum (https://community.home-assistant.io/t/custom-dark-sky-animated-weather-card/59816) going but it results in my whole weather view being blank and an error in the home assistant log: http://hass.local:8123/static/custom-elements-es5-adapter.js:13:613 TypeError: class constructors must be invoked with |new|. This is on 0.74.0b2. I am not sure how to dig deeper into the problem to fix it. Can someone give me a hint? solved

buoyant skiff
#

morning

buoyant skiff
#

taking courses at work today

#

and all i can think of is making my greeter card 😛

wheat current
#

Make UI great again?

buoyant skiff
#

#fakenews

#

didnt say i would make it great again

wheat current
#

no, was a question, here have a ☕

buoyant skiff
#

coffee at work sucks

#

swamp water is prefeered

atomic citrus
#

can a picture-entity have a navigation path?
Maybe via tap_action?

what are valid parameters for tap_action btw ??

buoyant skiff
#

its in the docs

atomic citrus
#

is it? Couldnt find it

buoyant skiff
#

open the lovelace docs again

#

and its all there 😃

#

trust me

atomic citrus
#

no its not

half osprey
#

I would trust @buoyant skiff on this one

atomic citrus
#

well.. thanks!

#

then please give a hint where to find the documentation answering my question. obviously i am not able to find it

atomic citrus
#

okay. reading this i would assume that toggle is the only option for tap_action. Is that correct?

wheat current
#

That is my assuption as well

#
By default, you will get more-info-dialog but using tap_action you can directly control entities that have on/off states.
atomic citrus
#

well, if that the case, i already read this. but i assumed it would not be the answer to my question 😃

#

or hoped lol

empty heath
#

When I read it I see two possible options: dialog (default) and toggle 🤷🏻‍♂️

atomic citrus
#

right... but i was hoping for something like a navigation path.. 😃

empty heath
#

Maybe in the future! 😊

#

Maybe in the future! 😊

#

Uh-oh. We may have a Discord outage again.

atomic citrus
#

👌

#
018-07-18 10:34:14 ERROR (MainThread) [frontend.js.latest.201807080] https://...../frontend_latest/b8e8990946547661bcfb.chunk.js:618:41565 TypeError: undefined is not an object (evaluating 'i.length')```
#

i get this quite often

#

is there any way to track down where this might be resulting from?

half osprey
#

Fixed that in beta

dense roost
#

@atomic citrus i actually really want navigation path within picture entity as well. I'd also really like state images on picture entities for what I would like to do.

atomic citrus
#

Adding an info bar to a plain image would also be nice!

wheat current
#

@atomic citrus info bar?

atomic citrus
#

i mean the bar on the bottom of a picture-entity for example showing the current state

wheat current
#

Aha

atomic citrus
#

this line combined with some templating = super nice

wheat current
atomic citrus
#

thats not what i want

#

@buoyant skiff now this is nice!!

wheat current
#

It is exactly what you described 😉

buoyant skiff
#

that was a simple one

atomic citrus
#

i guess

buoyant skiff
#

made a some other

#

i posted a transmission card the other day

dense roost
#

@wheat current oh geez I got confused. What I meant to say is I wanted state images in picture elements, and navigation in picture entity

#

@buoyant skiff transmission card?

buoyant skiff
#

thats all picture elements

#

with toogles and workable stats

atomic citrus
#

doesnt pasting images into discord work anymore?

#

i am aiming for something more basic 😃

buoyant skiff
#

not in this channel

atomic citrus
#

ah okay

buoyant skiff
#

have to paste in lounge

#

and then copy link

#

freeki that is basic

atomic citrus
#

something like this.

#

just an image with basic info.
And on tap it should just jump to the security view

buoyant skiff
#

navigation path and picture glance

atomic citrus
#

but picture glance doesnt have text

#

does it?

buoyant skiff
#

almost exactly how you want it

half cradle
#

guys just sarted using this and find it a little hard toget around

buoyant skiff
#

lol

#

hows that spelling going ?

half cradle
#

i have a learning issue mate so its not to bad

#

i have been working on HADashboard and found the setup a lot easier

north spear
#

@vapid field @buoyant skiff @empty heath the cardtracker-card changed. We made it more dynamic and supports now also checking custom_components as well. There are breaking changes 😦

buoyant skiff
#

i know

#

@wheat current did a pr on rpi power and i changed on sickrage

atomic citrus
#

@buoyant skiff thats not what i was aiming for.... no text, just the icon

#

like i said

#

or can this be changed?

buoyant skiff
#

so that leaves you with picture elements 😃

atomic citrus
#

i guess

subtle rune
#

You can do almost anything with picture elements. It's awesome

buoyant skiff
#

@subtle rune done anything fancy yet ?

#

curious since i based most of my early work of your ha config 😃

warm stone
#

Can you break up the lovelace config? Not so much packages but !include type?

placid geyser
wheat current
#

@warm stone for now that should work, but it will be removed

warm stone
#

So must be one big config. Ok.

wheat current
#

correct

#

500+ lines will not suprise me for some users

warm stone
#

Is there a reddit or blog of pictures from what people have done so far? Don't want to get coding then be like 'oh what it can look like that' 'start over'

subtle rune
buoyant skiff
#

nice 😃

subtle rune
#

Having grand plans for the rest though!

buoyant skiff
#

hehe just make sure you have the time

#

cause once you get started

#

you will loose a couple of days 😛

warm stone
#

I have been sick the last few days. I really should have started it then since I really haven't done anything else lol. Kinda stuck on the couch while I let my partner get some sleep.

subtle rune
#

@buoyant skiff Vacay 🏖

buoyant skiff
#

haha nice

#

got 1 week to go

#

then im on vacay 😄

half osprey
#

@subtle rune nice UI !

#

Love the use of the badges on the plant card

#

Not sure why you keep track of the temp of your partner 😉

wheat current
#

You don't?:O

half osprey
#

I wonder what the best approach is to get some more text available for titles in glance cards

#

I know that in the beta we are now making it possible to define the width (and thus how many entities)

#

@subtle rune can I share your screenshot on the Home Assistant social media ?

atomic citrus
#

does this look like a valid statement?
Because it does not show the element over the image

- type: picture-elements
        image: https://images.pexels.com/photos/846288/pexels-photo-846288.jpeg?auto=compress&cs=tinysrgb&h=240&w=495&fit=crop
        elements:
          - type: state-label
            entity: input_select.status_alarm
            style:
              top: 50%
              left: 50%```
raven nacelle
#

@atomic citrus The indentation is off..please check the docs carefully. I have an example in my repo as well.

warm stone
#

@half osprey do you have a page with examples of peoples lovelace setups?

half osprey
#

No

#

I have some plans about a Share the Love section

#

with interactive configs with fake states

#

Like the demo

#

However, I also have a very long to do list…

buoyant skiff
#

share the needle section ™

#

xD

warm stone
#

Someone needs to make a "share your frontend" reddit hint hint so I have something to plan and work towards.

wheat current
warm stone
#

What are the update things?

serene sierra
#

can anyone explain me how lovelace ui handle rows?

wheat current
#

Overview of the version of various custom cards/components I use

serene sierra
#

when im using both - type: horizontal-stack and - type: vertical-stack after 4 rows start something strange and card disorder

warm stone
#

Does it move when you resize the window to be smaller

serene sierra
#

4 cards here, first 3 are same and the last one is plan-coordinates

warm stone
#

Was talking about resizing the browser window in general does that move the cards around and does that effect what you are talking about. I am off to bed now but it seems like it is justa sizing thing

serene sierra
#

so why it can be?

warm stone
#

open the side panel and close it you will find they move and place themselves to fit

serene sierra
#

not is not sizing fore sure im undrestand what about you talking

#

Please compare the last two screenshots and see that the cards in different sequences

subtle rune
#

@half osprey I guess that's fine 😃

#

Haha. "Stefans room" was too long

serene sierra
#

with the same screen size

half osprey
#

I really like your use of colors

#

do you have a Twitter handle I can tag in the message ?

#

No, @subtle rune

subtle rune
#

@half osprey IsaAlstrom

dense osprey
#

Is it possible to show my motion sensors in a glance card, with the time since last activation shown as a caption for each sensor? would need to show a formatted version of eg: states.binary_sensor.kitchen_motion.last_changed

#

i think i want to override the state with a value template or something, for glance entities

#

is that possible?

#

Currently a glance card just says "clear" or "detected" under each sensor

half osprey
#

With 0.74 showing last changed will be possible for entity cards

dense osprey
#

cards:

  • type: glance
    title: Motion Sensors
    entities:
    • entity: binary_sensor.top_floor_landing_motion
      name: Top Floor

      Instead of just clear/detected, show last activation time:

      value_template: {{ states.binary_sensor.kitchen_motion.last_changed }}
#

this is what i want, i think - will file an issue, thanks

wheat current
#

Templates are not going to happen, defining an attribute to show under the state object might

#

Or as the object value in this case

dense osprey
#

hmm, well there isn't an attribute of the motion sensors that contains a nicely formatted "5 mins ago" type of value

#

so i think some sort of template is needed to be able to display the timestamp nicely

#

perhaps i could make a new templated sensor that matches each real sensor, templating the value from clear/detected to -> "5 mins ago" or whatever. seems a shame to create additional sensors just for display purposes though.

molten abyss
#

So i am using picture card to display network traffic graphs from another system. is it possible to use navigation_path to open a url from a different host?

calm rock
#

Hi ,! , im testing the big number card , and cant get the bar to show up , just the number and name , any ideas what i may be missing ?

half osprey
dense osprey
#

is it the case that all the lovelace ui logic is clientside in js, so using python templates for values isn't convenient in arbitrary places like glance cards, since the state of entities is already sent to the client elsewhere without modification based on the lovelace config?

half osprey
#

Yes, Lovelace is client side only

dense osprey
#

from using older versions of hass, putting a value template in the glance config didn't seem too weird to me, but i can see why people are strongly opposed now

half osprey
#

If you want to use advanced things, we have documentation on how to create custom cards in JS

dense osprey
#

yeah

#

is it possible to attach a new attribute to an entity using a value template, rather than make a new templated copy of an entity?

#

so i could add a nicely formatted time-since attrib to a sensor

half osprey
#

no

dense osprey
#

seems a shame to add loads of templated copies of entities just for display purposes

#

but happy to do so if that is the official way

half osprey
dense osprey
#

cool. i think it's useful in general to be able to see that for various things

raven nacelle
#

That was one of the primary things I was using custom_ui for.

north spear
#

@serene sierra could be done

#

you can already do it I think with a template sensor

buoyant skiff
#

beer card = best card

frosty pelican
#

lol

empty heath
#

Please do not use the lounge to post images that are intended to be in other channels. Instead, please use an image sharing service, such as https://imgur.com/.

@buoyant skiff I have given you the Accio role, which allows you to paste/attach images in almost all of our channels, including this one.

buoyant skiff
#

tnx 😃

empty heath
#

Just please don't abuse the privilege! I enabled attachments for you because your cards are amazing examples of how powerful Lovelace is, and how it can be used.

buoyant skiff
#

i promise i wont 😃

molten abyss
#

I forget what it is called, but the card that pops up when a component doesn't work on start or some other notification ... is it possible to have that show in Lovelace? If Wink doesn't come up properly, i am not seeing the notification and all the sensors/switches are missing.

tired quail
#

are you thinking of the persistent_notification cards?

molten abyss
#

yes? I never got them to work when i tried to invoke them, but the system (?) ones always showed. I assumed they were different on some level

buoyant skiff
#

those doesnt show currently

#

have tried also

#

doesnt work

molten abyss
#

kk

buoyant skiff
#

dunno if its intended or if its broken

#

but again its all experimental 🤷

molten abyss
#

yup yup ... just wasn't sure if i was just not swift enough to noodle it through 😃

tired quail
#

i thought i saw a post or comment somewhere about reworking them to be different than standard entities

wheat current
#

Can get them to show with the monster-card:

          include:
            - entity_id: persistent_notification*
tender wasp
molten abyss
#

cool .. ty!

vapid field
#

oi @north spear @wheat current cardtracker-card changes folow instruction but seems im missing something
do i still needs the custom_components, sensor and custom_cards.py and the configuration.yam with custom_cards:?
i see the card there but is empty
i have tryed with and with out above sets

wheat current
#

Did you define the correct tracker?

- type: custom:tracker-card
  title:
  trackers:
    - sensor.custom_card_tracker
molten abyss
#

is there a centralized place for the various custom cards that have been cooked up? 'cause that looks intriguing

wheat current
#

the same repo as the tracker component "asks" for new versions

molten abyss
#

good deal, ty!

vapid field
#

@wheat current i have like is instructions on github

- type: custom:tracker-card
  title:
  trackers:
    - sensor.custom_card_tracker
    - sensor.custom_component_tracker
wheat current
#

And in /config/custom_components/ you have both:
-custom_components.py
-custom_cards.py

vapid field
#

i have custom_cards.py and sensor folder

#

i couldnt find link to the custom components to see if there was changes

vapid field
#

use to be in the git under card seems isnt there now

#

404

wheat current
#

Try again 😉

tidal frigate
#

Is it possible to create more than one ui configuration for lovelace? Back in the day I used openHAB and one of the things that I really liked was that I could create different sitemaps. For example one for the kids, one for me, and one for guests.

vapid field
wheat current
#

The reason for that is that its no longer there 😉

vapid field
#

do i still need sensor folder and the configuration.yaml setting custom_cards: ?

wheat current
#

You need to add custom_cards: to configuration.yaml, but you don not need to dowload the sensor, it will do that for you 😉

vapid field
#

@wheat current working again thanks for the updates
great job!!!

grand veldt
#

Anyone knows where I can get some info how to style Lovelace (colors, fonts etc). I guess there's a CSS somewhere?

placid geyser
half osprey
#

@grand veldt that's the existing Home Assistant theming

grand veldt
#

@half osprey Great, thanks!

dense roost
#

Is it possible to have a card stretch across the screen, above all the columns lovelace automatically creates

half osprey
#

you can hack something together with putting a vertical stack with panel: true and then adding your own columns with horizontal-stack

empty heath
simple jolt
#

Is there a way to use navigation path within either an automation or script that whenever motion is detected the interface would move to t camera view?

fossil kindle
#

how do i get @empty heath github

empty heath
#

~dale3h

kind shellBOT
#

AKA Dale Higgs, the guru and codesmith ninja (aka Jinja Ninja) who cures most of our hair-pulling: https://github.com/dale3h/homeassistant-config

If you have received any significant help on the Home Assistant Discord server, it is likely due to Dale's expertise and general good-natured spirit.

fossil kindle
#

@empty heath how do i get all your sensors ??

empty heath
#

The ones at the top should all be in packages/weather.yaml

#

The stuff in column 1 and column 2 is in packages/system.yaml, and the stuff in column 3 is in packages/utilities.yaml

fossil kindle
#

ok i try thx..

polar kelp
fossil kindle
#

@polar kelp From sweden ??

polar kelp
#

yes

empty heath
#

@polar kelp You. Are. Awesome.

#

Nice work, sir!

polar kelp
#

Wow. Thank you!

empty heath
#

Have you set up a file sensor to read when ui-lovelace.yaml changes, and use that to trigger an automation that automatically rebuilds it? 😉

polar kelp
#

Haha! Awesome idea.

half osprey
#

Awesome!

polar kelp
#

I guess when I've been into home automation a while longer things like that will come to me immediately as well...

half osprey
#

Now next a custom component that overrides the websocket command to get the Lovelace UI and have it run your code

empty heath
#

@half osprey 😮 Is that actually possible?

half osprey
#

Yeah

empty heath
#

Can we inject middleware into the websocket?

#

Holy Python codes Batman! 😍

half osprey
#

Well sorta, but you can also override the command

empty heath
#

Gee thanks @half osprey, I guess we won't be seeing @polar kelp for a few hours while he hacks together your custom component idea. 😂

half osprey
#

Create custom component, have it depend on frontend. Look in frontend init py how we register websocket command for Lovelace, copy that to custom component

#

And edit

#

Now load custom component

#

Custom components exist to do these crazy experiments

rotund island
#

wow love your lovelace cards

calm rock
#

@empty heath , by "forcing " the layout in three columns with the wide header , will the UI still auto adjust when on mobile ?

empty heath
#

It should, yes.

calm rock
#

good! tks

north spear
#

Not really. It will squeeze all in 1 column. Won’t rearrange columns so you get full width of cards. Than again I might be wrong

empty heath
#

This is how it looks :’(

warm stone
#

Can you not have a thing with websites where it detects the screen resolution / device and then displays a "mobile" version instead?

empty heath
#

It might be possible, but it already does that when NOT using this layout.

molten abyss
#

short of adding 8 more devices to my guest lan

#

is there a way to get to the "old" front end with lovelace enabled and set to default? similar to how you can do /lovelace/

tender wasp
#

/states

buoyant skiff
#

.away courses and meetings

kind shellBOT
#

Toast is away! courses and meetings :wave:

rocky merlin
#

Hi guys, my name is Tomas and I just joined. I am a homeassistant nerd and just going into lovelace. I have a question about custom cards. I want to be able to inherit let say the HuiPictureEntityCard and alter it html output to reuse the card basic functionality. Is that possible (I am a javascript noob)
like this:
class PictureEntityStatus extends HuiPictureEntityCard {
static get template() {
return html` ...

#

I am not sure how to import the js from package

half osprey
#

Yes. You can get the class for that element using :

const HuiPictureEntityCard  = customElements.get('hui-picture-entity-card');

class PictureEntityStatus extends HuiPictureEntityCard {
#

But there is no guarantee from our end that the class is going to stay the same

rocky merlin
#

Ohhh it is that easy 😃 thanks!! ofc there are no guarantees I get that but thanks alot!!

dense roost
#

@empty heath that's strange it's working for me perfectly

north spear
#

@dense roost using the same vertical/horizontal stack? or using just normal cards and existing flow ?

dense roost
#

Sorry I should have added more info. I still have a lot to do with this wall tablet interface. You can't actually see the first panel because it's only 1px tall, but it stretches the entire screen, which stretches the Lovelace interface from edge to edge like I wanted. http://imgur.com/80u9djx

buoyant skiff
#

i like the cartoon images

#

nicely done

north spear
#

yeah, I wonder how that looks on a narrow mobile screen

buoyant skiff
#

think it would look good

atomic citrus
#

is this statement right?? because it displays the label BELOW th image....

- type: picture-elements
        image: https://images.pexels.com/photos/846288/pexels-photo-846288.jpeg?auto=compress&cs=tinysrgb&h=240&w=495&fit=crop
        elements:
          - type: state-label
            entity: input_select.status_alarm
            style:
              top: 50%
              left: 50%```
atomic citrus
#

oh.... seems to be a firefox issue.
the IOS app looks okay (except the font is too small)

#

the picture-entity could really use a navigation_path as an on_tap parameter!!! 😃

buoyant skiff
#
This is probably because your version of Firefox doesn't have custom components supported or enabled. Please set to true in your about:config the following settings: dom.webcomponents.customelements.enabled and dom.webcomponents.shadowdom.enabled
#

noticed that it fixes the ui even if your not using custom stuff

atomic citrus
#

about::config? in HA ?

buoyant skiff
#

no ff

atomic citrus
#

yeah..

#

didnt even know there was about in ff 😃

buoyant skiff
#

well there is and its just like chromes about it can break the browser

atomic citrus
#

wow... @buoyant skiff where can i find those settings??

buoyant skiff
#

there is a searchbar ?

#

so type in the value you want to edit

#

not rocket science

#

😃

atomic citrus
#

the searchbar goes off to google....

#

lol

dense roost
#

@atomic citrus about:config

atomic citrus
#

oh... got it!

dense roost
#

@north spear looks terrible on a phone, but it's only meant for a wall tablet I have. Hoping the new user system will allow each user to have their own views not visible to other users as this would be the only view for the tablet.

atomic citrus
#

that fixed it! THANKS!

loud vault
#

does customui work with lovelace?

atomic citrus
#

can i change the font for picture elements?

buoyant skiff
#

you have to make your css file for ha

proud sky
#

how to install the new lovelace UI, i dont get it😂

buoyant skiff
#

make ui-lovelace.yaml

#

then fill it with content

#

a good idea is to read the docs

proud sky
#

thanks!!!

buoyant skiff
half osprey
#

Lovelacers, I need your help !

#

We're creating a Lovelace gallery with all different permutations of the configs for each card

#

So that it's easier to develop/tweak and see the impact it will have on all different ways a card can look

#

So where all of you come in is that we need example card configs contributed

#

On line 9 you can see the different configs

half osprey
foggy tendon
#

can somebody tell me why i get these errors? I followed the proper instructions...

#

2018-07-19 16:02:10 ERROR (MainThread) [frontend.js.latest.201807080] ocal/custom_ui/dark-sky-weather-card.js?v=4:89:67 Uncaught TypeError: Cannot read property 'state' of undefined
2018-07-19 16:02:13 ERROR (MainThread) [frontend.js.latest.201807080] local/tracker-card.js?v=0:96:58 Uncaught TypeError: Cannot read property 'replace' of undefined

sour pilot
#

Hello, is there any way to get the glance icons to do something on click, rather than opening up the details panel? I want to use it to create buttons which switch the scene of my lights

#

I think there is tap_action: toggle for picture-glance but not glance

buoyant skiff
#

@foggy tendon get help from the dev of that card

foggy tendon
#

Don't remember his nickname

buoyant skiff
#

where did u get it from ?

foggy tendon
#

from here many messages ago...

buoyant skiff
#

errr

#

here it is

#

go seek help there

foggy tendon
#

@wheat current i installed custom_components, but i get this error:
/local/tracker-card.js?v=0:96:58 Uncaught TypeError: Cannot read property 'replace' of undefined

#

@buoyant skiff ok i found the dev...

buoyant skiff
#

lol ludeeus doesnt have anything to do with that

foggy tendon
#

hmmm......

wheat current
#

That is somewhat correct, I have worked on the backend of that card.
Try changing /local/tracker-card.js?v=0:96:58 with /local/tracker-card.js?v=0.96.58

raven nacelle
#

@half osprey So, for other demo cards, we just to create those .js files in the demo directory?

#

Also, lines 5 through 58 are configs. What about the other lines after that?

foggy tendon
#

@wheat current which is the difference? they seems equal

half osprey
#

@raven nacelle rest is all automatic

foggy tendon
#

@wheat current i get that error and no card

raven nacelle
#

Meaning, I can use similar lines that you have in the glance demo card?

wheat current
#

@foggy tendon Difference is : vs . in the version tag

foggy tendon
#

ahahahah

wheat current
#

If that do not help

#

~share your ui-lovelace.yaml file

kind shellBOT
foggy tendon
#

ok but still the same error and no card appearance

wheat current
#

Seems ok, what is the content of /config/www/ ?

foggy tendon
#

among the others i have tracker-card.js into /config/www/

#

and all the other .js files

#

@wheat current now i get the foillowing:

#

/local/tracker-card.js?v=0.96.58:1:1 Uncaught SyntaxError: Identifier 'TrackerCard' has already been declared

wheat current
#

okei...
In HA UI under templates, paste this:

{{ state_attr('sensor.custom_card_tracker','tracker-card')}}
{{ state_attr('sensor.custom_component_tracker','custom_cards')}}

What does that say?`

foggy tendon
#

{'has_update': True, 'local': '0', 'remote': '0.1.0'}
{'has_update': True, 'local': '1.1.9', 'not_local': False, 'remote': '1.1.14'}

wheat current
#

wierd, did you try restarting?
Incognito mode?

foggy tendon
#

yes i restarted.... what is incognito mode?

wheat current
#

~lmgtfy incognito mode

kind shellBOT
foggy tendon
#

ah ok i was thinking something related to HASS... no i have no incognito mode

wheat current
#

No, but try using that

foggy tendon
#

now i get this:

#

/local/tracker-card.js?v=0:96:58 Uncaught TypeError: Cannot read property 'replace' of undefined

#

i did not changed again into 0:96:58.. i still have 0.96.58

wheat current
#

For got to save?

#

changed the wrong file?

foggy tendon
#

in incognito mode i get the same error and no card

#

no, double checked all

wheat current
#

Anything in the dev-console?

foggy tendon
#

what?

wheat current
#

Sorry to be harsh, but unless you know how to do basic troubleshooting, you should not use custom stuff...

foggy tendon
#

with the previous card-tracker all was working good... i installed custom components.py and changed card-tracker into the new tracker-card and i got all these errors

wheat current
foggy tendon
#

ok

half osprey
#

@raven nacelle yes

raven nacelle
#

Ok...let me start with one demo card PR to make sure that I understand.

half osprey
#

this adds 2 new demo's and 2 new configs

raven nacelle
half osprey
#

wait 1 minute, I just merged it

raven nacelle
#

ok

half osprey
#

now it shows 3 😃

raven nacelle
#

Its there 😃

half osprey
#

you can also run the gallery locally

#
cd gallery
script/develop_gallery
#

it does not need a dev Home Assistant environment

raven nacelle
#

that is the easiest thing to set up (at least for non devs) 😉

#

I think I understand this now. I can add a few additional configs/cards

half osprey
#

So right now, it won't be possible yet to change states

raven nacelle
#

Yeah....it just shows a dialogbox Showing more info for light.bed_light

buoyant skiff
#

gonna take a whack at making a demo card too

#

just need to make my own cards first 😃 think i can come up with something great

#

been going bonkers with gauges

foggy tendon
#

@wheat current Now i get also this:
/local/bignumber-card.js:86:52 Uncaught TypeError: Cannot read property 'state' of undefined

#

i think something related to the last changes...

#

as since yesterday all was running good... i only switched to the last HASS release 0.73.2

wheat current
#

1: have you done what I told you to do?

If yes, try this:
1: Stop home assistant
2: Add this ?v=0 to the end of all cards in ui-lovelace.yaml, should be added after .js
3: Start home assistant.
4: Run the service custom_cards.update_all

#

if that fails, backup ui-lovelace.yaml, create a new file, and add back one card until it fail again.

foggy tendon
#

@wheat current you mean this? custom_cards.update_cards

#

i don't have custom_card.update_all

wheat current
#

That may be the issue...
Do you have custom_components.update_all ?

foggy tendon
#

yes

#

i have it

wheat current
#

Run that, and wait 1min, then restart home assistant

#

after that you should have custom_cards.update_all to

foggy tendon
#

ok, finally i got it.... thanks a lot

#

and the card appeared again

#

But now i get this for all the components

#

Uncaught SyntaxError: Identifier 'MonsterCard' has already been declared

#

maybe i must put other version numbers?

wheat current
#

Clear cache

weary folio
#

hi...how to make a switch to have a state from a device tracker....

buoyant skiff
#

is it for lovelace ?

wheat current
#

No

weary folio
#

my template switch don't work

#
  • platform: template
    switches:
    pc:
    value_template: "{{ states('device_tracker.ciprian_pc') }}"
    turn_on:
    service: switch.on
    data:
    entity_id: switch.pc
    turn_off:
    service: switch.off
    data:
    entity_id: switch.pc
buoyant skiff
#

not in this channel

long cosmos
#

So is lovelace the future of HA? Should I stop learning to configure the old interface and just concentrate on learning lovelace?

buoyant skiff
#

would say that its a really good replacement

#

sooo much better

#

less clunky and more open

#

not limited by one row

long cosmos
#

I don't speak the HTML and CSSs and JSs so good. Is there a list of configs people have made so I can see what I need to do? A library of cards etc..?

buoyant skiff
#

just look at the lovelace docs

#

they are really simple

long cosmos
buoyant skiff
#

that

long cosmos
#

okay. thanks.

buoyant skiff
#

np

#

all you basically have to do is create ui-lovelace.yaml

#

and start adding content

#

and by content i mean the link i provided 😃

long cosmos
#

lol, okay. does that file basically replace the groups, customize, etc yaml files?

buoyant skiff
#

groups

#

nothing is grouped

#

its all one doc

#

but less clutter

long cosmos
#

yeah, I guess thats' what I meant.

buoyant skiff
#

stopped using custum ui all together

#

just using lovelace

long cosmos
#

i was just learning custom ui and figured before I got too deep if it was smart to just make the switch now.

buoyant skiff
#

thats a lovelace card

#

with button toogles etc

#

all working stats

sour pilot
#

is there a guide or anything about creating your own lovelace cards?

buoyant skiff
#

yes

#

its call the docs

#

its all in there

sour pilot
#

ah. didnt spot the dev docs, thanks

buoyant skiff
#

might wanna check on top next time

#

its in the header 😉

sour pilot
#

that's just too easy 😉

wheat current
buoyant skiff
#

ppffttt

wheat current
#

@buoyant skiff got a RPi Power status card yet? 😛

buoyant skiff
#

naa

signal pine
#

oh that transmission card is gorgeous

buoyant skiff
#

thank you 😃

signal pine
#

god i really need to sit down with lovelace

buoyant skiff
#

that card is made with picture-elements

#

so simple to make beutiful cards

signal pine
#

apparently!

#

maybe that'll be my weekend project. transition my current groups and shit into lovelace

#

and then start playing with the new shit

buoyant skiff
#

my untappd card for home assistant

#

next project is to make a greeter card

sour pilot
#

is that just picture-element too?

buoyant skiff
#

yes

sour pilot
#

nice

buoyant skiff
#

imho the most powerful card there is

#

so much possability

sour pilot
#

yeah that seems a lot easier than writing your own cards to do that stuff

#

got any more examples?

buoyant skiff
#

with running processes, power toogle and uptime and firmware version

cunning pagoda
#

so can someone explain lovelace to me read the blog post but still not grasping the need besides a speed factor trying to figure out if i want to make the switch and resources to help if i start it as i got my install pretty much setup now

buoyant skiff
#

click on the link in the header

#

all the info is there

#

the header in this chat

wheat current
#

@buoyant skiff can you use attributes or just states?

buoyant skiff
#

states

#

why thumbs doing ludeeus ?

vapid field
north spear
#

Attributes are for gods :-))

buoyant skiff
#

sure you can use attribues

wheat current
#

I want attributes. 😅

north spear
#

Or beer

buoyant skiff
#

beer is good

#

beer is nectar of the gods

#

you can use attributes 😛

#

just havent bothered with it

wheat current
#

Oh nice 👌

#

Much easier to make a sensor with alot of attributes then a lot of sensors 😜

frank garnet
#

@buoyant skiff Are you publishing the source code of your cards somewhere?

buoyant skiff
#

not as of yet

#

working on getting it perfect

#

however i will provide demo cards for homeassistant

frank garnet
mild veldt
buoyant skiff
#

its a card

#

its not a custom card

#

never said anything about custom

mild veldt
#

really? I'll be interested to see how you accomplished this 😃

wheat current
#

if you scroll up here a few days, he shared one of them 😉

buoyant skiff
#

its all in the chat 😃

#

just look at the picture element section

mild veldt
#

Need that untappd 🍻

buoyant skiff
#

untappd is a custom_compenent

#

very much alpha

#

still working on that

#

will be available here

#

once im good with the source

wheat current
#

soon ™

buoyant skiff
#

and know what i want in the ui

#

hey thats my trademark 😛

wheat current
#

a component/platform, should just make the info avaiable, it should be up to the user how it's presented 😃

#

Just throw it in there ant let the user deside 😉

buoyant skiff
#

cough

molten abyss
#

what entity do you use to show the value of a sensor, instead of just its icon?

buoyant skiff
#

the user in this case being me

#

entity-label

#

entity-icon

#

simple

molten abyss
#

then i am lost ...

buoyant skiff
#

show me what your trying to do

#

use hastebin

#

post the yaml snippet

molten abyss
#

i have a picture-glance, put a sensor that has outside temp for a value ... it just shows the thermometer icon and i have to click to show temp

buoyant skiff
#

cause thats how its supposed to work

#

use picture element

molten abyss
#

ok. haven't played with that one ... but that'll show the values?

buoyant skiff
#

why would i recommend it if it didnt ?

molten abyss
#

👍

wheat current
#

Anyone made a card for Tautulli?

mild veldt
#

@buoyant skiff AH! Looked over picture element. Skipped over those docs as I thought they were for floorplan specifically, which in a sense they probably were designed for, but now my peanut-sized brain is seeing the light 😉

#

would it make sense to start a repo with picture element lovelace config snippets to produce cards as you have? they are definitely the most powerful and therefore require the most setup and trial/error, I would think

buoyant skiff
#

most people saw the floor plan

#

i saw something else

#

the floor plan was the last thing i saw

mild veldt
#

and I think we're all grateful that you have

sour pilot
#

What do you use to add static text (like a label) to a picture-elements?

buoyant skiff
#

either by making a sensor template

#

input_text seems to not work

#

or adding unit of measurement to sensor

sour pilot
#

Ok, I see, thanks

buoyant skiff
#

that got me thru some hurdles 😄

#

np

mild veldt
#

oh man, now I'm itching to get out of work so I can play with picture elements!

buoyant skiff
#

fake being sick

#

😛

mild veldt
#

3smart

#

💀

buoyant skiff
#

feel free to show me your creations

#

would love to compare

#

when you got some picture element cards

vapid field
#

@wheat current i see there is card tracker improvemente where is the link to get the sensor.custom_components?

buoyant skiff
#

@wheat current wonder if the card tracker discussion isnt better suited to #330944238910963714 ?

#

isnt really lovelace ui creation

mild veldt
#

@buoyant skiff my first thought was a custom google home card, but then you said input_text doesn't seem to work 😦 Wanted to create one that could send TTS messages easily. Might create one that hooks into the GH local api: https://rithvikvibhu.github.io/GHLocalApi/

wheat current
#

@buoyant skiff The tracker card is ;)
@vapid field no need for the sensor anymore, just the card and main component

buoyant skiff
#

mostly its about configuring it

#

seems kinda redunant to have it here

topaz dust
#

Is it not possible to control a lock when you add it to a picture glace card? Nothing happens when i press the icon.

#

Controling alarm works fine

buoyant skiff
#

no

#

its just a glance

#

no option for toggles

topaz dust
#

But for alarm i get the option. Whats the difference

buoyant skiff
#

no idea what that means but glance is what it says it is a glance

#

its all in the docs

topaz dust
#

Well I have my alarm and my lock in the same card. For the alarm I can klick on the icon and the control panel opens up. That don’t happen for the lock. So something is different

#
views:
  - icon: mdi:home
    id: home
    title: Glances
    cards:
      - type: vertical-stack
        cards:
        - type: picture-glance
          title: Villa MiFi
          entities:
            - group.ytterbelysningen
            - alarm_control_panel.name_alarm
            - lock.huvudentre
            - sensor.netatmo_inne_temperature
          image: /local/VillaMiFi2.png
#

i can press the group icon and it changes value. i can press the alarm icon and get the alarm panel, i can press the temp sensor and get the temp graf, but when i press the lock nothing happens, must be something wrong

#

from the docs: Show an image card and corresponding entity states as icon. The entities on the right side allow toggle actions, others show the more-info-dialog.

vapid field
#

technically the whole "group" configuration get's far less important with lovelace, right? or will it even be deprecated? haven't read anything yet about this, but looking at my config after the migration, groups has nearly no use for me anymore...

half osprey
#

You are right

#

Groups are now going to be mainly useful for automation

#

The goal of lovelace is to no longer store UI related entities in the config

#

Or UI related info in entities

#

Having to maintain less groups -> faster Home Assistant

signal pine
#

so you'd still use a group if you want to bundle lights per room for scripts and autos (e.g. "hey google, turn of my living room lights") ?

#

if so, that makes things a lot easier

#

and cleans up my groups.yaml lol

half osprey
#

If you want to bundle lights, use a light.group

#

That's a special group for lights

signal pine
#

oh shit, i forgot about that hah

half osprey
#

Which is better because it knows how to represent average brightness etc

#

We have an idea to add devices and have entities be related to devices. And then for devices we're going to add areas

#

And then we can start turning areas on/off

#

Getting ahead of myself here, first users 😉

signal pine
#

heh

#

sounds like some good stuff is coming though!

vapid field
#

ok nice, interestingly the fact that groups were more or less "missused" for the frontend layouting/structure was one of the first things I didn't see the benefit in, now with lovelace the cleaner seperation between literal "groups" and the ui/frontend is a major architectural improvement imho ... love it 😄

half osprey
#

haha well it took me almost 5 years to realize that that we were abusing groups 😉

vapid field
#

oops, sorry for that, not meant to be offensive 😄 I know that most of these later "weird" ideas nearly always started as a fantastic one 😉

half osprey
#

Did you miss that or was it not clear from what is written ?

#

haha no offense taken

vapid field
#

the separation was clear, but the future of the groups is not explicitly mentioned

half osprey
#

Whenever I write down that something might go away or is deprecated, pitchforks come out 😉

vapid field
#

especially this: "entities like groups for the sole purpose of showing them on the frontend." made me curious if groups might be deprecated in the future

#

yes, believe that , but honestly speaking if there are specific "light" groups, and all kinds of "collection" like components I can see chances that they might be seen as redundant ... but personally I would also not see them as obsolete ... only from the entity organization point-of-view they are still important...

empty heath
#

@buoyant skiff We need to figure out/create a UI element that is strictly for “labels”

buoyant skiff
#

yeah

#

also fixed positions should be easy to do

#

since it bases of css unless its already possible 😃

empty heath
#

Hmm, is there currently anywhere that we could apply the :before() or :after() CSS stuff to?

#

I also just want an “elements” card (basically a picture elements without requiring a picture)

#

@buoyant skiff Did you see the discussion of a custom component to generate Lovelace UI file from a set of files?

half osprey
#

Just use a transparent image ?

empty heath
#

I suppose that could work, but it still requires an image 😜

#

Does it support b64 strings?

buoyant skiff
#

no i have not

#

been kinda busy at work

#

catching up on stuff

empty heath
#

@buoyant skiff Someone wrote a script to generate, and I threw out the idea of using a file sensor and an automation to rebuild the ui-lovelace file anytime the files change. But then balloob came in from left field and threw out that it would be possible to do with a custom component by overriding the Lovelace command of some sort.

buoyant skiff
#

hmm nice

#

that could be really useful

#

something i would love is the ability to use markdown inside picture elements

empty heath
#

I think it would be a good “for the moment” thing, but we really need to focus on a solid UI for editing the Lovelace UI. (Drag and drop, copy/paste, etc)

#

You can’t have a markdown card inside of a picture elements card?

buoyant skiff
#

not that i know of

#

is it possible @half osprey ?

half osprey
#

not right now

wheat current
#

@buoyant skiff What is the syntax for using attributes in picture-elements, can't find it in the docs

buoyant skiff
#

would be the ultimate card if it was

#

@wheat current cant use that with picture elements have to use the beer card 😛

wheat current
#

🤦

#

I don't want that 😛

half osprey
#

@empty heath use this as image source data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7

#

Although i guess it will make the card 1px high

#

You will need to create your own transparent one

empty heath
#

Ahh, ok. Thank you sir, I will play around with it when I get a moment!

mossy gale
#

@buoyant skiff love those gauges, is there a link anywhere to how you created those?

buoyant skiff
#

those are made by @north spear

mossy gale
#

ah ok, wonder if he posted anything, will do a search on his name

buoyant skiff
#

thats how i want my greeting card

#

it would be possible if i had markdown in picture element

mossy gale
#

I havent even started in Lovelace yet, feel that as I havent got everything sorted in HA, that starting to tinker in Lovelace is going to distract me 😃

north spear
#

Worth it imho

buoyant skiff
#

what i got so far for a greeter card

mossy gale
#

@north spear @buoyant skiff I'm going to have a go now.. to hell with it 😃

buoyant skiff
#

😃

#

read the docs thats my advice

mossy gale
#

yes my first port of call...

#

im hoping to do something with my rtsp cameras with it

#

not done anything in HA with them yet

half osprey
buoyant skiff
#

nice animated icons 😄

#

did a nice icon template for detecting various weathers

#

just really wish i could use markdown in that card

half osprey
#

Do you really want markdown or just a line of text?

wheat current
#

I really want MD 😄

half osprey
#

Markdown allows you to format text, however that is what the style option is for

wheat current
#

MD is simple, CSS not so much

tender wasp
#

I can get the pr for custom elements in tonight. Then people can add whatever they want

half osprey
#

If I can be convinced to update the frontend the night before the release …

tender wasp
#

Ehh.. maybe .75 then

#

I'll go ahead and submit it anyway

empty heath
mossy gale
#

I am on latest.. let me take a look at that

#

im using HassOS

#

how would i run that on there,

empty heath
#

If you're running on Raspbian Stretch, you'll likely need to install pip3 first: ```shell
$ sudo apt-get install python3-pip

#

Ignore my previous statement then ^ lol

#

So, to run it on there....1 sec, let me check.

mossy gale
#

cheers

empty heath
#

Seems like pip3 is already installed on Hass.io community SSH add-on, so you should be able to run it straight in that 😃

mossy gale
#

ok taking a look

empty heath
#

@mossy gale Wow, it's actually extremely easy to run inside inside the SSH container (i.e. login to the community SSH add-on)!!!

$ cd /share
$ wget https://raw.githubusercontent.com/dale3h/python-lovelace/refactor/lovelace_migrate.py
$ pip3 install "requests>=2.14.2" "pyyaml>=3.11,<4"
$ python3 lovelace_migrate.py http://homeassistant:8123/api
#

And if you want to output it directly to the ui-lovelace.yaml file in your config, simply run this as the last command:

$ python3 lovelace_migrate.py http://homeassistant:8123/api > /config/ui-lovelace.yaml

😮 😮 😮

#

And once again, Hass.io makes something a lot easier than it should be. 😂

tacit cave
#

this new version needs to come out, i've got UIs to make

mossy gale
#

@empty heath I am installing now....

tacit cave
#

NM, it did come out... the documentation is outdated!

empty heath
#

New version of what?

calm rock
#

Hi ! , on glance cards , let say you have less than 5 elements, how to make them span the whole width ?

tacit cave
#

I was hoping 73.2 had lovelace updates

#

but it doesn't look like it

mossy gale
#

@empty heath threw an error when I ran it

empty heath
#

@mossy gale What error? Can you hastebin the error to me please?

mossy gale
#

Sure

#

might be an issue with my end

empty heath
#

@calm rock I think the only way to do that is to use a view with panel: true enabled on it.

#

@tacit cave I think 0.74 will have some updates? Not sure, though.

half osprey
#

0.74 allows you to change number entities for glance

calm rock
#

@empty heath tks

faint echo
#

@empty heath if I am running HA in a venv on a Ubuntu 16.04 server can I run those same commands you listed above for the ssh container?

calm rock
#

@half osprey tks

wheat current
#

@buoyant skiff Not near you skill set, but I got something working :D

raven nacelle
#

@wheat current May be put the Logo on the right and the text aligned to the left

wheat current
#

Good idea 😃

molten abyss
#

i can't use a camera as a bg for picture-elements?

mossy gale
#

`

#

trying to add the following to ui-lovelace.yaml `- type: horizontal-stack
cards:
- type: custom:gauge-card
title: Temperature
entity: sensor.random_temperature
min: -20
max: 35

#

press return before adding last quote sorry

half osprey
#

press the up arrow on your keyboard

tacit cave
#

@raven nacelle I was thinking about an enhancement to the picture-elements. On a light entity, what if click and hold brought up a vertical scroll bar between 0 and 100% light intensity and double click brought up a hex shaped color picker? single click would still be turn_on/turn_off

#

thoughts?

#

I know how to do that in wpf. No clue where to start in js, css, and html.

mossy gale
#
- type: horizontal-stack
  cards:
    - type: custom:gauge-card
      title: Temperature
      entity: sensor.random_temperature
      min: -20
      max: 35
#

when adding the above and refreshing i get error

#

mapping values are not allowed here in "/config/ui-lovelace.yaml", line 63, column 18

raven nacelle
mossy gale
half osprey
#

@raven nacelle ui-schema repo

tacit cave
#

whats the error strat?

mossy gale
#

this is my first play with lovelace

raven nacelle
#

Won't it impact the regular UI as well?

#

what is line 63 @mossy gale

mossy gale
#

line 63 is the min: -20

raven nacelle
#

Guessing, it does not like -20

#

change it to 0

mossy gale
#

i tried 0

#

same issue

#

set to 5 also

raven nacelle
#

BTW, if you are starting off, start with the built-in cards before playing with custom-cards.

tacit cave
#
          - type: custom:gauge-card
            title: Ping
            entity: sensor.speedtest_ping
            min: 0
            max: 1000

Thats mine, identical to yours.

wheat current
raven nacelle
#

Indeed. Increase the size of the logo so that occupies the entire height (like you had earlier).

mossy gale
#

@raven nacelle i think I am trying to run before I can even crawl... i just saw those gauges and thought I have just got to have them!

#

@tacit cave it is for sure my lack of understanding... stick with the basics I think for a moment, and will return to the gauges

wheat current
#

@raven nacelle Agreed 😃

half osprey
wheat current
half osprey
raven nacelle
#

That is super cool...easy to add configs with YAML.

rocky merlin
#

quick question guys... Can I remove the unit from state value when using state-label?

#

Just want the actual number

#

can I alter text size somehow in the style section too?

raven nacelle
#

@rocky merlin Yes, you can use any style attribute (including font).

#

To display only the sensor value (without unit), you will have to create another sensor that does not have a unit

rocky merlin
#

Ahhh got ya

#

thanks mate

empty heath
#

Just updated the migration script to automatically generate a default view if it's not already defined, but right now it only contains all cameras/groups/history_graphs/media_players/plants/weather entites (since these are the only ones that are currently supported as cards).
I also fixed the hanging when using -p without a password.

#

@half osprey Instead of displaying an alert(), do you have plans to move it to something more inline?

mossy gale
#

@empty heath giving it a go now

empty heath
#

👍

mossy gale
#

sorry for dumb question, do i need to update it from shell no doubt

empty heath
#

Yes.

#

Just run the wget command again

mossy gale
#

ok thnks

empty heath
#
$ wget https://raw.githubusercontent.com/dale3h/python-lovelace/refactor/lovelace_migrate.py
#

If you git cloned it, you can just do a git pull I think.

tacit cave
#

@empty heath can you upload js, css, and html into my brain pls

empty heath
#

upload in progress..........................................UPLOAD FAILED: MEMORY FAULT

undone egret
#

memory fault

#

🤣

mossy gale
#

@empty heath splendid work 😃

empty heath
#

@mossy gale Thank you again for your kind words, sir.

#

It is by no means perfect, but it allows you to "get started" with Lovelace, providing you a very basic example of what the Lovelace YAML looks like.

mossy gale
#

indeed, its made my UI look nice n neat now

rocky merlin
#

I cant upload a image, is there a reason why not?

mossy gale
#

the "all devices" section is so much better than the 3000 circles at the top of my screen cos im too lazy to add all the router attached devices etc

undone egret
#

@rocky merlin yes sir because people will post images of code

rocky merlin
#

Ahhh understand

undone egret
rocky merlin
#

wanted to thank @raven nacelle with a screen of my lovelace so far but I guess I upload it to my git when its ready 😃

#

OK

#

first two rows done..

#

weird colors got washed out

#

Thanks yall making lovelace happening... So much more fun working with

raven nacelle
#

Looking good

pine lotus
#

@empty heath where to find info on how to use migration script ?

vapid field
#

just start it using python and append "-h" ...

kind shellBOT
mossy gale
#

@rocky merlin very nice mate, looks great

vapid field
#

@pine lotus in general just pass just url to your HA api

rocky merlin
#

Thanks alot guys... Now on to next row... But first some sleep....

calm rock
#

anybody knows if the sensor.custom_card_tracker , is having some problem? , i see the info on dev tools , but the card is not rendered anymore

pine lotus
#

@vapid field Ohh thanks....

vapid field
#

@pine lotus you're welcome...

wheat current
calm rock
#

@wheat current , the sensor is working too, but the card ( was working fine) stopped rendering ( in fact the whole view )

#

this was after the last update

wheat current
calm rock
#

will test with other browser

wheat current
#

also make sure you have the latest.

calm rock
#

yes, the strange thing , is that it was working fine .

mossy gale
#

quick question, using Lovelace can you use different icons at the top of the UI for each view?

vapid field
#

@mossy gale yup of course

empty heath
#

@mossy gale You can specify an icon for the view using the icon: key

#

Have a look at the Lovelace View docs 😊

mossy gale
#

ok will do, not wishing to diss the MDI icons but I would love to jazz it up 😃

empty heath
#

I am not sure if you can use a non-MDI icon.

mossy gale
#

no doesnt look like u can 😦

#

i wanted to put a BMW one for my car

calm rock
#

that is why was wondering if something changed , already tested and nothing .. , so will reboot .

mossy gale
#

thanks to all tonight for your help

#

time to get some ZZZ now

calm rock
#

is this still needed on config ? : custom_cards:
auto_update: False

grim lotus
#

please don't hurt me

#

i don't understand the big deal w/ lovelace yet

#

like, is there some big breakthrough other than major speed and customization enhancements?

#

...maybe customization enhancements is the big breakthrough that i steamrolled over...

calm rock
#

you will find more "freedom" to configure the UI , and also update after changes is instant , and dont require any type of restart .

timid burrow
#

i don't get it either TBH

#

that is the one benefit I see - not needing to restart

#

I did find a bug actually with lovelace - although maybe it's not a bug? It seems to ignore a hidden: true in the customize file whereas groups doesn't

calm rock
#

groups , are not part of it anymore

timid burrow
#

I only saw this yesterday when I used Dale3h's script to migrate my groups to lovelace - i had an entity in a group that I had set to hidden in customize but when I went to lovelace it was displaying

#

well they are if you don't use lovelace lol

calm rock
#

i see , i havent used the script , changed all config manually ,

#

is not that hard

vapid field
#

personally I think exactlly the seperation from the groups is one of the biggies.....

calm rock
#

and , as i say , much, much , more altrnatives to configure the UI

timid burrow
#

i only mentioned the script because that made me see that lovelace is ignoring customize

calm rock
#

filters , for example , is very powerfull

timid burrow
#

@vapid field but it's functionally the same anyway

grim lotus
#

yeah true, separation from groups is a big bonus

calm rock
#

here , you can do "intelligent" type of groups

vapid field
#

and it's faster, more flexible, new and fancy and as so often with a good piece of code, the architecture seems to have done a big jump, thus the real benefits will araise later, ...

calm rock
#

that group ids, automatically

vapid field
#

@timid burrow groups yes, the frontend as of today nearly as might as the old one with the addition of beeing awesomely flexible and easy to extend

#

*mighty

timid burrow
#

i do like you can edit the yaml and just reload without a restart - that is a huge benefit

vapid field
#

uh yeah, that's massive....

long cosmos
#

hello, all. how do I make the main view have the other views as 'entities' like in the sample video?

vapid field
long cosmos
#

have a code example?

empty heath
#

@timid burrow @vapid field Speaking of massive, someone wrote a script to “build” multiple Lovelace files into one.

long cosmos
#

@buoyant skiff Could you send me the code used to make this card so I can see how it's done? The more examples the easier it will be to learn. Thanks.

calm rock
#

i dont know why , but it seams tracker-card.js has an error , on this line: cardcontent += `
<tr><td colspan='3' class='separator'>${domain.replace('', ' ')}:</td></tr>

signal pine
#

yeaah pls to gib transmission card

timid burrow
#

@empty heath thanks for that

mortal cape
long cosmos
#

@mortal cape Appreciate it!

buoyant skiff
#

@long cosmos please dont randomly ping me in the middle of the night

#

it was like 4am

#

dont need markdown tnx to Ballobs comment about style 😄

subtle rune
#

Wow. I love that one, @buoyant skiff

buoyant skiff
#

font-weight:
font-size:

#

those are good values to mess around with

subtle rune
#

~toast

buoyant skiff
#

sry no git

#

😄

signal pine
#

well why not

subtle rune
#

Whyyy though? 😄

signal pine
#

with the art you post here

buoyant skiff
#

i can try to fix that under my weekend

subtle rune
#

You should definitely have some kind of sharing going on!

buoyant skiff
#

or on then vacay i got comming up

signal pine
#

looking forward to it !

buoyant skiff
#

god damn its gonna be an unproductive day at work 😛