No history on Doors and Windows only

Hi

I’m strugling to figure out why my doors, garage doors and windows class binary sensors are not showing history…

I’m using following config for sensors:

  - name: "Door Garage Skoda"
    state_topic: "tele/PIR_Down/SENSOR"
    value_template: "{{ value_json['PCF8574-1'].D5 }}"
    payload_on: "1"
    payload_off: "0"
    availability_topic: "tele/PIR_Down/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"
    qos: 0
    device_class: garage_door

  - name: "Door Entry"
    state_topic: "tele/PIR_Down/SENSOR"
    value_template: "{{ value_json['PCF8574-1'].D6 }}"
    payload_on: "1"
    payload_off: "0"
    availability_topic: "tele/PIR_Down/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"
    qos: 0
    device_class: door

On RECORDER here is my config:

recorder:
  db_url: mysql://yyy:xxx@core-mariadb/homeassistant?charset=utf8mb4
  auto_purge: true
  purge_keep_days: 14
  commit_interval: 0
  auto_repack: true
  include:
    domains:
      - switch
      - light
      - sensor
      - climate
      - device_tracker
      - media_player
      - person

    entity_globs:
      - binary_sensor.pir*
      - binary_sensor.door*

  exclude:
    entities:
#      - sensor.vent_effeciency
      - device_tracker.ipad
      #      - sensor.pv_power
      - sensor.total_yield
      - sensor.daily_yield
      #      - sensor.zehnder_bypass_state
      - sensor.zehnder_current_rmot
      - sensor.zehnder_days_to_replace_filter
      - sensor.zehnder_exhaust_airflow
      - sensor.zehnder_exhaust_fan_duty
      - sensor.zehnder_exhaust_fan_speed
      - sensor.zehnder_exhaust_humidity
      #- sensor.zehnder_exhaust_temperature
      - sensor.zehnder_inside_humidity
      #- sensor.zehnder_inside_temperature
      - sensor.zehnder_outside_humidity
      #- sensor.zehnder_outside_temperature
      #      - sensor.zehnder_power_total
      #      - sensor.zehnder_power_usage
      #      - sensor.zehnder_preheater_power_total
      #      - sensor.zehnder_preheater_power_usage
      - sensor.zehnder_supply_airflow
      - sensor.zehnder_supply_fan_duty
      - sensor.zehnder_supply_fan_speed
      #      - sensor.zehnder_supply_humidity
      #- sensor.zehnder_supply_temperature
      - sensor.licznik_mew_rest
    entity_globs:
      #      - sensor*ip*
      - sensor*battery_health

Interesting that all PIR sensors are working correctly…

  - name: "PIR_Kitchen_Veranda"
    state_topic: "tele/PIR_Down/SENSOR"
    value_template: "{{ value_json['PCF8574-1'].D7 }}"
    payload_on: "1"
    payload_off: "0"
    availability_topic: "tele/PIR_Down/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"
    qos: 0
    device_class: motion

Any ideas??? Please…

Hi
Topic bump.