thank you! enough to get me starting
will report back, good or badâŚ
I see the same, not only on refreshing LL, but also without any other explanation (so far, and I have only been searching for 2 yearsâŚ)
It is btw, only the Hue integration suffering, no other integration or component has this in my setup. Please note that not only Hue lights, but also the sensors go unavailable, forcing us to rely on the CC for Hue sensors, which we are supposed to not do, since that would incur âhammering of the Hubâ. taking the CC out doesnât solve it in any way though.
Whatâs the best method for adjusting text size on different screen sizes? Using aspect ratio the card adjusts but the text doesnât appear to change to match the card size.
quick in between question, I now notice my motion sensor buttons dont get the icon anymore I have set in customize. Seems the get the device_class icon.
Secondly, the button doesnt immediately respond with the colorizations based on state of the entity_id. Must I set a triggers_update here? And if so, how. Since this is templated entity_id, I cant add it to the button hard codedâŚ
The toggle is executed promptly.
this is what I have per binary_sensor, and it showed perfectly before on the buttons:
I did use the idâs for icon before, but that was before I had set the customizations. Did Button-card stop respecting the customizations?
Please have a look to get the customization back, I now see thisâŚ:
You shouldnât use custom_ui anymore, especially not with button-card as this is something you can do inline in the card. Unexpected behaviours can happen.
- operator: template
value: >
[[[ var id = 'switch.' + entity.entity_id.split('.')[1] + '_switch';
return states[id].state == 'on';
]]]
The computed entity here will not be detected as said in the release notes and thus the card will not update. There is nothing I can do about it. Either add the entity to the list in triggers_update or set triggers_update to all.
Supporting javascript templates in triggers_update is again something that will introduce load (the same way it was before, itâs a chicken and egg problem )
Maybe Iâll swap the default behaviour and default to all, unless the triggers_update is set to auto or a list of entities⌠That should avoid the breaking change and be useful for power users Iâm not decided yet
Iâll give it a whirl later today. It will force me to change one of my templates for the update you did a few weeks back. I just needed the nudge. Is there a timeframe for this beta or is this a âgo with the flowâ?
@RomRider
Iâve tested the new beta version. The problems with my buried button-card not getting hass/state object updates has been fixed. My activity buttons are working correctly.
I still see a problem with the javascript objects between a config template and the card config. For example, take the following javascript template for the âtap-actionâ. First placed in the config template.
In the console, I see the log output happen multiple times upon card load and when I click the button, I see it again. All objects are defined and itâs returning the proper result, call-service or none
Now if I move that same code to the tap_action in my card config, I still see multiple outputs on card load, but it says that âvariables is undefinedâ and âentity undefinedâ and that the return result is ânoneâ. Clicking on the button shows no output to the console. Even if I force the return result to always be call-service by changing the 2nd line of the js to let retVal = 'call-service', I still get no output when clicking the button and the service does not get called. I donât see any errors or stack traces to the console.
maybe per entity, but custom-ui still works globally, so is way more powerful. I did work just fine. Is this caused by the recent beta update? Or maybe changed since you added support for the device_classes. In which case it could maybe made optional?
What I could see as solution is to add the switch (in this case) to the button_card config:
would it be possible to add that to the new button-card? That way we wouldnât need to update on âallâ, and still be able to use the computed entities for templates, not being based on âentityâ.
I still donât see the need for this globally, I never have my entities show up more than once in my interface. And if I do, I just reuse the card with lovelace_gen.
well, as always, you mileage may varyâŚ
I dont only use these binaries on custom button-card, but also in entities cards. I have global (customize_glob) customizations for many domains, or even switches/sensors like this:
meaning my switches with suffix _template (for template switches) _sh, for shell_command switches and _rc (rest command) all use the same customizations. have more examples that are way easier than using anchors, or the complexity of lovelace_gen, which would automate that.
the above change was made only recently, so I hope this can still be re-installed easily.
if that would be possible, all issues of updating would be solved (I think?) The dashed version or not, my point would be taking these 2 entities to the template, and have that button, and that button alone, update on these 2 entities
but somehow this messes with the colors set in the state part of the template, and always returns this:
which, according to the state template for color should be showing grey, and not green for icon and stateâŚ
do you spot an error in my config/template here, check the default state (which is when the switch is on, but the sensor is âoffâ (no motion, clear)?
btw, about customize not being checked: this is only true for the device_class. All my other customized icons are respected, so it definitely was changed after you updated button-card to respect te device_classes.
Would be really very much appreciated if that could be made optional somehow. Seems no core code needs to be changed for that (since all is still functional), only sensing the device class or not?
The code is the same as core for the icon. I donât know how custom_ui works to replace the icon and as I said, I have no plans to support it.
I donât think that frontend stuff should be done in backend (this was the solution before LL). You now have card-mod for that and config-template-card also. Also with 108.x, I donât think custom_ui will be fixed as the last commit is from almost 1 year ago.