#frontend-archived
1 messages Β· Page 68 of 1
Oh, that to
you lost me
I can't seem to get the picture into the picture glance card and can't figure out where I'm going won't (first picture card that I'm trying to do) all the controls show up but no picture
@rotund island The cards that are Inside the horizontal stack needs to be alligned. There needs to be exactly the same number of spaces before each - type: vertical-stack.
And so on for the cards inside the vertical stacks, like the Presence and Radio cards
@polar kelp would that be correct ? https://hastebin.com/zifahuwaja.bash
I've been using a circle-sensor-card for ratings, could put the last check-in entity picture as the background of the circle sensor with the rating then as the outer ring around it
That will give you four columns
oh wait sorry
If you inset the Radio card as well, you'll get what I think you want
No added space to render, but more information. That would be slick
Too bad you can't know how many levels are available for badges, could then do one on that too
@polar kelp like this ? https://hastebin.com/udelelonec.bash
Give it a try
I did but i screws up everxthing by using an horizontal stack i try to fit 3 coulmns in the width of one column
You might need an extra two spaces after each cards:-line, but I'm not sure, actually.
as in the configuration examples: https://www.home-assistant.io/lovelace/horizontal-stack/
Ok. Time to simplify. Minimal working example: https://hastebin.com/xekariyili.yaml
This looks ok to me
Replace one card at a time untill it looks the way you want or breaks
didn't take that long π https://hastebin.com/emewazuwaj.bash
the issue here is the colun width in the horizontal stack
ok looks more like it not as beautiful as i hoped for but it's a leap forward
@polar kelp @wheat current @buoyant skiff Thank you for your time
glad it wasn't an indentation error at least i hope so
Finally! https://github.com/thomasloven/lovelace-fullykiosk
I hate writing documentation. It's so anoying having to explain how to do things that would be obvious to anyone who spent the last week writing the code...
@polar kelp nice work! Do you have a screenshot of how it looks?
Doesn't look like much, really.
@polar kelp in what case do you youse this ?
I have an android tablet that I plan to mount as a ha dashboard in my hallway. This lets me also use it as a security motion sensor, and lets me turn off the screen automatically at night.
And with lovelace-player (linked from github) I can play text-to-speech messages or sounds on it as well.
ok I see the use
@polar kelp awesome! You just got me some bonus security cameras! Nice!
Are you able to hook into the camera to get a live feed or is it just live pictures?
Just still images
This is my fully kiosk "integration" https://hastebin.com/axecequbes.cs
@polar kelp So is it just images from when motion was detected?
I'm not sure, really... it's quite slow from what I can tell
Well... actually, when I open up the camera feed it's not too bad
i dont think it store anything it just shows it "live"
Okay. Iβll be checking it out regardless
When you open the feed its "ok"
2-3 fps perhaps
Not to be a party pooper, but you can just add it as a generic camera into hass with:
camera:
- platform: generic
name: tablet1
still_image_url: http://IP:2323/?cmd=getCamshot&password=SUPERSECRET
You mean exactly what I say at the bottom of the readme?
haha yes π
The camera feed is not a part of the plugin.
sorry, didnt read that far
Mr party pooper
Ill check out your plugin, looks decent
I think the only difference to your integration is actually the motion sensor and the ability to controll the screen brightness
Besides the fact that it's not homeassistant polling, but the device pushing the data.
I tried tinkering with the motion sensor but wasnt satisfied with the response time so ill check out yours instead
i think push will be better for that case
Can you even get motion state through the rest interface?
there is "motionDetectorState" but that never updates (on my system atleast) but i tried to play around with when it turned the screen on = motion
i am trying to display darksky sensors on Lovelace, and it's coming up blank
here is my snippet from ui-lovelace.yaml: https://hastebin.com/hopekojotu.css
and my /sensors/darksky.yaml file: https://hastebin.com/ukagupihir.bash
Hey there - is it possible to hide/lock the sidebar in Lovelace? I want to have a tablet showing an alarm panel bit if you can just press the sidebar and change the state from there it kind of defeats the point...
can somebody help me with this "background: radial-gradient(#141E30, #243B55)" i want to have a radial gradient but it dosnt work
if so please dm me beacuse i need to sleep right now
i swear even the simplest things don't work for me on first try, i'm just trying to change the theme to theme: dark-mode but it doesn't do anything
views:
- title: Overview
id: overview
icon: mdi:home
theme: dark-mode
cards:
@upper cedar you have dark-mode defined in your frontend configuration?
after a lot of digging around i only just now realized i needed to do that
so i just added this to frontend.yaml
themes:
dark:
primary-color: "#1ABA92"
primary-background-color: "#303030"
secondary-background-color: "#303030"
paper-card-background-color: "#424242"
and changed it to theme: dark in ui-lovelace.yaml
looks like that is what did it
you'll need to restart to get the change in frontend to reflect
thank you
@icy shard use rgb instead of hex
@north spear http://imgur.com/gallery/6us9O5U I messed around with the alarm card. The dots are crudely done, could be done much better as I just used css psudo classes to add the circle outline.
that looks really nice
@dense roost Would you mind sharing those icons, the look very nice!
nick made those from scratch, thats why i truly love his unique ui
gonna be nice to see a overall later on when its done
Question: If I change the icon on a device in customize.yaml the icon changes color according to the theme depending on state. If I change the icon on the entity in ui-lovelace.yaml the icon does not change color according to the theme. Is this a bug?
no more blurry text all opacity is handled from background using rgb instead of hex
can somebody help me with this i get the error "mapping values are not allowed here in "/config/ui-lovelace.yaml", line 55, column 19" and in ui-lovelace.yaml it looks like line 54: "- switch.dorr_altan_oppen" and line 55 "name: Altan"
yeah ive already fixed it by the help from your answer
something is malplaced in the config
might be as simple as a missing :
or a whitespace
or indentation
@mild veldt
way better now
toast should i send a picture in dm?
naa use hastebin and post in the chat π
@icy shard I think you need
- entity: switch.dorr_altan_oppen
name: Altan
whats the diffrence?
entity:
entity is needed for it to work
the nice part about rgb color is that opacity is avaible
background-color: rgb(4, 4, 4, 0.6)
its working now thanks
the 0.6 is the opacity for the background
but btw it clips out some of the name in the ui how do i fix that
here is the code for that card https://hastebin.com/ohiveyevik.coffeescript
fontsize in styling is one way to go
?
can you post a picture on a imagehost
so we can see what you refering to
@wheat current
Hard to read the numbers at the bottom
oh
yea
@dusk dirge You should submit an issue https://github.com/home-assistant/home-assistant-polymer/issues
Just search first to make sure noone already did.
π― @wheat current
faintest tones of shadows made it way better
think its ready for sharethelove π
how do i fix my glance card?
well you can use style for making the font smaller so it fits
thats one way to handle it
Remove the sΓ€rskrivning, and it might not be a problem...
that too
π
but im fairly sure that its gonna cut off due to the length
it is the lenght
what should i use instead
picture elements?
A place for LoveLace Config https://sharethelove.io/
some examples
so i cant make the glance windows bigger?
@subtle rune what is the easiest way to do that
what is lovelace kiosk mode
@buoyant skiff mate that looks great
loving all the animated icons from loading.io
its a great Job well done
Thanks @polar kelp
Hey @subtle rune, remember how I said you'd never be able to access states from lovelace-gen?
Well.. I was wrong: https://github.com/thomasloven/homeassistant-lovelace-gen#experimental-feature
Wow, that's great! π
Will try immediately
@buoyant skiff I like your calendar entries π
I mean the things in your calendar π
ahh π
But the card is great too! π
@polar kelp Works nicely! Now I can use the ununsed entities a little bit better at least!
what is the easiest way to make so that i can toggle a device by clicking on it and view more info by holding on it
do anyone got an solution?
I dont understand what you want to do.
a glance card that when you click on a device it toggles it but if you hold on it, it will bring up the more info screen
never mind i will just use a entities card instead
even better with some text-indent: 1em
what's the tv schedule thingy?
well ofc but how is it setup?
fetches from tvdb database via rest
hmm, okay
Why not sickrage?
I need to setup so I get info from sickrage and radarr
@buoyant skiff are you familiar with trakt.tv? I'm working on a sensor to get similar things from them for tv schedules, watchlists, etc
i did not know you were on the kodi project
OSMC to be specific
and yeah been involved
so thats how i know many of devs in various opensource projects like sickrage and raspberry pi devs etc
since many of the developer gather around such a big project
@mild veldt hows your untappd card coming along ?
haven't really touched it since i last sent you an image, my dad has been in town and i haven't really been doing much with hass
ahh okey
no idea
@frank garnet I believe so. @north spear has been looking into bringing a codepen written in jquery to a card. He might know
@frank garnet it is, but I strongly suggest against it
to be honest I've been reading around the best approach to the custom web components problem
currently as things get more and more complex (like thermostat or the animated weather card) it gets more complicated for users to include things
also keeping version management is a pain
So far (after a few tries with different approaches) I came to the conclusion that Stenciljs is the way forward (At least for me)
What stencil does is some sort of bundling + compiling into usable (Even in es5) web components
@north spear had anytime to peak at my ff issue ?
no, i've been quite busy as of late and yesterday had our company summer party, so today I'm broken again
Use Chrome, problem solved π
ahh
left the party at 5am π
@buoyant skiff do you have position relative on the :host ?
pff chrome.. Vivaldi all the way
using default position on all cards
ok
anyways get some rest and drink some fluids π
do you use any extra css for positioning ?
just standard picture-elements?
yepp
I second Vivaldi with Handel second
anything thats in the available in the default style settings
that config i posted is a good tool for recreating it
and the component i used for that snipplet is available on custom_component repo
I think I was missing the sensor than
its camera.unsplash
can you ping both on private message ? Just so I don't lose them again from messages on lovelace scrolling stuff up
all done
Anyone knows how to show an image in an entity section in lovelace?
I have a group of sensors but i also wish to show the camera image in the same group/card
title: VΓ€gstatus NΓΆbbele vΓ€g 23
show_header_toggle: true
entities:
- camera.nobbele_vagkamera
- sensor.luft_temp_nobbele
- sensor.vagtemp_nobbele```
In a separate card/group then?
i suggest you read vertical stack and picture entity
those two will do what you want
vertical will group em
and picture will make it an image
Thanks!
np
Is it possible to have different views on different devices (hall tablet Vs kitchen etc)
Do I need to do something special to add themes if using Lovelace? I'm getting a lot of errors when trying to add. I created a themes folder in my config directory and copied over some themes I found. I copied them over into individual .yaml files and when that didn't work just took some theme .yaml files from some public configurations I found.
In my configuration.yaml I added:
themes: !include_dir_named themes
The long list of errors I'm getting are all like this:
Invalid config for [frontend]: expected a dictionary for dictionary value @ data['frontend']['themes']['disabled-text-color']. Got '#545454'
@blazing parrot theming is not specific to lovelace what your trying is more suited to #330944238910963714 channel
Ok, will add there. Sorry about that!
@forest onyx mind expanding on what your trying to do
@blazing parrot np π just dont add that into ui-lovelace.yaml cause it will only break it
Ok, yeah I had it in configuration.yaml, I asked over there. Hopefully will get some resolution.
Anyway to use a conditional card to show/hide a view?
I see no point unless you have more complex logic to fallback to another view, etc
i have two waze_travel_time sensors: "waze_home" and "waze_work", they show up fine in the states tab, but i can't call them properly in lovelace
only "sensor.waze_travel_time" works, and it just pulls the "waze_work" one
@simple jolt you can "sort of" get that working with vertical/horizontal card https://hastebin.com/buwoxehuqe.bash
@upper cedar Then you are doing it wrong :P, config?
so i have this in my config: sensor: !include_dir_merge_list sensors/
That has nothing to do with lovelace π
in /sensors/, "waze_work":
- platform: waze_travel_time
origin: device_tracker.jeff_jeff
destination: lat, long
region: 'US'
"waze_home":
- platform: waze_travel_time
origin: device_tracker.jeff_jeff
destination: lat, long
region: 'US'
here's the bit from lovelace
- type: glance
title: Traffic Status
entities:
- entity: sensor.waze_travel_time
name: To Work
- entity: sensor.waze_travel_time
name: To Home
well, my bad, that's the one that actually shows somethign, but it only shows work
that is the exact same entity_id, it will never show different states
- type: glance
title: Traffic Status
entities:
- entity: sensor.waze_work
name: To Work
- entity: sensor.waze_home
name: To Home
And what is the state of those to?
sorry, i'm not sure what you mean by that
When you check those two sensors in
what is their state?
And what is not working in lovelace?
well i see now that they're not even named what i thought they'd be
they are named waze_travel_time and waze_travel_time_2
and that worked
so you are just making up the names?
Tips: always check
for the entity_id π
i guess i just assumed that they'd be named what the file was
yeah that's super helpful
thank you
@dense roost beautiful dashboard. Would you be willing to share it on sharethelove.io?
Quick one to the experts: Can the header and top menu bar be styled at all? On mobile, it takes so much real estate.
no but you can use kiosk mode
and make a header of your own
there are custom cards that let you enable kiosk mode
That sounds interesting. I'm a front end Developer so keen to have a bit more control over html/css
https://gist.github.com/ciotlosm/1f09b330aa5bd5ea87b59f33609cc931 <-- "Kiosk mode" for Lovelace
So, with a quick review, is it just hiding default header title and nav then pulling in the headless HA pages into another page? Giving me the control of a header/menu?
correct
@wheat current both script work π
np
Is there a way to change the size of a picture card to help align things better?
make the image smaler π
using picture entity ?
kinda have to state what type of card it is for better help
cause there is picture glance, picture-entity and picture elements
each with its own style for making stuff "fit" better
there is also just picture
indeed professor @wheat current
π
so @simple jolt how about you help us help you ? π
with giving us a better description of the issue
hides its ian again
I actually have a similar problem. I have security cameras that are different resolutions and therefore the cards are of different heights, when I want them to be the same π¦ I don't want to reduce the resolution so that they are all the same
turn off your face
i didn't spend 2 hours crawling through my attic this past weekend to have the camera off
cant argue with logic
chaps, can you use template values in the Lovelace ui yaml? - I'd prefer to change my PIR sensor so instead of showing 8 it shows "motion"...I know you can do it to the entire sensor in the config yaml, but wondered if I can specifically do it in lovelace?
@mild veldt Create a nice big picture-elements card with a nice unsplash background.
And add your cameras on top of it.
This way you can size them however you want π
not in lovelace, but in a template sensor, @void marten
dang, thought so - thanks @mild veldt
@wheat current that was going to be my plan, actually. We'll see how that holds up on mobile
thanks
extension to my qq, can you change font/highlight colour based on the value? (probably not)
smal AF on mobile, use camera.combined there π
if you turn off the mobile then it will hold up @mild veldt
@buoyant skiff go drink a beer
Turn of your typing and grab a πΊ @buoyant skiff
im just being logicial π
@wheat current on that note, do you think combined could be updated so that when I click on it it will give me the feed to that camera and not just a larger version of combined?
@void marten In some cards you can, with a "state-filter"
doesn't that just hide it based on state though?
Just looking for your quick yes/no judgement. I'll take a look into actual implementation if you think I won't be wasting my time
@solar pawn https://www.home-assistant.io/lovelace/picture-elements/#state_filter
@mild veldt clicking will allways expand the entity, in that case camera.combined
oh shit! surprise pizza party at work! good bye!
you can add an entity attribute to it, and a cusom card to get what you want π
cheers @wheat current I was thinking of entity_filter π΅
here is a simple example. the different picture cards dont line up correctly. one is bigger then the other. https://hastebin.com/alezitesum.bash
That is a simple picture card.
To change allignment you need to edit the pictures to be the same size
@wheat current how would I go about doing that on a Mac?
Here, try this @simple jolt => http://lmgtfy.com/?q=edit+images+on+osx
mmmm pizza
is there a way to get two cards side by side but taking up a full column each
@upper cedar panel: true with the cards in a horizontal-stack
@upper cedar if you want additional rows you'll need an outer vertical-stack
feels like im recreating the olympic rings π
π
feeling all sporty and shit π
go take a run
@steady narwhal You must be new here π
i dont run, i drink and i know things
nice
@empty heath you missed out on all the new fancy stuff we have been doing
I saw your DM. π Very cool.
and Ludeeus made a cool camera combiner
Camera combiner?
combines feeds
the custom component repo
is where those are π
my new longer version of the greeter card
freaking huge this time around
@empty heath do you think it is feasible to think we might have a card/component store like we have for add-ons in hassio at some point?
halfway there with the repo setup
custom-cards, custom-components
ohh and i found a nice site for animated svgs https://loading.io
makes the webui so much more fun
@mild veldt since every dev have their own view on how to develop their card/component, that would be almost impossible to manage
@mild veldt Yes, something like that idea is on the idea map. The idea is to have a showcase of user-shared stuff, and maybe even allow you to right-click and send to your own HA instance directly from the showcase (via the cloud). π
That's easily solved with required criteria/standards to be accepted on the store page, like we do with add-ons
As for custom cards, most likely not, unless someone builds it third-party.
else then π
π’
but i really have to rethink my olympian rings of values
@buoyant skiff ehhh, you're using my sensor card changes! hooray! I'm useful!
In theory could the tracker-card be expanded to include an "install" button for components/cards that are not installed on the system
ohh shit now i have to scrap it
π¦
cant let ian be useful
I know next to nothing about frontend, so I can not implement that π¦
assuming we have a service for the tracker that can do this, the install button is just making that call
@mild veldt Don't get too excited π I love feeling useful, but when you become so useful that people need your help all the time, it's not as exciting. Hahaha
I have no problem not living up to expectations. Ask my wife
loool
@mild veldt the backend for the tracker card has all it need for that for components, and I can easily add the same for cards, just need someone to make it accessable in the card π
I volunteer
@buoyant skiff Someone sent me this gift yesterday: https://www.givethembeer.com/products/ipa-beer-gift-basket β€ I am going to be sure to check all of them into Untappd.
go write then ;)
it will have the attribute card/component: {"not_local": true} if it's not local, and use the custom_update.update_single_card/component service to do the job π
He said you guys missed me and need me back. I guess that was his way of getting my attention. π
Looks like it worked π
when in doubt... πΊ
π
@empty heath nice π
I guess he just knows the secret to my heart. Haha
@empty heath untappd component is out btw
Nice! In core?!
"out" (custom)
Or still CC?
CC
Ahh, ok. Try to get that into core!!
got some ideas for it
should be fairly easy, since it's using a ext lib for api handling you do not have to write tests for it π
"test it in prod"
always π
"barely tested"
haha
if it is a component about beer then it should be written while consuming said beers
i think that is a law or something π
I can confirm that the part I have done on it (including the ext lib) has been under the influence π
and if i break something i expect it to be fixed by others π
haha
also another law π
That sounded like a me problem π
hehe
check
yepp π
@buoyant skiff it bugs me that the repo is untapped and not untappd
same here @mild veldt !
we cant name it untappd
we can
cause then they can revoke our api keys
we do what we want
sensor.untappd != untappd π
I have, he has not responded, also we should move this to #the-water-cooler π
im working on my lovelace interface π
i often am
at least he's humble, though
although, sensor.untappd is not "using" the api. It is using pyuntapped which uses the api directly (perhaps some wiggle room?)
as I imagine plenty of our hass integrations have similar stipulations in their api terms
@mild veldt the untappd card is on sharethelove.io btw
with all minor tweaks and fixes
awesome, i'll check it out
untapped*
dont be so salty @wheat current π
@buoyant skiff sick looking lovelace setup man
tnx π i share most of em on sharethelove.io
.sharethelove
A place for LoveLace Config https://sharethelove.io/
πΊ
have you configured and added untappd yet @storm lion ?
yep! and I'm loving it π
drinking beer now.. you know to test it's working properly
π
On the Lovelace home page, there's an example video and they have a card for Birthdays where there is a countdown for selected people, how would i go about doing that?
half of that is sensors
and that is covered mostly anywhere
lovelace is mostly design
css basically
its frontend
not backend stuff
@upper cedar - that's mine.. but I stole it off @glossy birch
link to the original : https://github.com/skalavala/smarthome/blob/master/packages/birthday.yaml
have you made a lovelace card for birthdays n stuff yet ?
i dont have any of those sensors
so havent bothered
nah, trying to think of a nice way of displaying it still
I think a glance card is a nice display of if
but if you do it right with the colums it might look awesome
lovelace config
@storm lion we are celebrating a birthday today and kids are enjoying the messages. I even have my TTS talk to alexa to sing happy birthday song π
thank you!
haha, yeah I set google up for that and it is totally awesome π
My TtS aimply say, Alexa, sing happy birthday song. Thatβs all.
yeah.. I'll have a think.. it's probably monster card territory too.. in reality I only need it to flag up birthdays that are a week or two away.. probably overlaid over a cake image or something
On my mobile, canβt type well. Apologies.
^my fancy pants is in his Tesla just typing away while it drives him home π
Goodday,
Got a this error ALLOT in me logs
https://*.duckdns.org:8123/frontend_latest/eb618cf11a4eca6918ea.chunk.js:266:747 Uncaught TypeError: Cannot read property 'offsetWidth' of null
https://pastebin.com/WcKTFpQb
Any idea's?
Are you using any custom cards?
At this moment not
is there a good way to deal with weird card alignment when using normally hidden conditional cards?
ie, if my first card in a view is a hidden conditional, i get a blank spot on the left side
how do i change my weather card to 24 hour clock
dunno its not a lovelace question
and i dont use dark skies
so ask in #330944238910963714
yes, what are you trying to achieve?
only with panel: (true/false)
Add panel: true to the view
which will extend it to be the full width of the screen, but only display the first card so you'll need to wrap everything in a vertical-stack
wrap you in a vertical stack
I imagine the will be developing a method to due something like foundation grids in the future which will allow for better customization of card widths
π
can't argue with that...
yeah panel true does blow up the screen a bit
like i want my card a little wider not 9000%
some wiggle room would be nice
but ill make due with what i have in the meantime
you COULD do it 100% if your full view was just one picture-elements card with your other cards on top
then you could define everything, style-wise, to you hearts content
urgh
all in one card
image the styling on that card
take forever to find anything
I didn't say SHOULD
you would have to use lovelace-gen
no way around it
or you'd go mad
I actually started breaking my stuff out last night to use lovelace-gen. Feels very clean and quick to find things now. Hopefully it works once I'm done though π€
can i use the secrets file for my lovelace ui for picture-elements ? i wanted to hide the address of my hass
techically you can setup a template and use it there or something but i fail to see the purpose of it
but again thats just me
so if anyone else had better advice feel free
let's say if i share my configuration a lot for debugging purposes for instance ?
@north spear and with that answer you solved my issue and made my first question obsolete Thx M8
@buoyant skiff so I'm aiming to have a tablet in the hallway showing alarm panel, travel info, weather and security cam ... Then one on the fridge showing relevant lights, plants that need watering etc. Then my phone view would likely be different (as I probably wouldn't have the alarm panel front and centre in my phone)... Is this possible?
@forest onyx have a look at https://github.com/ciotlosm/custom-lovelace/tree/master/home-setter
is there a list of custom cards? that are shared ?
no, there are some here, but also other places:
i was think about an analog watch card inluding the date. does anybody have an idea if this exists ?
probably doesn't at this point
would look awsome imho. shame i don't have the competence
I'm in the same boat
Learning though, and if you have a coding background... it doesn't appear to be that difficult.
No coding background π¦
someone better than me at ui generation should offer services on fiverr or somewhere. I would pay for sure. π
is it possible to do two rows in one card?
i want to have a glance card with one row of 50% columns and then one row of 25% columns
@upper cedar - type: horizontal-stack will allow something like this. I have a card that is overall one column wide but inside the stack card I have one row showing 2 cards and the row below it showing 3. Don't know if it will do 4
horizontal-stack being the outer one?
sorry... vertical stack as the outer and then 2 horizontals as the inner
gotcha. thank you
hi guys am trying to setup the dark-sky-weather-card but all am getting is an empty screen .... I have the dark-sky-weather-card.js in the local folder, and I have the icons in the /www/icons/weather_icons/animated folders as well. last I add the type: custom:dark-sky-weather-card in the ui-lovelace.yaml folder.. any agead what I am missing ?
have you entered your darksky api key?
I have it in my in my sensor
sensor:
- platform: darksky
api_key: 7bbf663benotmyrealdarkskykey
update_interval: '00:05:00'
also I have been using darksky sensor for a year now .. all am trying to do is to add it in lovelace like I see in the examples
@clear vale I just used the custom weather card for DarkSky
@drowsy summit posted a message that is more than 15 lines. It is now available at: https://hastebin.com/yeholaqivi
oops
@drowsy summit that is the same one am using https://hastebin.com/apacokipiy.css
did you add the resource entry at the top of your lovelace-ui.yaml? @clear vale
type: js```
- url: /local/custom_ui/dark-sky-weather-card.js?v=5
type: js
I been messing with V= I saw where someone said 5 so am up to 5
how did you get the .js file? download it? copy/paste?
download it I went to soneone repo and got it
and what's the full path of the .js file?
/home/pi/.homeassistant/www/custom_ui
I have my alarm working just fine
match your .js file against this https://hastebin.com/asudeduyej.cs
maybe it corrupted in the download
OH!!! change dark-sky-weather-card.css to weather-card.css and change the link in the .js file on line 8 to match
I remember having some issues in the beginning and that fixed it
or just grab this https://hastebin.com/unisevahuy.css
and name it weather-card.css
link.href = '/local/custom_ui/weather-card.css';
yes that is my originally I did not change it
and what's the file name in the folder?
it ws dark-sky-weather-card.css I change it to weather-card.css
trying a firfox now chrome do the same thing
yeah firefox showing black screen
going to reboot
reboot and CTRL-F5 blank screen
I have other working fine but this one wiill not work at all
me too I have spend many nights
easy
child's play
git gud
seriously though, it should be easy for you. universal remote?
i have my roku remotes
got the rpc documentation right infront of me
have it now so when you click on the tv icon on my cards, it will hide all cards and just show the remote and then you can hit an 'x' on the remote to go back to the cards
so im gonna try and import whats playing on the screen
π
or atleast a screenshot
isn't that already available?
i have an awful lot of dimmable lights, is there a way to only show the dim.slider in a lovlace card ? As i'm switching my lights via a picture-elements card i wanted a list next or under my picture-elements card with the dimming sliders ) ?
boom done π
checkout teachingbirds repository adonno
think she has sliders
WOW 
I've worked on a slider but it's not ready!
Here it is though. Feel free to improve ;)
https://github.com/isabellaalstrom/HomeAssistantConfiguration/blob/master/lovelace/light-slider/light-slider-element.js
Hi, how would I add a media-control card for a media_player entity that's only created after the discovery component finds it.
When the device is not discoverable on HA restart, I get a red error "card" instead ("no state available...").
Is there a way to suppress this error and only show the media-control card after the entity is created?
@timid girder Manually add the platorm to your configuration
ok, if that's the only way
@timid girder or use 'conditional' card
That stil give an error if the entity_id does not exist
no way to get a new entity in the backend with a template to update when the media_player gets available ?
and use that for conditional card
worst case, just path lovelace to support the use case
@north spear With a template sensor you could get it working, but the prefered (most stable) way of having platorms in HA are by defining them and not rely on discovery:
What's the cleaning icon for? π
cleaning library in kodi
@wheat current I like discovery. It just needs some extra checks to make it reliable and comfortable to use
any suggestion if i should add anything else ?
@buoyant skiff I hate to tell you this, but the power button icon (top right)...it's icon is slightly aligned too far to the right by like 1 pixel π²
I can't concentrate on anything else now, because of that...
I had the same "issue" going from AppDaemon 2 to AppDaemon 3 where the layout shifted by one pixel - even the developer hadn't noticed π
I created a calendar component for Lovelace... what do you guys think? https://imgur.com/egQofZM
It's nice @midnight monolith but what's the slider for?
@midnight monolith Awesome! Do share please
@split granite wanna help me figure out what typo I made in my yaml last night to entirey break lovelace? π
Sure, I've only had one β though so I may be oblivious π
I spent an hour running it through a parser last night and getting different errors every time I tried something else, so you can't be any worse than me π
@void marten it is the same in the Android Calendar - it shows the current time
ah okay, as in progress through the day? - like half way across (50%) would be 12pm?
No, it just displays the current date as a line between the events... This way you know which events still come up and which are done
current date = current time
sorry, spam much
Attention!: Please use https://www.hastebin.com to share code that is more than 10-15 lines. You have been warned, @void marten!
Please read rule #6 here #rules
bleh, soz
There we go, Hassbot was on a nap
Do not rely on Hassbot cleaning up after you π
my apologies, didn't expect it to be that big π
Well, Hastebin/share.ubuntu.com/whatever it up and try again π
lol thats the first time ive seen tinkerer go off π your in the doghouse now @void marten
@midnight monolith nice going
The first time?
Where the hell have you been? π
(also, for me, that's pretty calm - you should see it when I really go off on somebody)
kind of inclined to say nothing at all for a few days and fix it myself lol
that and the fact that hastebin is the biggest pile of shit I've ever seen, ie, chrome, firefox - always says "somethign went wrong" in red π¦
no pastage for me
It breaks from time to time, hence the suggestion of https://paste.ubuntu.com or another too
There's lots and lots of options for code sharing
yar, there we go
with the error being
while parsing a block mapping in "/home/homeassistant/.homeassistant/ui-lovelace.yaml", line 41, column 5 expected <block end>, but found '<block sequence start>' in "/home/homeassistant/.homeassistant/ui-lovelace.yaml", line 44, column 7
so as I say, suspect I've put a typo in somewhere or something else has slipped into the wrong place
so indentation
Ok, that should be easy to find - though maybe I need more β first
thought so, I suspect np++ has been dicking
tink, because it's indented too far in?
won't deny, I'm not a fan of yaml indentation and the way it works so probably not 100% savvy
YAML is the mark up language used by Home Assistant. Consistent indenting (two spaces per level) is key - read more at https://home-assistant.io/docs/configuration/yaml/
Click on the link https://codeshare.io/29rByX and paste your code there. It makes it easy to collaborate and make changes in real-time.
I'm dumping your code in there and gonna fix it up so you can see
kk, ta
I've fixed the first block, from 44 - you should be able to work out what the second needs
And now I've fixed the second block
that sorted it, cheers tink
Indenting is key
suspect a combination of hack and slash of code examples + notepad++ inserting tabs everywhere may have added to this
Each level of indents is like moving up a step on your stairs - some things need to be on the same stair as other things
Yeah, tabs are bad
pixel perfect
much better toast, my ocd can rest in peace now
Yeah, but all three circular symbols are different diameters...
lol, I actually drew over them in paint and saw the same. I didn't have the heart to say it
I just eyeballed them - the differences leapt out at me π¦
in the words of the master π
final since there arent anymore suggestions to add anything else
and it scales fine in the ui
@mild veldt this one doesnt break π
@split granite qq, just noticed - instead of those two sets of entities being in cards under the bedroom view - it's actually created them each as two separate views? (unnamed view & sensors) based on the title
do I now need to move them in, to make them "under" the original bedroom view?
Then you just need to shuffle things around to get what you want - identing as required
https://codeshare.io/29rByX probably
But I've not tested and need more β
@subtle rune sharing the love: https://github.com/rdehuyss/homeassistant-lovelace-google-calendar-card
First version...
Nice
I will have a Tinker π
@midnight monolith can it be used within a picture element ?
cause i wanna replace mine with that
@buoyant skiff how to make the sizes of cards bigger?
with reading the documentation one more time π
so read it and you will find it
thats so basic
k
@buoyant skiff No clue... this is my first attempt to create a card... not a lot experience yet
hehe try it within an picture element
see if it works
in anycase really nice work π
should add it to the custom card repo
just ping @wheat current about getting into the repo
nice to have em all in one place π
@buoyant skiff Every card can be used in picture-emenets π
guess i fucked up then
guess so π
Was added in 74 π
@wheat current what needs to be done to add it to sharethelove.io?
I would also appreciate a code reviw
review
If you are talking about homeassistant-lovelace-google-calendar-card STL is not really the best place for it, but if you want to add it to https://github.com/custom-cards send me a PM and I'll help you there π
Ok, will do so soon...
#the-water-cooler (cough)
wrong discord π
@buoyant skiff does the center show whatβs playing?
yeah if you press it
No way to do volume?
very nice card, where to get the icons?
can make it
asked for request before but nobody came with any
yeah gonna upload icons later
had to run to the store
was outta beer
cool @buoyant skiff awsome card
so volume up, volume down and mute are those the items you want @mild veldt ?
I donβt want anything π I just woke and saw it and have my own remotes already
Coffee first
could move volume 1 em down
give it some space
@mild veldt @wheat current opinions?
last one, but remove the "note", move the rigth collum to over it with 1em, and release it as a standalone card π
the note is kinda needed its content menu
was thinking of the same thing
maybe have that icon join em together
or something
maybe have the kodi logo alone in the corner and content menu in the middle
that could work
that better @wheat current ?
A little, but a more "remote" layout (3,9,3) would look cleaner
Chaps, I know it's possible to change the icon of a sensor based on it's state and definition under the icon_template section - but if I wanted to use custom mdi images (not available from the site) is that possible? I've found several separate articles about doing that in the customization.yaml but they seem specific to the "absolute" sensor image, nothing related to the actual states?
If you need the context button, remove cody logo, and release it as a custom generic-remote-card.js π
kodi logo stays π
cause i want it so that users can swap it if they are running something else like plex
roku etc
#frontend-archived is now #kodiplayer π
@polar kelp for some reason having trouble with lovelace-gen.py, everything was running ok now is not updating and getting this
homeassistant.components.shell_command] Error running command: python /config/lovelace-gen.py, return code: 2
any thought what could be?
Probably some file missing. The latest version on github should have better error messages
not sure why that happen for some reason my custom_updater i wasnt able to update the new cards version and i wasnt sure if was related to the lovelace-gen.p
Or of you could run it from a console you should get more info
so i deleted custom_updater and set again and then grrr
Check your resource section. Custom updater may have done something to it
Is it possible to put a mdi icon in a markdown card?
@wheat current You arround? Having a issue to update custom-components, but not sure if it's custom_updater or tracker-card related.
Ludeeus is away for 55m 33s with a message :point_right: Object reference not set to an instance of an object.
I have
- title: Main
- icon: mdi:home-assistant
and it shows the word main at the top, and a ha icon next to it
I just want the ha icon but if i take out title I see neither
confused
@odd light Remove the - before icon, otherwise it's another view.
@frank pasture to slow π
Damn, you beat me.
no fun π
YAML is the mark up language used by Home Assistant. Consistent indenting (two spaces per level) is key - read more at https://home-assistant.io/docs/configuration/yaml/
views:
# View tab title.
- title: Main
icon: mdi:home-assistant
So @wheat current, using the 'check' button on the card, does nothing. Or at least it doesn't show it. Tried to manually call the check_all service, but the card still doesn't show 0.2.0 for custom_updater.
seems right to me
@frank pasture The json file it is checking has not been updated, investigating
Dev logs shows:
18:59 components/system_log/__init__.py (ERROR)
Log Details (ERROR)
Sat Aug 11 2018 18:59:41 GMT+0200 (Midden-Europese zomertijd)
https://www.redacted.duckdns.org/frontend_latest/app-c65b4028.js:445:3536 Uncaught TypeError: Cannot read property '_stateDisplay' of null
not sure if related.
don't think so
https://github.com/custom-components/information/blob/master/repos.json#L44 <--- the problem π
naughty json
@odd light this works for me:
- title: Main
icon: mdi:home-assistant
@frank pasture 0.2.0 are up π
Any idea what the other error might be related to? No custom cards except for update tracker,
configuration valid is valid (or doesn't that check the lovelace-ui?), happened out of nowhere,
the error always comes in pairs when accessing the Lovelace UI or reload.
π€·
but this looks similar https://github.com/ciotlosm/custom-lovelace/issues/132
It's valid yaml and pretty sure my indentation is correct. Here is my yaml: https://pastebin.com/hyPMqZfx
Should use the raw view, pastebin messes with the file: https://pastebin.com/raw/hyPMqZfx
probably another case that I haven't encountered
this errors out if you don't have a stateObj
anyone know why it forces me to have a second tab? I mean maybe I will need one sometime but if I remove it, the first one vanishes.
@north spear Should I create a bug report on GitHub? In the home-assistant-polymer repo?
it depends, ideally you should narrow it down to which elements triggers it
and find the context / state that triggers it
Ok, will try commenting out most.
it's not something that usually happens which means it's a more unique combination of states that triggers it
so far whenever I've had the chance to investigate such an error, it was always something on the user end
Commented out the custom:tracker-card, errors went down from 2 to 1 per reload.
Other one was caused by me, still had the sensor.last_successful_authentication while I disabled that because sensor.authenticated gave me so much errors.
Oh, maybe it's both because of that, the tracker card checks sensor.authenticated
Btw, @wheat current , probably the reason I didn't have errors in my log anymore after a reboot π Will enable it and check again.
Ludeeus is away for 57m 43s with a message :point_right: Object reference not set to an instance of an object.
@odd light It works on mobile in the browsers, if the apps aren't simply displaying the web pages then they have their own UI
Is it possible to have a card as an entity within another card?
for instance i want to have a glance card at the bottom of an entities card but not as a seperate card
@north spear yes i saw that card and its just what im looking for but it doesnt have the options to remove title or state like a normal glance card
it should
I tried it earlier and it didnt change. Will give it a try again
aaaa it works now. Must have done something wrong the first time I tried. Also the divider works in it too π
finished my roku remote https://imgur.com/a/SRC3Npw
A place for LoveLace Config https://sharethelove.io/
Help please. Im trying my first picture-elements card and its not working for me
https://www.hastebin.com/oninusawal.sql
for some reason the icon always shows next to the image
@buoyant skiff you able to assist maybe?
lol ok
@buoyant skiff I don;t think it's a good candidate, every button is a service call to a harmony hub that is unique for each user...too much setup for most people
Ok lol
allright I'll throw it together later, going to the pool now
In www folder
not too familiar with docker to find said /var/www folder
hehe
Good evening, anyone had bizarre issues with certain sites displaying in the iframe card?
sickrage works fine but sabnzbd throws this error;
Refused to display 'http://192.168.0.150:9000/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Apparently that error is related to cross site resources, from what I can tell - it relates to something hardcoded into the sabnzbd php configurations...question is, is there a way around it from HA/Lovelace?
it has nothing to do with lovelace. Including stuff in an iframe has to play by the browser rules
http/https mix and other things the browser refuses are up to you to fix / match
Yeah I figured as much, I've seen it before - just didn't know if there was anything that "could" be done π
alas, not my site so not much I can do about that one sadly
anyone know where the lovelace background.png is stored?
?
in heaven
R.I.P
@odd light usually you provide more context to stuff before asking π
@void marten setup NGINX (or other proxy) and map an adress to it with ssl :)
@north spear hmmm... is that something new? π
# Optional background for all views. Check https://developer.mozilla.org/en-US/docs/Web/CSS/background for more examples.
background: center / cover no-repeat url("/background.png") fixed
cheers @wheat current will give it a shpinnnn
I thought that, but that folder does not exist
suggest you read the ha documentation again
i've been reading the lovelace docs
ahh
that is the basics of ha
okay
burp
maybe another beer π
and complete the remote
done π now for that beer π all buttons are mapped
sick man, sick
meh that was easy π
He just enjoy his beers, he is not sick π
drinking a berliner atm π
a sour beer
π
found that my untappd card had the icons swithed π
so tomorrow i have to update my untappd card and the kodi remote with the volume buttons etc
btw Ludeeus why doesnt untappd show in the tracker card ?
I have told you that π
then if you want it to show up, change the py file
and config examples
and all your lovelace (and potantially template sensor config) π
hi all, I'm attempting to write a custom component, and would like to use " <template is="dom-repeat" items="[[w]]">" template style functionality to build out the innerHTML. My card extends HTMLElement, is this possible?
meh
what do you guys like to use for showing date and weather forecast
was thinking darkskye
Someone should add the card galleries link to the Lovelace UI page.
someone could
@odd light I'm with dark sky ... I feel is more complete with more information .. also looks like it's more accurate than others because of where I'm based
is there a reason that sometimes the title goes at the top level but other times it goes under card?
bug
found it yesterday
me and marius
dunno if its been reported
but there seems to be some sort of lazy loading going on
it's caused me grief because I like consistency and I always get it backwards π