diff --git a/homeassistant/components/recorder/__init__.py b/homeassistant/components/recorder/__init__.py index 471e86609ae..83652b7864c 100644 --- a/homeassistant/components/recorder/__init__.py +++ b/homeassistant/components/recorder/__init__.py @@ -249,6 +249,11 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ) exclude = conf[CONF_EXCLUDE] exclude_t = exclude.get(CONF_EVENT_TYPES, []) + if EVENT_STATE_CHANGED in exclude_t: + _LOGGER.warning( + "State change events are excluded, recorder will not record state changes." + "This will become an error in Home Assistant Core 2022.2" + ) instance = hass.data[DATA_INSTANCE] = Recorder( hass=hass, auto_purge=auto_purge,