TileBoard icon indicating copy to clipboard operation
TileBoard copied to clipboard

Hidden function in HEADER_ITEMS.WEATHER not have state argument

Open sebyoga opened this issue 3 years ago • 0 comments

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,

sebyoga avatar Jan 04 '22 10:01 sebyoga