The sync_state variable is part of the xknx project for all entity types. In HA you can configure this variable in the KNX-GUI for light and switch. In YAML, sync_state for light and switch brings up an error.
It would be great to use sync_state for all entities.