Including and Excluding entities from History pane

Hi all,

Possibly been asked before but I couldn’t find a resolution. Running Hass.io with HA 0.99.2.

I exclude many domains and entities from my history. I’ve split its config out into a separate file for ease of manageability like so:

history: !include history.yaml

And in that file I specify the exclusions like so:

# Enables support for tracking changes over time.

# Do not include these in the History:
exclude:
    domains:
      - automation
      - weblink
      - updater
      - group
      - binary_sensor
      - script
      - input_select
      - device_tracker

    entities:
    # System Monitoring
      - sensor.memory_use_percent
      - sensor.processor_use
      - sensor.current_version
      - sensor.last_boot
      - sensor.system_uptime
      
      - sensor.comms_input_status
      - sensor.comms_last_self_test_result
      - sensor.comms_last_test
      - sensor.comms_last_transfer_reason
      - sensor.comms_output_load
      - sensor.comms_power_input
      - sensor.comms_transfer_reason
      - sensor.comms_ups_battery_capacity
      - sensor.comms_ups_battery_temperature
      - sensor.comms_ups_runtime_remaining

(And so on).

This works well. HOWEVER, supposing I want to include one entity from a domain that I have excluded? It looks like an “include:” before my exclusions should work…

# Enables support for tracking changes over time.

# Explicitly include these in the History:

include:
    entities:
      - binary_sensor.33_heated_towel_rail_button

# Do not include these in the History:
exclude:
    domains:
      - automation
      - weblink
      - updater
      - group
      - binary_sensor
      - script
      - input_select
      - device_tracker

    entities:
    # System Monitoring
      - sensor.memory_use_percent
      - sensor.processor_use

(And so on).

This completely breaks the history. The pane is now blank:

Has anybody run into a similar problem?

Regards,

Michael