I’m just trying to get this set up on my HassIO install but get the following error:
Testing configuration at /config
ERROR:homeassistant.util.yaml:while parsing a block mapping
in “/config/customize.yaml”, line 58, column 3
expected , but found ‘’
in “/config/customize.yaml”, line 61, column 5
Failed config
General Errors:
- Error loading /config/configuration.yaml: while parsing a block mapping
in “/config/customize.yaml”, line 58, column 3
expected , but found ‘’
in “/config/customize.yaml”, line 61, column 5
Successful config (partial)
The entry in the customize.yaml is straight from the git repo:
So I went and copied the entire config from @eddi89 's repo and set it up as a package so I could play with it separately to learn the set up… it passed config check so I restarted HassIO to enable all the additions but now I get the following:
I actually have the same trouble as sparkydave. Although Tiles are working in Home Assist (which is on Raspbian). But exactly the same configuration is not working on HASS.IO version 0.67.
Does anyone have suggestions?
I tried logging in to HassIO on a different computer and the tiles showed up correctly… tried again on the original PC and all good. Must just have had an issue loading the page or something
I haven’t been able to find a way to do this with style_template. I think the way this component works, is it applies the style_template to the attributes of the HTML tag where the primary label (and icon) lives (which also includes the background). Whereas label_sec gets its own tag of HTML attributes.
I’d raise it as a feature request / issue on github asking C727 to add a style_template_sec, or to change how style_template is applied (I have no idea how easy/hard either of those would be to do, or how open C727 would be to doing it).
thanks for trying, will ask on the github and await @eddi89 's advice. It might be possible without alterations, and if not, ask if these can be made. Still, wouldnt this be possible with the label_sec_template or label_template already provided for? Testing this and see what happens:
to be sure, are you saying to use the color: in a label_sec_template or label_template, or should we use the tiles-text-color in a style_template… or maybe even together, label_sec_template with tiles-text-color.
I really like the way your remote looks like (including round buttons). Could you maybe share with me how have you done it?
Would really appreciate that.
Thanks.
Could you please just tell me what the code should be? No matter what I try , which css var I use, there’s just no result … the template must be in correct form and syntax since the icon changes, the color: changes, and the line-through decoration all change according to the entity state. Don’t know what to try anymore.
I like the tiles very much! But i was trying if it works with the weblink component and no luck so far. I am trying to have some nice looking shortcuts to websites in the frontend.
When i add the entity: weblink.abc and click i see this error in the log: Unable to find service weblink/turn_on
So i think there need something to be changed in the files to not call turn_on but do something else. but i cannot figure out what
Or is there an easy way i am overlooking?
I don’t know if anybody used that before: With style_template you can show/hide Buttons based on conditions. I use that to show buttons when I’m away and replace them with other buttons when I’m home:
entities:
- entity: switch.one
label: Show me when home
style_template: "if (entities['input_boolean.away'].state === 'on') return 'display:none;'"
- entity: switch.two
label: Show me when away
style_template: "if (entities['input_boolean.away'].state === 'off') return 'display:none;'"
If I come home or go away these two buttons replace each other. Besides that, all buttons keep the same position.
yes, that s very nice indeed, and i need to use it for my Hue lights that can show On while in fact they are ‘unreachable’ because the power to them is switched off. Using this prevents me from accidentally switching them off…
since these aren’t toggle-tiles the color-on/off option obviously is incorrect (which is why i have all these templates i the first place, and config-settings aren’t applicable).
turns out it wasn’t text-sec-color: but --text-sec-color: that was needed:
only too bad adding this extra template, frustrates the text-decoration: line-through, which was working perfectly.