Revealing the Challenges of Smart Rainwater Harvesting for Integrated and Digital Resilience of Urban Water Infrastructure

: Smart rainwater harvesting (RWH) systems can automatically release stormwater prior to rainfall events to increase detention capacity on a household level. However, impacts and beneﬁts of a widespread implementation of these systems are often unknown. This works aims to investigate the effect of a large-scale implementation of smart RWH systems on urban resilience by hypothetically retroﬁtting an Alpine municipality with smart rain barrels. Smart RWH systems represent dynamic systems, and therefore, the interaction between the coupled systems RWH units, an urban drainage network (UDN) and digital infrastructure is critical for evaluating resilience against system failures. In particular, digital parameters (e.g., accuracy of weather forecasts, or reliability of data communication) can differ from an ideal performance. Therefore, different digital parameters are varied to determine the range of uncertainties associated with smart RWH systems. As the results demonstrate, smart RWH systems can further increase integrated system resilience but require a coordinated integration into the overall system. Additionally, sufﬁcient consideration of digital uncertainties is of great importance for smart water systems, as uncertainties can reduce/eliminate gained performance improvements. Moreover, a long-term simulation should be applied to investigate resilience with digital applications to reduce dependence on boundary conditions and rainfall patterns.


Introduction
A way to evaluate the performance and functionality of urban water infrastructure including different extension strategies is by measuring the term resilience. In the literature, resilience can be considered as a form of robustness against system failures and is determined by evaluating the loss of system functionality [1][2][3]. For example, failure magnitude and duration are used to calculate the severity and to evaluate the resilience of urban drainage networks (UDNs) against structural failures [3]. For UDN, urban flooding, combined sewer overflows (CSOs) and inflow quantity to wastewater treatment plants are commonly used metrics to measure degree of resilience in UDNs [3,4]. Furthermore, Dong et al. (2017) applied this method to evaluate the impacts of a sustainable expansion of an UDN with green infrastructure (e.g., green roof, permeable pavement and storage tanks) to cope with future uncertainties (e.g., climate change, and urbanization) [4].
In contrast to other elements of green infrastructure, the main aim of rainwater harvesting (RWH) systems is to retain and store rainwater during precipitation events for usage in non-potable drinking water applications such as irrigation or toilet flushing during dry weather periods [5]. Additionally, RWH systems represent a temporary storage volume for rainwater, thereby influencing runoff behavior into UDN. Therefore, 'water supply efficiency' and 'detention/stormwater capture efficiency' are commonly applied as metrics for evaluation at the household scale [6][7][8]. In case of a large-scale implementation, RWH systems can improve water resource recovery due to the substitution of drinking water [9] and performance of UDN (e.g., reducing flood volume) due to the detention of rainwater [10]. However, detention efficiency is strongly dependent on user behavior and withdrawal quantities in relation to the detention volume. This can be a limitation especially for traditional systems, which are therefore referred to as uncontrolled RWH systems [6,11]. For example, higher withdrawal volumes empty RWH systems faster, therefore additional storage volumes can be provided for stormwater detention.
In this context, the Internet of Things (IoT) concept as part of smart cities assists the development of communicating 'items' integrated into the overall system [12]. Additionally, low-cost sensors combined with innovative communication technologies (e.g., NB-IoT, LoRaWAN, Sigfox) support a large-scale implementation too. Consequently, this development enables new possibilities for the management of urban water infrastructure in a smart city framework [13]. For example, this concept is being widely applied in the development of smart RWH systems [14][15][16][17]. In contrast to uncontrolled RWH systems, smart RWH systems are equipped with a remotely controllable discharge valve, which enables an automatic release of stored stormwater prior to rain events to provide additional detention volumes. Therefore, weather forecasts are commonly integrated into control strategy, and predicted amounts and patterns of rainfall are used to determine discharge volume and closing time, respectively. However, performance is strongly dependent on the quality of the weather forecast and the predicted amount of precipitation to ensure a fully filled RWH system is available at the end of the precipitation event. Therefore, applying smart RWH systems leads to a conflict between the two contrary objectives: (1) store as much rainwater as possible for irrigation purposes and (2) provide as much detention volume as possible for UDN performance.
While the potential for smart RWH systems has been well established at the household level, impacts of a widespread implementation are to a large extent unknown. In contrast to existing infrastructure, smart RWH systems represent dynamic systems, and urban resilience is influenced by the interaction of the coupled systems, RWH units and UDN, including performance of digital system components. In particular, digital parameters may differ from the perfect performance, whereas the performance is influenced by the accuracy of weather forecasts or reliability of data communications in the case of smart RWH. Consequently, digitized systems require new definitions of resilience [18], while the effects of deviations in digital parameters are largely unknown and hardly addressed in literature.
To fill this research gap, this work aims to investigate the impact of a large-scale implementation of smart RWH systems on the resilience of urban water infrastructure and to determine influences of deviations on digital parameters associated with smart RWH systems. First, an integrated resilience parameter is presented, in which digital parameters are considered as uncertainties for classic and quantifiable metrics from urban water infrastructure. In the second step, digital parameters are determined for smart RWH systems, which can also significantly influence the results in the case of deviations. Afterwards, an Alpine municipality is hypothetically retrofitted with smart rain barrels (SRBs) as representative of smart RWH systems, and finally the influence of different digital system configurations on resilience is compared.

Integrated Resilience Index for the Interlinked Systems Smart Rainwater Harvesting and UDN
For this work, a two-step approach was used to determine influences of digital uncertainties associated with smart RWH on resilience. First, classic and quantifiable metrics from urban water infrastructure were combined to calculate resilience for the interlinked systems RWH and UDN. For this work, combined sewer overflows (CSO) and empty Water 2021, 13,1902 3 of 15 RWH system were investigated as system failures for UDN and RWH systems, respectively. Therefore, CSOs with discharged pollution load (m CSO ) divided by total quantity of tracer mass introduced into the system (m total ) was used as a severity measurement for CSO (Sev CSO ). Furthermore, the amount of water demand that cannot be covered by the RWH system, expressed by the difference between the delivered rainwater (V RWH ) and total water demand for irrigation (V IRR ), divided by V IRR , was used as the severity measurement for RWH (Sev RWH ). Subsequently, the resilience index (Res) was defined by: in which w CSO and w RWH are the weights for respective severities; N rain is number of rain events; t 1 and t 2 are start and end time of rain events; m tracer,CSO,i and m tracer,i are tracer mass in CSO and total induced tracer mass; t 0 and t m are start and end time of the irrigation period; Q irr,need and Q irr,RWH are the daily irrigation demand (based on daily evapotranspiration, for more information, refer to Section 2.2) and daily irrigation demand covered by RWH systems. In the second step, possible deviations of perfect performance for digital system components were considered as uncertainties. For this purpose, the performance of different digital parameters was varied and applied to the system to determine the range of uncertainties associated with smart RWH systems.
As described above, smart RWH systems are characterized by their ability to automatically release stored rainwater prior to rain events based on weather forecasts. There-fore, with reference to smart RWH approaches [8][9][10][11], the following digital uncertainties could be identified: • Accuracy of weather forecast: predicted rainfall and accuracy of weather forecasts in-fluence the (automatic) emptying of the smart RWH units and therefore the effectiveness of RWH and sewer performance, • Reliability of data communication: communication technologies transmit measurement data and control commands, whereas transmission quality (e.g., number of successful transmissions) is dependent on chosen communication technology.
These uncertainties can show the ideal forms of behavior but may also differ from the ideal value or perfect performance and thus have an impact on the entire system. For example, data communication can be without packet losses, but may also imply major packet losses depending on the chosen communication technology. Therefore, the degree of these factors was varied and applied to the system in this work to determine the range of uncertainties associated with smart RWH systems.

Integrated Modeling of Urban Water Infrastructure
The open-source software "Smartin" [15] (available online https://github.com/iutibk/Smartin-Toolbox/tree/master/smartin, accessed on 22 February 2021) was utilized for simulations. "Smartin" is capable of modeling and simulating IoT-based RWH systems in a coupled model of a UDN and water distribution network (WDN) in real-time. The two Water 2021, 13,1902 4 of 15 main components of "Smartin" are the following Python packages: (1) PySWMM [19] as a Phyton wrapper for the hydrodynamic Storm Water Management Model (SWMM5) [20] to simulate run-off processes in UDN; and (2) Python Epanet Toolkit provided from Open Water Analytics (https://github.com/OpenWaterAnalytics/epanet-python/tree/ dev/epanet_python/epanet_python, (accessed on 14 August 2019) for Epanet 2.2 [21] to analyze pressure and water quality in WDNs. Additionally, "Smartin" provides a very high spatial (property level) and temporal data resolution (seconds in UDN; hours in WDN) and supports individual control of each implemented RWH unit based on actual system states.
For UDN, the RWH systems were implemented as a low impact development (LID) type rain barrel. Each rain barrel implemented can be controlled individually by changing the drain coefficient. Based on high-resolution weather forecasts, future inflow to each implemented RWH unit was estimated, and discharge valve was opened in case the available detention volume was lower than the estimated inflow volume. Afterwards, the discharge valve was closed if either available detention volume was equal to the estimated inflow (if the rain barrel volume was greater than the estimated inflow) or before a period with a predicted peak intensity (if the rain barrel volume was lower than the estimated inflow). For dry weather, crop evapotranspiration was used as a reference value to determine irrigation demand, requiring temperature data as an input variable for an applied Hargreaves equation [22]. Afterwards, rainwater was extracted from the RWH system to satisfy irrigation demand, supplemented with drinking water in case stored rainwater could not meet irrigation demand.
When introducing "Smartin" [15], a simplified control strategy for wet weather was implemented and all discharge valves were opened simultaneously. However, in later work, "Smartin" was extended by more advanced control strategies based on sewer conditions [23]. These strategies were used for this work, and supplementary to these, "Smartin" was further extended by including uncertainties from data transmission losses for different communication technologies in the control strategy. Therefore, a random generator was implemented, which evaluates the successful digital transmission of each control command (e.g., opening discharge valve) depending on characteristics of chosen communication technology. Additionally, uncertainty in real weather forecasts was included in the control strategy.

Case Study
As a case study, an existing UDN of an Alpine municipality located in Austria was used. The UDN was designed as a combined sewer system with a general flow direction to north-east ( Figure 1) and included an overdesigned CSO structure. According to Austrian standards, these structures should have a volume of 15 m 3 per hectare of immediate runoff area [24], requiring a total volume of 154 m 3 to fulfil current state of the art. However, CSO performance can only be improved slightly beyond this point, resulting in the influence of CSO metric on resilience index decreasing significantly beyond this point, whereas the impact of RWH performance increases substantially. Subsequently, uncontrolled RWH systems (with frequent use) represent the optimal extension solution, as most rainwater can be provided. Additionally, smart rain barrels are used to showcase smart RWH systems, which support an easy large-scale implementation of additional storage to improve the performance of existing and systems with an insufficient performance (e.g., under-designed due to increasing urbanization or climate change).
Therefore, the CSO structure was re-dimensioned to 60% of the required size (new storage volume of 91.5 m 3 ) to investigate the effects of different extension strategies for detention volumes (e.g., central enlargement of CSO structures or decentralized implementation of SRBs). Furthermore, the calibrated SWMM5 input file of Oberascher et al. [15] was used for simulations, which has a good level of detail at the property level. In total, 630 properties were connected to the drainage network, which were further subdivided into green, roof and traffic areas. storage volume of 91.5 m 3 ) to investigate the effects of different extension strategies detention volumes (e.g., central enlargement of CSO structures or decentralized imp mentation of SRBs). Furthermore, the calibrated SWMM5 input file of Oberascher et [15] was used for simulations, which has a good level of detail at the property level. total, 630 properties were connected to the drainage network, which were further sub vided into green, roof and traffic areas. For simplicity, CSO performance was evaluated by using a tracer for pollution loa It was assumed that wastewater and rainwater have a concentration of 1 mg/L and 0 mg respectively, for evaluations. Consequently, the concentration and quantity of discharg pollution loads depended on the dilution of wastewater with rainwater, which allowed different assessment of small CSO events with low discharge volumes from large eve with high dilution rates.
For simulations, precipitation and temperature data were extracted from a near weather station (distance of 6 km) for 2018. Precipitation data is available in a tempo resolution of 1 min, whereas temperature is measured in 10 min steps. Additionally, r high-resolution weather forecasts were extracted from the integrated nowcasting throu a comprehensive analysis (INCA) system [25] for the weather station described abo The weather forecasts are available in 15 min time steps for the next 24 h every 15 m whereas a weather forecast period (or accumulation period) and update time steps of and 2 h were assumed for simulations. For simplicity, CSO performance was evaluated by using a tracer for pollution loads. It was assumed that wastewater and rainwater have a concentration of 1 mg/L and 0 mg/L, respectively, for evaluations. Consequently, the concentration and quantity of discharged pollution loads depended on the dilution of wastewater with rainwater, which allowed a different assessment of small CSO events with low discharge volumes from large events with high dilution rates.
For simulations, precipitation and temperature data were extracted from a nearby weather station (distance of 6 km) for 2018. Precipitation data is available in a temporal resolution of 1 min, whereas temperature is measured in 10 min steps. Additionally, real high-resolution weather forecasts were extracted from the integrated nowcasting through a comprehensive analysis (INCA) system [25] for the weather station described above. The weather forecasts are available in 15 min time steps for the next 24 h every 15 min, whereas a weather forecast period (or accumulation period) and update time steps of 4 h and 2 h were assumed for simulations.
The presented approach was first tested under a single rain event with a rain sum of 12.9 mm (Table 1) and the severity of CSO events was illustrated for different digital parameters. In contrast, irrigation processes mainly take place in Austria during summerhalf years (21 March-23 September) [26], therefore the summer-half year 2018 was chosen as an investigation period to determine the integrated resilience parameter. During this period, daily precipitation was between 0 and 32 mm/day with a total precipitation amount of 424 mm, whereas daily mean air temperature varied between −3 and +25 • C. The smart rain barrel (SRB) concept presented in [15] was chosen as a representative of smart RWH systems. The SRB is an IoT-based micro storage with a storage volume between 200 and 500 L (for more details on dimensions, refer to [15]). Therefore, a conventional rain barrel available in hardware stores was extended by a remotely (and centrally) controllable discharge valve, whereas control commands (e.g., opening discharge valve) and measurement data (e.g., actual filling depth) were exchanged via LoRaWAN. The SRB was under operation during the summer months, whereas they are removed during the winter months due to frost in Austria. Additionally, precipitation volume was low in form of snow during the winter period. Therefore, usually no CSO or flooding events occurred in the winter period. The SRBs are intended for smart city developments including a multi-actor partnership between network operators (material costs) and property owners (e.g., installation and maintenance work).

Description of the Investigated Scenarios
For an overview of all investigated scenarios, refer to Table 2.

Scenarios and Uncertainties of Examination Parameters
The following parameters were used as boundary conditions for the analysis:

•
For the SRBs, 384 properties could be identified as possible installation locations, as these properties were indicated as residential areas which have place for installation and green area for irrigation. To consider different degrees of implementations as uncertainty factors for the distribution, the properties were ordered by roof area size and varied in 10% steps between 0 and 100% beginning with the smallest roof areas. It was assumed that each property has a green area of 25 m 2 for irrigation. CSO structure was below 1.0 m at the update time step, while they remained closed if the filling depth was greater than 1.0 m.

Scenarios and Uncertainties of Digital Parameters
As described above, influences of the digital uncertainties, namely weather forecast and data communication, were considered in this work:

•
For weather forecasts, a deviation of ±25% was assumed, therefore the predicted amount of rainfall was either reduced or increased by 25%, as illustrated in Figure 2b.

•
The communication technology LoRaWAN operates in public frequency bands and can be used by anyone, therefore the amount of packet losses in LoRaWAN is strongly depending on network loads. Furthermore, LoRaWAN uses spreading factors (SF7 to SF12) to spread signals over channel bandwidths, whereas a higher spreading factor increases transmission distance and packet losses [27,28]. Consequently, three different scenarios were defined, namely good network quality (low packet losses with SF7 and low distribution with 1000 IoT-devices), average network quality (average packet losses and medium distribution with 5000 IoT-devices) and bad network quality (high packet losses with SF12 and high distribution with 8000 IoT-devices). Packet losses were calculated based on the findings of Blenn and Kuipers [27] and are highlighted in Figure 2a.

Scenario Combinations
For resilience analysis, each defined scenario was combined with each other, resulting in 180 scenario combinations. This simplified approach was chosen because simulation times for the summer-half year are up to three days (depending on the degree of penetra-tion). The investigated scenario combinations were compared with uncontrolled RWH systems and an expansion of the existing CSO structure to the state of the art. As performance of uncontrolled RWH systems is strongly dependent on acceptance probability and user behavior, it was assumed that rainwater is extracted for irrigation purposes from the RWH system every second time. Additionally, the existing UDN (without any RWH systems) was utilized as a reference state. In total, 192 simulations were carried out. The single rain event was used to show the impact of smart RWH systems and assigned uncertainties on tracer load in CSO events over time, while also allowing a comprehensive discussion about associated challenges and difficulties in detail. Therefore, a penetration rate of 100% (corresponding to 384 smart rain barrels with a total storage volume of 181 m 3 ) was assumed.

Results and Discussion
The single rain event showed a total amount of precipitation of 12.9 mm but was characterized through frequent rain breaks during the event (Figure 3a). Furthermore, two CSO events were apparent for the reference state without any RWH systems, causing a total tracer load in CSO overflow of 0.151 kg. At the beginning of the event, a partial filling of each RWH system implemented was assumed. Therefore, the start of a CSO event was slightly delayed for uncontrolled RWH systems as additional detention volumes were provided, which then followed the pattern of the reference state. In contrast, smart RWH systems could be emptied prior to rain events. Consequently, more additional detention volume was available and the start of the CSO event could be further postponed. However, afterwards each investigated scenario had a different pattern. Figure 3b shows influences of deviations assigned with weather forecast, whereas for simulations, an average network quality for data communication was assumed (i.e., packet losses 28.3%). For the first CSO event, two behaviors were particularly noticeable: (1) an increase of the predicted amount of precipitation can provide more detention volume and thus reduce CSO volumes and subsequently tracer mass; and (2) a simultaneous opening of all discharge valves (as applied in the control strategy 'RTC all') sharply increases m CSO at the end of the first CSO event. This can be explained by the fact that the smart RWH system is fully filled at the update time step at 10:00, and all discharge valves are opened as further precipitation is forecasted for the next 4 h. Consequently, this process creates an artificial CSO event. In contrast, the control strategy 'RTC CSO depths' considers system states, and as CSO depth is higher than 1.0 m at 10:00, this discharge process is avoided/postponed. The intermediate results at 12:00 show that a coordinated strategy ('RTC CSO depths') clearly results in a more significant improvement compared to an uncoordinated strategy ('RTC all'). Additionally, an overestimation of forecasted precipitation amount has a positive effect on stormwater performance.
However, afterwards, this exemplary evaluation also shows the complexity of rain events with longer durations and frequent rain breaks. At 14:00, CSO depth is below 1.0 m and discharge valves of smart RWH systems are opened in the control strategy 'SRB CSO depth', as further precipitation is forecasted. Therefore, the filling depth of CSO structure is higher for this control strategy from that time onwards. Consequently, this situation causes a significant increase in m CSO in the second CSO event and therefore, decreases efficiency compared to the control strategy 'RTC CSO depth' (although better adapted to the overall system).
worsening of system performance for the second CSO event compared to other smart RWHs scenario combinations.

Long-Term Simulation (Summer-Half Year 2018)
For scenario combinations with any kind of RWH system, the number of RWH systems varies between 38 and 384 units, corresponding to a degree of penetration of 10% and 100%, respectively. Therefore, additional storage volume is in the range of 10.3 and 181.0 m³. The results for investigated scenario combinations vary between 2.514 and 2.843 kg for mCSO and 121 and 308 m³ for VRWH. In contrast to the presented single rain event above, dependence on selected boundary conditions at the beginning of simulation decreases through considering a longer time period. Therefore, results of the complete summer half-year 2018 allow a clear distinction in effectiveness of different control strategies. As the results show, each investigated scenario combination achieves an improvement compared to the reference state, whereby the effectiveness is influenced by the three following factors.
First, there is a strong dependence between effectiveness and degree of penetration for all investigated scenarios. As expected, a higher number of any kind of RWH systems implemented improves system improvements more. Additionally, the spreading of This pattern is also noticeable in Figure 3c, which shows different scenarios for data communication with real weather forecasts (no deviation of predicted amount of precipitation). The communication network with higher quality has lower packet losses, resulting in more control commands (e.g., open discharge valves) that can be successfully transmitted. Consequently, a higher number of discharge valves were opened, and thus additional detention volumes could be provided. As before, two different trends could be distinguished. For the control strategy 'RTC CSO depth', a higher quality of communication network clearly reduces m CSO for the first CSO event. However, due to the high number of smart RWH systems discharged, it subsequently causes a higher degree of filling in the CSO structure and has therefore a negative effect on the second CSO event. In contrast, the opposite case is noticeable for the control strategy 'RTC all'. First, a good quality communication network leads to a higher increase of m CSO at the end of the first CSO event. Second, through this additional CSO discharge, system capacity used is lower and thereby causes the smallest increase in m CSO in the second CSO event.
Finally, Figure 3d summarizes all investigated scenario combinations and highlights the range of uncertainties associated with smart RWH scenarios.
As a central conclusion, it can be summarized that the effectiveness of smart RWH systems is highly dependent on boundary conditions and precipitation patterns for single rain events. For example, scenario-combinations, which show the best improvements for the first CSO event (e.g., a control strategy based on actual sewer performance, an overestimation of amount of precipitation and a good network quality) lead to a noticeable worsening of system performance for the second CSO event compared to other smart RWHs scenario combinations.

Long-Term Simulation (Summer-Half Year 2018)
For scenario combinations with any kind of RWH system, the number of RWH systems varies between 38 and 384 units, corresponding to a degree of penetration of 10% and 100%, respectively. Therefore, additional storage volume is in the range of 10.3 and 181.0 m 3 . The results for investigated scenario combinations vary between 2.514 and 2.843 kg for m CSO and 121 and 308 m 3 for V RWH . In contrast to the presented single rain event above, dependence on selected boundary conditions at the beginning of simulation decreases through considering a longer time period. Therefore, results of the complete summer half-year 2018 allow a clear distinction in effectiveness of different control strategies. As the results show, each investigated scenario combination achieves an improvement compared to the reference state, whereby the effectiveness is influenced by the three following factors.
First, there is a strong dependence between effectiveness and degree of penetration for all investigated scenarios. As expected, a higher number of any kind of RWH systems implemented improves system improvements more. Additionally, the spreading of associated uncertainties is increasing with degree of penetration, as highlighted for m CSO and V RWH in Figure 4. This can be explained by the fact that a higher number of RWH systems has more potential for improvements and consequently, uncertainties also have a higher impact. In this context, a coordinated control strategy based on sewer conditions ('RTC CSO depth') shows lower variation in results than an uncoordinated control strategy ('RTC all').

Integrated Resilience Analysis
The Resilience index (Res) was calculated for the summer half-year 2018. Total irrigation demand was estimated based on the model of Oberascher et al. (2021) [15] and was 8800 m³ in total (VIRR), which corresponds to approximately 10 days of average water consumption for the case study. Furthermore, induction of tracer mass into the system was only considered for wet weather and was found to be 13.078 kg (mtotal). The weighting Second, the effectiveness of smart RWH systems depends on applied control strategy. As can be seen in Figure 4, there is a clear distinction between a coordinated control strategy and an uncoordinated control strategy for stormwater performance. For example, each scenario combination of the control strategy 'RTC CSO depth' provides better results for m CSO than 'RTC all'. In contrast, there are only small differences in V RWH that are noticeable. Interestingly, uncontrolled RWH shows only marginal differences in terms of m CSO compared to the control strategy 'RTC all', although a reduced abstraction of rainwater was assumed. In contrast, uncontrolled RWH systems still represent an optimum scenario for V RWH , suggesting that the RWH systems were implemented to provide a volume which is too small to satisfy all irrigation requirements. Additionally, an overestimation of precipitation in weather forecasts results in not fully filled smart RWH systems at the end of the rain event and therefore reduces the amount of usable rainwater for irrigation.
Third, the efficiency of smart RWH systems implemented is dependent on investigated uncertainty and differ between the applied control strategy and considered subsystem (e.g., RWH and UDN). For example, uncertainties, providing more additional detention volume (e.g., increasing amount of precipitation, low packet losses) cause an increase of m CSO , but decrease V RWH for control strategy 'RTC CSO depth'. Conversely, uncertainties providing less additional detention volume (e.g., a decreasing amount of precipitation forecasted, high packet losses) achieve the opposite result, namely a worsening of m CSO and an increasing of V RWH . Therefore, a scenario combination of 'high rain' and 'good network quality' illustrates this effect in Figure 4. Interestingly, a decreasing amount of precipitation forecasted and/or high packet losses improve both m CSO and V RWH for the control strategy 'RTC all'. If less rainwater is simultaneously discharged from the smart RWH systems, the probability of artificial CSO events is reduced. As a result, less tracer mass is discharged and subsequently, m CSO is improved. Furthermore, this approach also causes an improvement of V RWH , as the discharge volume of the SRBs is lower, and therefore, more rainwater can be provided for irrigation. To display this effect, the scenario combination 'low rain' with 'bad quality' has been marked in Figure 4.
In summary, effectiveness is strongly dependent on the additional volume implemented (e.g., increases occur with the degree of penetration), whereby the control strategy applied has a significant influence on efficiency (e.g., coordinated strategy performs better than uncoordinated strategy). Subsequently, effectiveness is also influenced by digital parameters (e.g., deviations in weather forecasts, packet losses in data communication), whereby these influences differ for the control strategy applied and the considered subsystem (e.g., RWH or UDN).

Integrated Resilience Analysis
The Resilience index (Res) was calculated for the summer half-year 2018. Total irrigation demand was estimated based on the model of   [15] and was 8800 m 3 in total (V IRR ), which corresponds to approximately 10 days of average water consumption for the case study. Furthermore, induction of tracer mass into the system was only considered for wet weather and was found to be 13.078 kg (m total ). The weighting were are chosen to be 0.8 and 0.2 for w CSO and w RWH , respectively, considering local preferences to improve CSO performance. Then, these values were used to calculate the integrated resilience index (Res) for all investigated scenarios, as shown in Figure 5.
The reference state (CSO volume of 91.5 m 3 ) and the extension of the CSO structure to fulfil current regulations (new CSO volume of 154 m 3 ) are only influenced by CSO performance, and Res was calculated to be 0.626 and 0.640, respectively. In contrast, Res is based on CSO and RWH performances for all scenario combinations with any kind of RWH and depends on the degree of penetration. Therefore, Res ranges between 0.630 and 0.687 for uncontrolled RWH systems, whereas it varies between 0.629 and 0.701 for smart RWH systems. Water 2021, 13, x FOR PEER REVIEW 13 of 16 The reference state (CSO volume of 91.5 m³) and the extension of the CSO structure to fulfil current regulations (new CSO volume of 154 m³) are only influenced by CSO performance, and Res was calculated to be 0.626 and 0.640, respectively. In contrast, Res is based on CSO and RWH performances for all scenario combinations with any kind of RWH and depends on the degree of penetration. Therefore, Res ranges between 0.630 and 0.687 for uncontrolled RWH systems, whereas it varies between 0.629 and 0.701 for smart RWH systems.
The extension of the CSO structure by 62.5 m³ corresponds to an additional storage volume of approximately 135 rain barrels and thus a penetration rate of 35%. As can be seen in Figure 5, all scenario combinations with RWH systems show an improvement in Res at this degree of penetration, which is mainly due to drinking water savings. Therefore, RWH systems represent a good alternative for necessary extensions of existing urban water infrastructure. With a higher degree of penetration, the influence of CSO performance on Res increases.
Additionally, smart RWH systems have the ability to further improve Res, but the range of uncertainties associated with a smart RWH system increases with a higher degree of penetration. Interestingly, however, an unfavorable scenario combination for digital parameters can also significantly reduce system resilience compared to uncontrolled RWH systems.
Furthermore, achievable results are strongly influenced by current conditions (e.g., existing infrastructure) and desired requirements for optimization (in this work improving RWH and/or UDN) and can therefore not be predicted easily. For example, an increase in precipitation does not always improve CSO performance, as shown by the control strategy 'RTC all'. Consequently, considering uncertainties of digital parameters is of the greatest importance for successfully realizing smart water systems.
Finally, the recommended extension strategy is strongly related on preferred performance improvements. In this context, the achievable results are between the two extreme cases: (1) CSO extension shows a clearly better improvement if the focus is only on CSO The extension of the CSO structure by 62.5 m 3 corresponds to an additional storage volume of approximately 135 rain barrels and thus a penetration rate of 35%. As can be seen in Figure 5, all scenario combinations with RWH systems show an improvement in Res at this degree of penetration, which is mainly due to drinking water savings. Therefore, RWH systems represent a good alternative for necessary extensions of existing urban water infrastructure. With a higher degree of penetration, the influence of CSO performance on Res increases.
Additionally, smart RWH systems have the ability to further improve Res, but the range of uncertainties associated with a smart RWH system increases with a higher degree of penetration. Interestingly, however, an unfavorable scenario combination for digital parameters can also significantly reduce system resilience compared to uncontrolled RWH systems.
Furthermore, achievable results are strongly influenced by current conditions (e.g., existing infrastructure) and desired requirements for optimization (in this work improving RWH and/or UDN) and can therefore not be predicted easily. For example, an increase in precipitation does not always improve CSO performance, as shown by the control strategy 'RTC all'. Consequently, considering uncertainties of digital parameters is of the greatest importance for successfully realizing smart water systems.
Finally, the recommended extension strategy is strongly related on preferred performance improvements. In this context, the achievable results are between the two extreme cases: (1) CSO extension shows a clearly better improvement if the focus is only on CSO performance (e.g., a degree of penetration of 80% (approximately 150 m 3 ) and advanced RTC has the same impact on CSO performance as an CSO extension (65 m 3 )); and (2) smart RWH systems use rainwater for irrigation processes reducing drinking water demand, which is not the case with CSO extension. Therefore, the resilience index is strongly influenced by the weighting factors chosen, which subsequently influences the best extension strategy.

Further Discussion and Outlook
In the chosen approach, resilience is determined based on classic definitions of resilience, and additionally, deviations of digital parameters from perfect performance are considered as uncertainties in the inputs. Although this approach highlights the importance of considering digital resilience, it poses a challenge for interpretating the results. For example, it is not easy to determine which digital uncertainty causes the decrease in resilience. Therefore, a more straightforward method is required in future work to facilitate the interpretation of the impact of individual digital uncertainties associated with smart RWH systems. For example, these requirements can be met by defining a new (digital) resilience metric, which includes the performance curves of digital components.
Additionally, the performance of UDN was evaluated based on tracer mass in CSO events, assuming that the tracer is only induced in wastewater. This resulted in a certain dilution effect, and therefore, lower CSO events had a higher impact. However, as the results demonstrated, improvements are strongly dependent on the current situation (e.g., in this case existing infrastructure). Therefore, further work should use real pollution loads instead of tracer mass. Additionally, the method used herein did not consider wash-off processes of different surfaces, meaning that the 'first flush' effect was mimicked inadequately. For the hydraulic-dynamic simulation, a high-resolution model at the subcatchment level subdivided by different surface types was used to investigate the effects of IoT-based micro reservoirs on UDN. Consequently, future work should also include time and area-dependent pollution models for adequate simulation of pollution loads.

Conclusions
In this work, the impact of a large-scale implementation of smart rainwater harvesting (RWH) systems on resilience of urban water infrastructure was analyzed. Smart RWH systems are characterized by automatically releasing stored rainwater based on weather forecasts prior to rain events to increase detention capacity, therefore influencing both the RWH unit and urban drainage network (UDN). Additionally, digital parameters (e.g., weather forecasts, data communication and applied control strategies) may differ from the perfect performance and thus influence overall system performance. To evaluate these impacts, classic and quantifiable metrics of UDN and RWH systems for resilience were combined by using uncertainty assessments caused through digital parameters (e.g., source of uncertainties are deviations in predicted amount of precipitation and packet losses of control commands). Afterwards, an Alpine municipality was hypothetically retrofitted with smart rain barrels as an IoT-based solution for smart RWH.
Based on the obtained results, the following main conclusions can be drawn for large-scale implementation of smart RWH systems:

•
To evaluate the resilience of digital systems, a longer period should be considered, as the performance during single events is very dependent on boundary conditions and rainfall patterns. • Smart RWH systems provide the opportunity to automatically release stormwater prior to rain events and can thereby further increase integrated system resilience (e.g., reducing combined sewer overflow events while providing a sufficient amount of rainwater for non-potable usages). Therefore, a large-scale decentralized retrofitting of existing infrastructure with smart RWH systems represents a good alternative for required extensions of existing and under-designed urban water infrastructure. • However, results of the integrated resilience index are influenced by weighting factors chosen. Therefore, recommended extension strategies were strongly related on preferred performance improvements (e.g., CSO and/or RHW optimization). • Additionally, the importance of a coordinated integration and real-time control increases with number of smart RWH units implemented, as the potential for improvements (or degradation) of system performance largely depends on the storage volume added.
• Furthermore, a sufficient consideration of digital uncertainties (e.g., reliability of data transmission, accuracy of weather forecasts) is of the greatest importance for smart water systems, as associated uncertainties can reduce/eliminate otherwise obtained performance improvements. Funding: This publication was produced as part of the "Smart Water City" project. This project is funded by the Austrian Climate and Energy Fund and is part of the program "Smart Cities Demo-Living Urban Innovation 2018" (project 872123).

Data Availability Statement:
The code used for the simulations is publicly available in the GitHub repository (https://github.com/iut-ibk/Smartin-Toolbox/tree/master/smartin, accessed on 22 February 2021), whereas case study data is not publicity available because it contains existing infrastructure data of water distribution and urban drainage network including personalized water consumption data.