#Badge Visibility option reversed?

1 messages · Page 1 of 1 (latest)

short roost
#

Hi,

I hve da badge with the remaining time of washmashine run.

It stated, it will show the Badge, if all conditions are fullfiled, but it is reversed.

See se screenshot, state is current: ready, so the condition is fullfiled and in the Dashboard it is not shown.
I had it Not equal, but then it would be shown when on ready state instead of the running state.

Am I missing something here or is this a bug?

type: entity
show_name: false
show_state: true
show_icon: true
color: ""
entity: sensor.waschmaschine_end_time
visibility:
  - condition: state
    entity: sensor.waschmaschine_program_phase
    state: ready
short roost
#

Ok, after rebooting into my other OS and looking from there... it works like intended. I guess the other Browser had something weird cached or something...

short roost
#

Ok, i got a bit further... it just worked after reboot, because the state happened to be unknown and that is not ready.

type: entity
show_name: false
show_state: true
show_icon: true
color: ""
entity: sensor.waschmaschine_end_time
visibility:
  - condition: state
    entity: sensor.waschmaschine_program_phase
    state_not: "ready"

This should work and hide the badger whenever the state is ready, but it evaluates always to true.

What I noticed, if go into visual editor, the value field will not have all the states, just unknown and not available.

If I look at the state of the entity it says ready also does the preview, like in the screenshot above. But somehow the condition does not match. The Entity comes from HoN extension, if that matter.

hushed plaza
#

please post a screenshot of the sensor.waschmaschine_program_phase from developer-tools/states

#

What I noticed, if go into visual editor, the value field will not have all the states, just unknown and not available.

This is typical for un-enumerated sensors. The UI has no idea what possible states the sensor could be, so it doesn't offer any suggestions.

#

If the sensor was an enum class it could offer suggestions.

hushed plaza
#

If you can share which integration this is from we can look at how to get the states enumerated correctly.