Change icon/picture base on a other sensor

I have

image

sensor file

  - platform: mqtt
    name: Rubbish Day
    state_topic: "home/Rubbish/day"
    
  - platform: mqtt
    name: Rubbish Colour
    state_topic: "home/Rubbish/Colour"

the “Rubbish Colour” has a out come of blue or yellow

customize file

sensor.rubbish_day:
  entity_picture: /local/images/blue.png
  show_last_changed: true

what would be the best way to change the Rubbish Day Picture to match the colour

I can go in to the <> and change it that

image

change the blue.png to yellow.png I get

image

would like it to change base on the “Rubbish Colour” sensor

which manual should i be reading.