Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Hidden function in HEADER_ITEMS.WEATHER not have state argument #805

Open
sebyoga opened this issue Jan 4, 2022 · 0 comments
Open

Hidden function in HEADER_ITEMS.WEATHER not have state argument #805

sebyoga opened this issue Jan 4, 2022 · 0 comments

Comments

@sebyoga
Copy link

sebyoga commented Jan 4, 2022

Hi all ,

Best wishes for this New Year !

Is it possible to have in the HEADER_ITEMS.WEATHER, the possibility to have the hidden function with state argument ?

At this time, i have :

hidden : function(item, state) {
// State is empty / unaivalable
}

We want hide an element from state :

{
            type: HEADER_ITEMS.WEATHER,
            state: "&binary_sensor.porte_d_entree.state",
            states: {
              on: "- Porte d'entrée ouverte",
              off: "- Porte d'entrée fermée", // Don't wont show this 
            },
},

Thanks you so much for this tileboard, is very good !

Best regards,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant