A method for operating a domestic energy generation installation for self-sufficient electricity supply, and preferably for CO2-neutral, self-sufficient heating provision, primarily for detached and semi-detached houses, wherein said domestic energy generation installation has a storage battery unit, a fuel cell unit, an electrolysis unit for producing hydrogen to be used by the fuel cell unit, and a hydrogen tank which serves as a long-term energy storage device and is fluidly connected to the fuel cell unit and to the electrolysis unit, wherein said method includes the steps of: - determining or prespecifying at least one expectation period, said at least one expectation period extending at least to a point in time at which energy from a regenerative energy source will become available again after the next possible sunrise, - determining an expected load profile of an electricity consumer, in particular its amount of consumable electric power (P_VB) required during said at least one expectation period, - determining an expected yield profile of the regenerative energy source during the at least one expectation period, preferably an electrical PV power (P_PV) derived from a PV generator, - determining or prespecifying a minimum amount of consumable power (V_VB) which should at least be available for withdrawal from the storage battery unit at any given point in time, and/or prespecifying an end-of-discharge voltage of the storage battery unit which should not be undershot at any given point in time, - determining a target state of charge of the storage battery unit, and determining an energy balance over the at least one expectation period from the expected yield profile and the expected load profile, - determining a time range of the storage battery unit from the expected load profile, the expected yield profile and the minimum amount of consumable power which should not be undershot at any time, from a currently determined state of charge of the storage battery unit and, preferably, from the end-of-discharge voltage, - operating the fuel cell unit with an amount of power to be provided by the fuel cells (P_FC) which depends on the determined time range of the storage battery unit, in particular, switching on the fuel cell unit if the determined time range of the storage battery unit is shorter than the at least one expectation period, and/or switching off the fuel cell unit if the determined time range of the storage battery unit is longer than the at least one expectation period, - operating the electrolysis unit, in particular with a calculated power for electrolysis (P_EL), depending on the determined energy balance, in particular, switching on the electrolysis unit if the determined energy balance is positive, and switching off the electrolysis unit if the determined energy balance is negative. - determining or prespecifying at least one expectation period, said at least one expectation period extending at least to a point in time at which energy from a regenerative energy source will become available again after the next possible sunrise, - determining an expected load profile of an electricity consumer, in particular its amount of consumable electric power (P_VB) required during said at least one expectation period, - determining an expected yield profile of the regenerative energy source during the at least one expectation period, preferably an electrical PV power (P_PV) derived from a PV generator, - determining or prespecifying a minimum amount of consumable power (V_VB) which should at least be available for withdrawal from the storage battery unit at any given point in time, and/or prespecifying an end-of-discharge voltage of the storage battery unit which should not be undershot at any given point in time, - determining a target state of charge of the storage battery unit, and determining an energy balance over the at least one expectation period from the expected yield profile and the expected load profile, - determining a time range of the storage battery unit from the expected load profile, the expected yield profile and the minimum amount of consumable power which should not be undershot at any time, from a currently determined state of charge of the storage battery unit and, preferably, from the end-of-discharge voltage, - operating the fuel cell unit with an amount of power to be provided by the fuel cells (P_FC) which depends on the determined time range of the storage battery unit, in particular, switching on the fuel cell unit if the determined time range of the storage battery unit is shorter than the at least one expectation period, and/or switching off the fuel cell unit if the determined time range of the storage battery unit is longer than the at least one expectation period, - operating the electrolysis unit, in particular with a calculated power for electrolysis (P_EL), depending on the determined energy balance, in particular, switching on the electrolysis unit if the determined energy balance is positive, and switching off the electrolysis unit if the determined energy balance is negative.