You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when the tested entity's status contains a space character, the card that should be displayed isn't.
That happens for instance with the following
type: custom:state-switch
entity: sensor.template_lixee_zlinky_tic_tarif_fournisseur
states:
HC BLEU:
type: vertical-stack
cards:
- type: markdown
content: Heures Creuses Jour **BLEU**
I expect a simple markdown card with "Heures Creuses tarif BLEU" to appear as soon as the value of the referenced sensor is "HC BLEU". It actually works with a simple conditional card, but not with state-switch....while whenever the sensor has a value that does NOT contain any space, it works as expected.
I tried quoting the expected states values (with double or single quotes, whatever), but nothing has been helpful.
The text was updated successfully, but these errors were encountered:
Hmmm, I suspect something weird in the sensor status but can't really find what. Just to be sure, I made a quick test with the standard conditional card
type: conditional
conditions:
- condition: state
entity: sensor.template_lixee_zlinky_tic_tarif_fournisseur
state: HP BLEU
card:
type: markdown
content: Heures Pleines tarif **BLEU**
....and this actually works as expected : if my sensor's value is "HP BLEU" then the markdown card is shown as expected
It seems that when the tested entity's status contains a space character, the card that should be displayed isn't.
That happens for instance with the following
type: custom:state-switch entity: sensor.template_lixee_zlinky_tic_tarif_fournisseur states: HC BLEU: type: vertical-stack cards: - type: markdown content: Heures Creuses Jour **BLEU**
I expect a simple markdown card with "Heures Creuses tarif BLEU" to appear as soon as the value of the referenced sensor is "HC BLEU". It actually works with a simple conditional card, but not with state-switch....while whenever the sensor has a value that does NOT contain any space, it works as expected.
I tried quoting the expected states values (with double or single quotes, whatever), but nothing has been helpful.
The text was updated successfully, but these errors were encountered: