maxwroc/battery-state-card

Is it possible to exclude depending on helper value

sweede-se opened this issue · 2 comments

Hi,

Is it possible to exclude any sensors who's values are below a input_number helper? Have tried the code below but it doesn't work.

filter:
  include:
    - name: attributes.device_class
      value: battery
  exclude:
    - name: state
      value: {{ (states('input_number.batteriniva') | int() }}
      operator: '>'

Don't know what exatly you want, or if is already solved, but simply :

  exclude:
    - name: state
      value: 40
      operator: '>'

@sweede-se Sorry, currently such option is not available.