How to set default or ignore unavailable in value_template calculation?

      p1:
        entity_id: sensor.pc191ha_series2_power
        unit_of_measurement: "W"
        icon_template: mdi:home
        friendly_name: "Fridge 1"
        value_template: >
          {% if states('sensor.pc191ha_series2_power') == 'unavailable' %}
            0
          {% else %}
            {{states('sensor.pc191ha_series2_power')}}
          {% endif %}

      home_wattage:
        friendly_name: 'Home Wattage'
        value_template: "{{ (1000 + states('sensor.pc191ha_series2_5_power')|float + \
                        states('sensor.pc191ha_series2_4_power')|float + \
                        states('sensor.pc191ha_series2_3_power')|float + \
                        states('sensor.pc191ha_series2_2_power')|float + \                     
                        states('sensor.p1')|float) }}"
        unit_of_measurement: "W"         

How can I assign a zero value or ignore error directly into home_wattage’s value_template so I don’t have to create another sensor, such as p1, for each of the entities?

      home_wattage:
        friendly_name: 'Home Wattage'
        value_template: >
          {{ (1000 + states('sensor.pc191ha_series2_5_power')|float(0) + 
                     states('sensor.pc191ha_series2_4_power')|float(0) + 
                     states('sensor.pc191ha_series2_3_power')|float(0) + 
                     states('sensor.pc191ha_series2_2_power')|float(0) +                     
                     states('sensor.p1')|float(0) ) }}
        unit_of_measurement: "W" 

Or if you want the whole senser to be unavailable when any of the source sensors are unavailable:

      home_wattage:
        friendly_name: 'Home Wattage'
        value_template: >
          {{ (1000 + states('sensor.pc191ha_series2_5_power')|float(0) +
                     states('sensor.pc191ha_series2_4_power')|float(0) +
                     states('sensor.pc191ha_series2_3_power')|float(0) +
                     states('sensor.pc191ha_series2_2_power')|float(0) +                   
                     states('sensor.p1')|float(0) ) }}
        unit_of_measurement: "W" 
        availability_template: >
          {{ states('sensor.pc191ha_series2_5_power')|is_number and
             states('sensor.pc191ha_series2_4_power')|is_number and
             states('sensor.pc191ha_series2_3_power')|is_number and
             states('sensor.pc191ha_series2_2_power')|is_number and                 
             states('sensor.p1')|is_number ) }}

thanks. That works and much simplier