Replies: 6 comments 16 replies
-
|
Earlier... New example using just Date().now for label... Nested 1 will only show an updated value every 5s, even though it has an update_timer of 1s. That is because it's label is generated as a value from the parent. type: custom:button-card
entity: binary_sensor.donker_buiten
show_label: true
name: containing card (5s update)
update_timer: 5s
label: |
[[[ return Date.now() ]]]
styles:
grid:
- grid-template-areas: '"n" "l" "nested1" "nested2"'
custom_fields:
nested1:
card:
type: custom:button-card
update_timer: 1s
name: Nested 1 (1s update)
show_label: true
label: |
[[[ return Date.now() ]]]
nested2:
card:
type: custom:button-card
update_timer: 1s
name: Nested 2 (1s update)
show_label: true
label: |
[[[[ return Date.now() ]]]] |
Beta Was this translation helpful? Give feedback.
-
|
Response from @Mariusthvdb
|
Beta Was this translation helpful? Give feedback.
-
|
Maybe it would be necessary to include in the documentation a list of situations (with examples) in which the use of the number of square brackets corresponding to the level of nesting of the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I understand where you are coming from, in that a button-card in a custom field seems related to the button-card containing the custom field (note that I am steering away from parent/child as it is not that relationship). However they have no relationship except that the card in the custom field is of type button-card. The button-card containing the custom field knows nothing about its type. It just displays it and renders templates using the nesting rules. Perhaps |
Beta Was this translation helpful? Give feedback.
-
|
@dcapslock, hello! it seems that there is no access to the values of the "parent" variables now - the |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
-
Continuing from #1086
Beta Was this translation helpful? Give feedback.
All reactions