Breakout Tuya vacuum stats as separate sensor entities

I see in the Tyua integration that vacuum stats like current state and battery level are in the remote entity (vacuum.vacuum_name), but cannot be accessed as standalone sensor entities. It would be nice to have that info available out of the remote too. Something like sensor.vacuum_battery_level and sensor.vacuum_current_state.

this is a temporary work around for anyone looking. You can make a template in the configuration.yaml like this;

template:
  - sensor:
      - name: "My_Vacuum Battery Level"
        unique_id: My_Vacuum_battery_level
        unit_of_measurement: "%"
        device_class: battery
        state: "{{ state_attr('vacuum.My_Vacuum', 'battery_level') }}"

I will say that I am still new so maybe there is an easier solution but it shows up and is usable now. It’s just not part of the source device