Hi Mates,
my card sometimes does not update:
button_card_templates:
roomcard:
variables:
temp_entity: null
humi_entity: null
setTemp_entity: null
valve_entity: null
window_open_entity: null
lights_on_entity: null
group_expand: true
triggers_update: >-
[[[
const res = [variables.temp_entity, variables.humi_entity,
variables.setTemp_entity, variables.valve_entity,
variables.window_open_entity, variables.lights_on_entity].filter(i =>
!!i); console.log(res); return res; ]]]
So the question is: Is templating in triggers_update
not supported?
The lights_on_entitiy ist mostly a group a lights.
**Solved**
The return value of triggers_update
can not handle arrays so
triggers_update:
- '[[[ return variables.temp_entity ]]]'
- '[[[ return variables.humi_entity ]]]'
does work