Help creating mutlple switches (Entities) from one entity please?

Good afteroon,
I’ve very new to Home Assistant and I’ve found some code to get my solar inverter to show up in HASS however it just shows up as a single entity. (See below) What would the best way to go to make these items show up as single items so I could intergrate my inverter to show up with something like this:
https://community.home-assistant.io/t/lovelace-power-wheel-card

Thanks so much for any guidance you could give!

As an example:

  - platform: template
    sensors:
      v_pv_1:
        friendly_name: "v pv 1"
        unit_of_measurement: 'V'
        value_template: "{{ state_attr('sensor.luxpower', v_pv_1') }}"

      v_pv_2:
        friendly_name: "v pv 2"
        unit_of_measurement: 'V'
        value_template: "{{ state_attr('sensor.luxpower', v_pv_2') }}"

Note: I have guessed the sensor names and attributes, you should check these in the developer tools / states menu.

Hi guy - ive got the same luxpower inverter and would love to integrate it into HA, can you point me in the direction of the files needed as i dont see anything on the forum.

thanks

maritn

I too have a Luxpower inverter. Could you point me in the direction of where you got the code from to access the inverter readings please?