Roller blind automation

Hey kings.

I have made this automation for the computer room.
Basically I want the blind to close when the PC is turned on and the sun is up and to then open when the PC is turned off provided the sun is still up.

This seems to work but was wondering if it could be streamlined?

I am using a wall plug to trigger the event based on the power draw.

thanks!

alias: "computer room blind test "
description: ""
triggers:
  - type: power
    device_id: cb0bff78b458fc3d09ac48e1d0997931
    entity_id: 04f2ec3fc203165ee8a3565d6d798279
    domain: sensor
    trigger: device
    above: 20
conditions:
  - condition: sun
    before: sunset
    after: sunrise
actions:
  - action: cover.close_cover
    metadata: {}
    data: {}
    target:
      entity_id: cover.computer_room_roller_blind
  - if:
      - type: is_power
        condition: device
        device_id: cb0bff78b458fc3d09ac48e1d0997931
        entity_id: 04f2ec3fc203165ee8a3565d6d798279
        domain: sensor
        below: 5
      - condition: sun
        before: sunset
    then:
      - action: cover.open_cover
        metadata: {}
        data: {}
        target:
          entity_id: cover.computer_room_roller_blind
mode: single