Combine 2 sensors

Hi there,

is there an option to combine two sensors into 1 sensor?

sensor.afvalinfo_afval_voor_vandaag
sensor.afvalinfo_afval_voor_morgen

I want to show the state of these sensors on my dashboard so I need just one sensor to show the current state if its not none.

for example the “morgen” sensor state is now PMD and the “vandaag” state is none, so the result needs to be PMD.

If both sensors states are none the result should be none.

What if both sensors are not none?

If the answer is “show both” then use an auto entities card with a filter to exclude the state none

type: custom:auto-entities
card:
  type: entities
  title: Your Title Here
filter:
  exclude:
    - state: none
  include:
    - entity_id:
        - sensor.afvalinfo_afval_voor_vandaag
        - sensor.afvalinfo_afval_voor_morgen
show_empty: true
sort:
  ignore_case: true
  method: name

Well I’ve to dive into this, maybe it’s going to do the job.