Hi,
I’m just trying a simple example of the decluttering template but I have some problems using the if statement. Can someone please point me to the correct behavior.
This is the simple/test template code
type: custom:decluttering-card
template: test
variables:
- usd: true
no matter if I use true or false , there is always a plane shown. I also tried with single or double quotes around the value of usd. Could someone please provide a simple example
This is a part of my stock card (the easy part) but I’m having troubles to use the var usd (true or false) in my template. I have a sensor with the exchange rate and I want to use that sensor in the part of the “primary” where the value of my stock is calculated. If usd is false no exchange rate (or 1) should be used to muliply is usd is true the sensor exchange rate should be used. Could someone please help me out with this if this is a snippet of my template