@csacre wrote:
Hi,
I start playing with the “picture-elements”.
I would like to change dynamically the background-color when the “humidity” of one sensor is above 50% (visual feedback, kind of alerting).I am back to even a more basic question: is templating supported in this card ?
As an example below, I simply try to have the “Title” being displayed dynamically without successBut when reopening the editor (in lovelace), the row
{{ states(‘counter.presence_hall’)}}
has been replaced by
’[object Object]’: nullAny idea or alternive for my main objective (change background-color when sensor above a given numeric value) ?
cards: - elements: - entity: sensor.zigate_00158d00034f8c03_temperature style: left: 25% top: 57.5% title: température type: state-label - entity: sensor.zigate_00158d00034f8c03_humidity style: left: 25% top: 59.2% title: {{ states('counter.presence_hall')}} type: state-label image: local/Thines3.jpg type: picture-elements
Posts: 3
Participants: 3