Utility meter sensor not available

HI! I have a sonoff switch for my oven and created a utility meter. Sometimes I even physically turn off the switch and when that happens that is the utility meter is unavailable. How can I solve it?

‘utility_meter:’

total_3forno_month:

source: sensor.prova3forno

cycle: monthly

total_3forno_day:

source: sensor.prova3forno

cycle: daily

total_3forno_year:

source: sensor.prova3forno

cycle: yearly

sensors:

  • platform: integration

    source: sensor.sonoff_10013219fd_power

    name: prova3forno

    unit_prefix: k

    round: 2

    ’ method: left ’