resoai / TileBoard

A simple yet highly configurable Dashboard for HomeAssistant
MIT License
1.63k stars 278 forks source link

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

Open sebyoga opened 2 years ago

sebyoga commented 2 years ago

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,