#frontend-archived
1 messages · Page 57 of 1
I used SweetHome 3d. @split pine
@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.
yes
@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
@serene sierra posted a message that is more than 15 lines. It is now available at: https://hastebin.com/eyojuqonez
Are the cards getting dynamically updated? Meaning you have different cards showing for different options
@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.
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 ?
@fathom tree very nice... how did you colored the rooms differently? and which is the best resolution to use into HASS?
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?
@fathom tree hmm... nice and complicated.... 😔
@fathom tree yes, very useful, i'll be the first to read it...
oh, it'll be a video, you wont need to read much at all.
if anyone need 2d plan quickly them can use free plan from https://floorplanner.com
@fathom tree so you create the floorplan drawing a room one by one?
and later just take a screenshot cut and save as jpeg
I'm no expert but I can fumble my way into a nice looking 3d drawing.
oooh, that looks nice @serene sierra
that take minimum time to draw sketch
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 ?
@rotund island probably reddit, the forum, this channel and https://github.com/ciotlosm/custom-lovelace/
@rotund island some examples are also in the official docs, linked in the topic
Just make sure you scroll to "Cards" section
@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 ? 🤔
Ludeeus is away for 4m 23s with a message :point_right: I'm out @ocean skiff can answer your queries
@rotund island could try repos from cookbook to see if peopleupdated to lovelace
@kind shell OK I didn't want to call him now
I know @raven nacelle did and has it online, but there might be others
@wheat current did you run the lovelace script? yet
Ludeeus is away for 10m 18s with a message :point_right: I'm out @ocean skiff can answer your queries
@north spear Thanks i don't know why I din't think about that myself. I will also have alook at the Reddit
@rotund island https://www.home-assistant.io/cookbook
check the links on the bottom and try to find repos with ui-lovelace.yaml in them. Usually they have screenshots
@north spear yep i was quite stupid i look sometimes a them but las time was about 2months ago 😏
Discord down
I like how you say that on Discord 😉
:))
well he did also do it with smoke signals.. it can't have reached you yet 😉
I have to say I love this lovelace ...
who doesn't 😄
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 ...
i still have to completely move to lovelace but started falling in a redesign pithole 😄
Get ios 11+ 😃
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
:-))
1st world problems .... 😃
if it was too easy what fun would it be 😄
Hehe
well we had that discussion .. 40" 4k monitor in front of me 😃
yh noon til lunch
tell me about it ..
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?
Image in next version, not sure about custom icon
See the docs
And lovelace changelog
@north spear just out of curiosity , what do you have in store for the next lovelace updates ? 😄
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
well we'll wait patiently 😃 👍
hahaha ... who's winning? was with the origianl purchase docs ... scanning now 😃
This week will be slow for me. Big festival in town and I have tickets and holiday from work
Looking forward to the thermostat card...
Base UI is there https://github.com/ciotlosm/custom-lovelace/blob/thermostat/thermostat-card/README.md just need proper setup of integration with states and services and probably a few extra buttons
Also planning to do Alarm compatible with ‘panel: true’
You have the Ecobee, I think
Will run it against various demo setups and my live one
We can get the first version out with the basic functionality - information display and basic controls
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
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?
It's currently supported but we're going to remove it
It is? And why?
@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
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?
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
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
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
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!
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 👍
Interesting future. I'll see if there's anything I could do. I suppose https://github.com/home-assistant/ui-schema is a good place to start?
Yes
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)}}"
@serene sierra Thank you, sir.
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
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
morning
Make UI great again?
no, was a question, here have a ☕
can a picture-entity have a navigation path?
Maybe via tap_action?
what are valid parameters for tap_action btw ??
its in the docs
is it? Couldnt find it
no its not
I would trust @buoyant skiff on this one
well.. thanks!
then please give a hint where to find the documentation answering my question. obviously i am not able to find it
okay. reading this i would assume that toggle is the only option for tap_action. Is that correct?
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.
well, if that the case, i already read this. but i assumed it would not be the answer to my question 😃
or hoped lol
When I read it I see two possible options: dialog (default) and toggle 🤷🏻♂️
right... but i was hoping for something like a navigation path.. 😃
Maybe in the future! 😊
Maybe in the future! 😊
Uh-oh. We may have a Discord outage again.
👌
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?
Fixed that in beta
@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.
Adding an info bar to a plain image would also be nice!
@atomic citrus info bar?
i mean the bar on the bottom of a picture-entity for example showing the current state
Aha
this line combined with some templating = super nice
I think both of you @dense roost and @atomic citrus should look into this https://www.home-assistant.io/lovelace/picture-elements/ @buoyant skiff has some examples on what you can do with it, not sure it they are public yet
It is exactly what you described 😉
that was a simple one
i guess
@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?
doesnt pasting images into discord work anymore?
i am aiming for something more basic 😃
not in this channel
ah okay
something like this.
just an image with basic info.
And on tap it should just jump to the security view
navigation path and picture glance
guys just sarted using this and find it a little hard toget around
i have a learning issue mate so its not to bad
i have been working on HADashboard and found the setup a lot easier
@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 thats not what i was aiming for.... no text, just the icon
like i said
or can this be changed?
so that leaves you with picture elements 😃
i guess
You can do almost anything with picture elements. It's awesome
@subtle rune done anything fancy yet ?
curious since i based most of my early work of your ha config 😃
Can you break up the lovelace config? Not so much packages but !include type?
I tried to get the custom dark sky weather card working but on Firefox there seems to be an issue loading the CSS and this is what I get: https://community-home-assistant-assets.s3-us-west-2.amazonaws.com/optimized/3X/f/b/fb1d5d8c38dfe18cf4ab2f897857ed1a8e61ef27_1_372x500.png Any ideas what is going wrong?
@warm stone for now that should work, but it will be removed
So must be one big config. Ok.
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'
@buoyant skiff This is pretty much what I have so far.. Not much but I haven't had much time yet. https://cdn.discordapp.com/attachments/397426163649216512/469108092932456448/image.png
nice 😃
Having grand plans for the rest though!
hehe just make sure you have the time
cause once you get started
you will loose a couple of days 😛
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.
@buoyant skiff Vacay 🏖
@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 😉
You don't?:O
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 ?
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%```
@atomic citrus The indentation is off..please check the docs carefully. I have an example in my repo as well.
@half osprey do you have a page with examples of peoples lovelace setups?
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…
Someone needs to make a "share your frontend" reddit hint hint so I have something to plan and work towards.
@warm stone mine is boring AF, but therefore easy to share xD
config: https://hastebin.com/oropatakax.js
result: https://image.ibb.co/esENTd/image.png
What are the update things?
can anyone explain me how lovelace ui handle rows?
Overview of the version of various custom cards/components I use
when im using both - type: horizontal-stack and - type: vertical-stack after 4 rows start something strange and card disorder
there is my code https://hastebin.com/zufaqikira.cs
more then 5 rows stacked in same card moving next card in strange way https://ibb.co/eEsdZJ
and with less entities it not does happen https://ibb.co/ko5OZJ
Does it move when you resize the window to be smaller
@warm stone move to where? it just start place cards with wrong order https://ibb.co/e8TXTd
4 cards here, first 3 are same and the last one is plan-coordinates
same 4 cards but with more then 4 rows stacked https://ibb.co/ewYJZJ
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
so why it can be?
open the side panel and close it you will find they move and place themselves to fit
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
with the same screen size
I really like your use of colors
do you have a Twitter handle I can tag in the message ?
No, @subtle rune
@half osprey IsaAlstrom
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
No but I like that idea, please open an issue in https://github.com/home-assistant/ui-schema/issues
With 0.74 showing last changed will be possible for entity cards
cards:
- type: glance
title: Motion Sensors
entities:- entity: binary_sensor.top_floor_landing_motion
name: Top FloorInstead of just clear/detected, show last activation time:
value_template: {{ states.binary_sensor.kitchen_motion.last_changed }}
- entity: binary_sensor.top_floor_landing_motion
this is what i want, i think - will file an issue, thanks
Templates are not going to happen, defining an attribute to show under the state object might
Or as the object value in this case
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.
anyway, here we go: https://github.com/home-assistant/ui-schema/issues/110
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?
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 ?
Changelog of frontend is now automatically maintained 😃
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?
Yes, Lovelace is client side only
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
If you want to use advanced things, we have documentation on how to create custom cards in JS
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
no
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
This is how last changed can be shown in the latest beta
cool. i think it's useful in general to be able to see that for various things
That was one of the primary things I was using custom_ui for.
@north spear what about to use https://www.home-assistant.io/components/shopping_list/ with https://github.com/ciotlosm/custom-lovelace/tree/master/beer-card ?
beer card = best card
lol
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.
tnx 😃
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.
i promise i wont 😃
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.
are you thinking of the persistent_notification cards?
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
kk
yup yup ... just wasn't sure if i was just not swift enough to noodle it through 😃
i thought i saw a post or comment somewhere about reworking them to be different than standard entities
Can get them to show with the monster-card:
include:
- entity_id: persistent_notification*
@molten abyss @buoyant skiff https://github.com/home-assistant/ui-schema/issues/105
sorry wrong one
cool .. ty!
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
Did you define the correct tracker?
- type: custom:tracker-card
title:
trackers:
- sensor.custom_card_tracker
is there a centralized place for the various custom cards that have been cooked up? 'cause that looks intriguing
IMO the best place for now is https://github.com/ciotlosm/custom-lovelace
the same repo as the tracker component "asks" for new versions
good deal, ty!
@wheat current i have like is instructions on github
- type: custom:tracker-card
title:
trackers:
- sensor.custom_card_tracker
- sensor.custom_component_tracker
And in /config/custom_components/ you have both:
-custom_components.py
-custom_cards.py
i have custom_cards.py and sensor folder
i couldnt find link to the custom components to see if there was changes
Try again 😉
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.
on it for some reason i dont see no link there or info to get to those components
https://github.com/ciotlosm/custom-lovelace/tree/master/tracker-card
😃
The reason for that is that its no longer there 😉
do i still need sensor folder and the configuration.yaml setting custom_cards: ?
You need to add custom_cards: to configuration.yaml, but you don not need to dowload the sensor, it will do that for you 😉
@wheat current working again thanks for the updates
great job!!!
Anyone knows where I can get some info how to style Lovelace (colors, fonts etc). I guess there's a CSS somewhere?
@grand veldt is this what you're looking for? https://developers.home-assistant.io/docs/en/lovelace_custom_card.html#advanced-example
@grand veldt that's the existing Home Assistant theming
@half osprey Great, thanks!
Is it possible to have a card stretch across the screen, above all the columns lovelace automatically creates
you can hack something together with putting a vertical stack with panel: true and then adding your own columns with horizontal-stack
@half osprey That's a neato trick! https://hastebin.com/dotihewixa.css
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?
how do i get @empty heath github
~dale3h
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.
@empty heath how do i get all your sensors ??
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
ok i try thx..
I was asking yesterday about if it would be possible to include files into ui-lovelace.yaml, and was told that it was not planned, but that a tool could easily be made for it; so I did: https://github.com/thomasloven/homeassistant-lovelace-gen
@polar kelp From sweden ??
yes
Wow. Thank you!
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? 😉
Haha! Awesome idea.
Awesome!
I guess when I've been into home automation a while longer things like that will come to me immediately as well...
Now next a custom component that overrides the websocket command to get the Lovelace UI and have it run your code
@half osprey 😮 Is that actually possible?
Yeah
Well sorta, but you can also override the command
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. 😂
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
wow love your lovelace cards
@empty heath , by "forcing " the layout in three columns with the wide header , will the UI still auto adjust when on mobile ?
It should, yes.
good! tks
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
Can you not have a thing with websites where it detects the screen resolution / device and then displays a "mobile" version instead?
It might be possible, but it already does that when NOT using this layout.
is there a way to fix this? http://l.crvk.co/jd4piB
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/
/states
.away courses and meetings
Toast is away! courses and meetings :wave:
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
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
Ohhh it is that easy 😃 thanks!! ofc there are no guarantees I get that but thanks alot!!
@empty heath that's strange it's working for me perfectly
@dense roost using the same vertical/horizontal stack? or using just normal cards and existing flow ?
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
https://i.imgur.com/80u9djx.png @north spear
yeah, I wonder how that looks on a narrow mobile screen
think it would look good
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%```
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!!! 😃
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
about::config? in HA ?
no ff
well there is and its just like chromes about it can break the browser
wow... @buoyant skiff where can i find those settings??
there is a searchbar ?
so type in the value you want to edit
not rocket science
😃
@atomic citrus about:config
oh... got it!
@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.
that fixed it! THANKS!
does customui work with lovelace?
can i change the font for picture elements?
you have to make your css file for ha
how to install the new lovelace UI, i dont get it😂
thanks!!!
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
We have added the foundation for this, it looks like this: https://home-assistant-lovelace-gallery.netlify.com/#demo-hui-picture-glance-card
So where all of you come in is that we need example card configs contributed
For example, our picture-glance card demo is here https://github.com/home-assistant/home-assistant-polymer/blob/master/gallery/src/demos/demo-hui-picture-glance-card.js
On line 9 you can see the different configs
The available states are the one of the demo component, found here https://github.com/home-assistant/home-assistant-polymer/blob/master/gallery/src/data/demo_dump.js
All configs stored are in JSON, not YAML. So you will need to convert it using http://yaml-online-parser.appspot.com/
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
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
@foggy tendon get help from the dev of that card
Don't remember his nickname
where did u get it from ?
from here many messages ago...
@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...
lol ludeeus doesnt have anything to do with that
hmmm......
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
@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?
@wheat current which is the difference? they seems equal
@raven nacelle rest is all automatic
@wheat current i get that error and no card
Meaning, I can use similar lines that you have in the glance demo card?
@foggy tendon Difference is : vs . in the version tag
ahahahah
Please use https://www.hastebin.com to share code.
Seems ok, what is the content of /config/www/ ?
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
okei...
In HA UI under
, paste this:
{{ state_attr('sensor.custom_card_tracker','tracker-card')}}
{{ state_attr('sensor.custom_component_tracker','custom_cards')}}
What does that say?`
{'has_update': True, 'local': '0', 'remote': '0.1.0'}
{'has_update': True, 'local': '1.1.9', 'not_local': False, 'remote': '1.1.14'}
wierd, did you try restarting?
Incognito mode?
yes i restarted.... what is incognito mode?
~lmgtfy incognito mode
Here, try this => http://lmgtfy.com/?q=incognito+mode
ah ok i was thinking something related to HASS... no i have no incognito mode
No, but try using that
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
Anything in the dev-console?
what?
Sorry to be harsh, but unless you know how to do basic troubleshooting, you should not use custom stuff...
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
Remove all of them, and start over, if you still don't get it to work, open an issue here:
https://github.com/ciotlosm/custom-lovelace/issues
ok
@raven nacelle yes
Ok...let me start with one demo card PR to make sure that I understand.
I just added some more as an example https://github.com/home-assistant/home-assistant-polymer/pull/1476
this adds 2 new demo's and 2 new configs
https://home-assistant-lovelace-gallery.netlify.com/ still only shows one
wait 1 minute, I just merged it
ok
now it shows 3 😃
Its there 😃
you can also run the gallery locally
cd gallery
script/develop_gallery
it does not need a dev Home Assistant environment
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
So right now, it won't be possible yet to change states
Yeah....it just shows a dialogbox Showing more info for light.bed_light
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
@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
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.
@wheat current you mean this? custom_cards.update_cards
i don't have custom_card.update_all
That may be the issue...
Do you have custom_components.update_all ?
Run that, and wait 1min, then restart home assistant
after that you should have custom_cards.update_all to
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?
Clear cache
hi...how to make a switch to have a state from a device tracker....
is it for lovelace ?
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
So is lovelace the future of HA? Should I stop learning to configure the old interface and just concentrate on learning lovelace?
would say that its a really good replacement
sooo much better
less clunky and more open
not limited by one row
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..?
https://developers.home-assistant.io/en/ <--- this?
okay. thanks.
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 😃
lol, okay. does that file basically replace the groups, customize, etc yaml files?
yeah, I guess thats' what I meant.
i was just learning custom ui and figured before I got too deep if it was smart to just make the switch now.
is there a guide or anything about creating your own lovelace cards?
ah. didnt spot the dev docs, thanks
that's just too easy 😉
This is the coolest card 😃
ppffttt
@buoyant skiff got a RPi Power status card yet? 😛
naa
oh that transmission card is gorgeous
thank you 😃
god i really need to sit down with lovelace
apparently!
maybe that'll be my weekend project. transition my current groups and shit into lovelace
and then start playing with the new shit
is that just picture-element too?
yes
nice
yeah that seems a lot easier than writing your own cards to do that stuff
got any more examples?
my asus nas card
with running processes, power toogle and uptime and firmware version
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 can you use attributes or just states?
@cunning pagoda migration is also pretty straightforward, at least for me it was like 30mins using https://gist.github.com/OttoWinter/730383148041824bc47786ea292572f8 .... needs some wor afterwards, but you pretty fast get back what you had before ...
Attributes are for gods :-))
sure you can use attribues
I want attributes. 😅
Or beer
beer is good
beer is nectar of the gods
you can use attributes 😛
just havent bothered with it
Oh nice 👌
Much easier to make a sensor with alot of attributes then a lot of sensors 😜
@buoyant skiff Are you publishing the source code of your cards somewhere?
not as of yet
working on getting it perfect
however i will provide demo cards for homeassistant
Can you send me the code of this please?
https://cdn.discordapp.com/attachments/460846676358332417/469540718994784259/unknown.png
@north spear @buoyant skiff You should submit that custom card to https://github.com/ciotlosm/custom-lovelace once you have it ready. Looks great!
really? I'll be interested to see how you accomplished this 😃
if you scroll up here a few days, he shared one of them 😉
Need that untappd 🍻
untappd is a custom_compenent
very much alpha
still working on that
will be available here
once im good with the source
soon ™
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 😉
cough
what entity do you use to show the value of a sensor, instead of just its icon?
then i am lost ...
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
ok. haven't played with that one ... but that'll show the values?
why would i recommend it if it didnt ?
👍
Anyone made a card for Tautulli?
@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
most people saw the floor plan
i saw something else
the floor plan was the last thing i saw
and I think we're all grateful that you have
What do you use to add static text (like a label) to a picture-elements?
either by making a sensor template
input_text seems to not work
or adding unit of measurement to sensor
Ok, I see, thanks
oh man, now I'm itching to get out of work so I can play with picture elements!
i got this tshirt on at work 😛
feel free to show me your creations
would love to compare
when you got some picture element cards
@wheat current i see there is card tracker improvemente where is the link to get the sensor.custom_components?
@wheat current wonder if the card tracker discussion isnt better suited to #330944238910963714 ?
isnt really lovelace ui creation
@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/
@buoyant skiff The tracker card is ;)
@vapid field no need for the sensor anymore, just the card and main component
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
But for alarm i get the option. Whats the difference
no idea what that means but glance is what it says it is a glance
its all in the docs
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.
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...
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
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
oh shit, i forgot about that hah
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 😉
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 😄
haha well it took me almost 5 years to realize that that we were abusing groups 😉
So this info is also in the docs https://www.home-assistant.io/lovelace#how-it-works
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 😉
the separation was clear, but the future of the groups is not explicitly mentioned
Whenever I write down that something might go away or is deprecated, pitchforks come out 😉
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...
@buoyant skiff We need to figure out/create a UI element that is strictly for “labels”
yeah
also fixed positions should be easy to do
since it bases of css unless its already possible 😃
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?
Just use a transparent image ?
I suppose that could work, but it still requires an image 😜
Does it support b64 strings?
@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.
hmm nice
that could be really useful
something i would love is the ability to use markdown inside picture elements
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?
not right now
@buoyant skiff What is the syntax for using attributes in picture-elements, can't find it in the docs
would be the ultimate card if it was
@wheat current cant use that with picture elements have to use the beer card 😛
@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
Ahh, ok. Thank you sir, I will play around with it when I get a moment!
@buoyant skiff love those gauges, is there a link anywhere to how you created those?
ah ok, wonder if he posted anything, will do a search on his name
Ballob this is my goal
thats how i want my greeting card
it would be possible if i had markdown in picture element
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 😃
Worth it imho
what i got so far for a greeter card
@north spear @buoyant skiff I'm going to have a go now.. to hell with it 😃
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
nice animated icons 😄
did a nice icon template for detecting various weathers
just really wish i could use markdown in that card
Do you really want markdown or just a line of text?
I really want MD 😄
Markdown allows you to format text, however that is what the style option is for
MD is simple, CSS not so much
I can get the pr for custom elements in tonight. Then people can add whatever they want
If I can be convinced to update the frontend the night before the release …
@mossy gale If you're using 0.73.0 or later, check this out: https://github.com/dale3h/python-lovelace/tree/refactor
I am on latest.. let me take a look at that
im using HassOS
how would i run that on there,
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.
cheers
Seems like pip3 is already installed on Hass.io community SSH add-on, so you should be able to run it straight in that 😃
ok taking a look
@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. 😂
this new version needs to come out, i've got UIs to make
@empty heath I am installing now....
NM, it did come out... the documentation is outdated!
New version of what?
Hi ! , on glance cards , let say you have less than 5 elements, how to make them span the whole width ?
@empty heath threw an error when I ran it
@mossy gale What error? Can you hastebin the error to me please?
@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.
0.74 allows you to change number entities for glance
@empty heath tks
@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?
@half osprey tks
@buoyant skiff Not near you skill set, but I got something working :D
@wheat current May be put the Logo on the right and the text aligned to the left
Good idea 😃
i can't use a camera as a bg for picture-elements?
`
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
press the up arrow on your keyboard
@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.
- 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
I like that idea, but it may be good to discuss this in the architecture repo https://github.com/home-assistant/architecture. I am wondering if long press/hold will be possible with the upcoming custom-elements
i was using the card from here https://github.com/ciotlosm/custom-lovelace/tree/master/gauge-card
@raven nacelle ui-schema repo
whats the error strat?
this is my first play with lovelace
line 63 is the min: -20
I am using it and it works fine https://github.com/arsaboo/homeassistant-config/blob/master/ui-lovelace.yaml#L728
BTW, if you are starting off, start with the built-in cards before playing with custom-cards.
- type: custom:gauge-card
title: Ping
entity: sensor.speedtest_ping
min: 0
max: 1000
Thats mine, identical to yours.
@raven nacelle much better :)
Indeed. Increase the size of the logo so that occupies the entire height (like you had earlier).
@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
@raven nacelle Agreed 😃
@raven nacelle we updated the gallery so that now you can just submit YAML https://github.com/home-assistant/home-assistant-polymer/blob/master/gallery/src/demos/demo-hui-glance-card.js#L10-L18
I have posted my quota of pictures today now :)
https://image.ibb.co/mhbCWy/image.png
@raven nacelle and then it looks like this https://home-assistant-lovelace-gallery.netlify.com/#demo-hui-glance-card
That is super cool...easy to add configs with YAML.
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?
@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
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?
@empty heath giving it a go now
👍
sorry for dumb question, do i need to update it from shell no doubt
ok thnks
$ 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.
@empty heath can you upload js, css, and html into my brain pls
upload in progress..........................................UPLOAD FAILED: MEMORY FAULT
@empty heath splendid work 😃
@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.
indeed, its made my UI look nice n neat now
I cant upload a image, is there a reason why not?
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
@rocky merlin yes sir because people will post images of code
Ahhh understand
you can in #the-water-cooler or use imigur
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
Looking good
@empty heath where to find info on how to use migration script ?
just start it using python and append "-h" ...
@vapid field posted a message that is more than 15 lines. It is now available at: https://hastebin.com/zenusoceci
@rocky merlin very nice mate, looks great
@pine lotus in general just pass just url to your HA api
Thanks alot guys... Now on to next row... But first some sleep....
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
@vapid field Ohh thanks....
@pine lotus you're welcome...
@calm rock https://image.ibb.co/bwc8My/image.png working as it should for me
@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
https://image.ibb.co/nm5Ood/image.png that part is also working, I have the latest card + components
will test with other browser
also make sure you have the latest.
yes, the strange thing , is that it was working fine .
quick question, using Lovelace can you use different icons at the top of the UI for each view?
@mossy gale yup of course
@mossy gale You can specify an icon for the view using the icon: key
Have a look at the Lovelace View docs 😊
ok will do, not wishing to diss the MDI icons but I would love to jazz it up 😃
@empty heath dont think this is the problem, but the docs are different than the example : https://github.com/ciotlosm/custom-lovelace/tree/master/tracker-card
that is why was wondering if something changed , already tested and nothing .. , so will reboot .
is this still needed on config ? : custom_cards:
auto_update: False
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...
you will find more "freedom" to configure the UI , and also update after changes is instant , and dont require any type of restart .
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
groups , are not part of it anymore
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
personally I think exactlly the seperation from the groups is one of the biggies.....
and , as i say , much, much , more altrnatives to configure the UI
i only mentioned the script because that made me see that lovelace is ignoring customize
filters , for example , is very powerfull
@vapid field but it's functionally the same anyway
yeah true, separation from groups is a big bonus
here , you can do "intelligent" type of groups
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, ...
that group ids, automatically
@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
i do like you can edit the yaml and just reload without a restart - that is a huge benefit
uh yeah, that's massive....
hello, all. how do I make the main view have the other views as 'entities' like in the sample video?
jup like this
have a code example?
@timid burrow @vapid field Speaking of massive, someone wrote a script to “build” multiple Lovelace files into one.
@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.
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>
yeaah pls to gib transmission card
@empty heath thanks for that
@long cosmos https://hastebin.com/idejuvogam.bash
@mortal cape Appreciate it!
@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 😄
Wow. I love that one, @buoyant skiff
~toast
well why not
Whyyy though? 😄
with the art you post here
i can try to fix that under my weekend
You should definitely have some kind of sharing going on!
or on then vacay i got comming up
looking forward to it !