I do get the information when I hover, but that’s not as useful on a tablet.Īny thoughts on how to make clicking on an object do more than just toggle? It would be neat to either be able to select the speed on my ceiling fans, or to have them move up or down to the next speed when I click on them. I can add the text fields to the SVG, but since they are attribute values I can’t display them as simply as putting media_player.bathroom_dia_artist for the object ID in the SVG. I would rather have it just say “Home” or “Away” and then color-code it with CSS.Ĭan you think of a way to use attributes in text fields? I have several media players where I would like to display artist/title/track when they are in use. Is there any way to set the text on a state to a value other than the state value? For example, I have a home alarm that returns states like “armed_home”, “armed_away” which are kind of ugly. I have a couple of issues/questions though… Now i have this… but still cant get the fan to anchor in position, just flies off the top Great work on this! With just a little bit of work I was able to get my existing floorplan working as a card. In the SVG file I designed the lights to appear how i wanted them in the ‘on’ state, then set the ‘switch-off’ class to black fill with a transparent border /* Switches */ Gave up on the changing the light svg file and just used the class to change the image properties within my main svg - action: not in a layer in inkscape) or else the calculated coordinates will be wrong. Also you need to make sure that the placeholder is placed directly within the svg (e.g. Whenever the temperature sensor changes state, the image_template is evaluated to determine which SVG image should be emebedded within the bounds of the. In the example below, the _dark_sky_icon entitiy is mapped to a in the SVG file with the same id (which simply acts as a placeholder). Stylesheet: /local/floorplan/examples/simple/simple.css?v=1.1.14Ī little more browsing through the floorplan sections and came across this which may be the route cause of the image movement Image: /local/floorplan/examples/simple/simple.svg?v=1.1.14 … a few line for other categories/cards that work just fine… - badges: url: /local/floorplan/floorplan-card.js?v=1.1.14 PS: My config looks like this: resources: Sorry for being a noob xD Thanks in advance!! It’ll be great if anybody could tell me what I did wrong. Sadly after editing hassio says “Custom element doesn’t exist: floorplan-card.”.Īttached you can find the two relevant parts from the lovelace config. I also added the resources in here and took the example from Petar Kozul as a test example. I managed to do the basic installation and integrations, but right now im also pretty interested in the floorplan by Petar.Īfter putting the files in /config/www/floorplan and editing my lovelace configuration by using the raw-editor (homescree => top right, three dots). Hello everybody and thanks for letting me in…Ī few days ago I set up a Raspberry Pi 3B+ with hass.io.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |