Count home appliances cycles

What I did

do power monitoring on the washing plug

got a door sensor put that on the lid

then played around with the logic

some like
if no power lid closed for 8 min washing done

I found the code on here somewhere and made to fit my needs

just found this

i did this

add my bits to it

added a count to it.

added this automation
if im watch a movie and the washing finishes

- id: 0f4ca2e5-e4ad-42e9-a889-7c880f9efb76
  alias: Pause TV washine Machine
  description: ''
  triggers:
  - entity_id: sensor.washing_machine_status
    trigger: state
    to: Clean
  conditions:
  - condition: state
    entity_id: sensor.tv_status
    state: 'ON'
  actions:
  - action: notify.android_tv_fire_tv
    data:
      title: Home Assistant
      message: '''Washing DONE drying time This morning {{states.sensor.mckillen_s_home_clothes_drying_time_morning.state
        }} but This Afternoon {{states.sensor.mckillen_s_home_clothes_drying_time_afternoon.state}}
        '''
      data:
        duration: 12
        position: bottom-right
        fontsize: medium
        transparency: 80%
        interrupt: 0
  - action: remote.send_command
    data:
      command: MEDIA_PLAY_PAUSE
    target:
      entity_id: remote.living_room_tv
  initial_state: true