Help with conditional automation

hi there
i have a small automation but i wish to meet 2 conditions - see below on the code. what code should i add on the marked line? thanks a lot

- id: Abrir_estore_acordar
  alias: Acorda
  trigger:
  - at: 07:30:00
    platform: time
  condition:
    #### >>>> what condition so that following lines only run if payload of the roller is <10
  condition:
    condition: time
    weekday:
    - mon
    - tue
    - wed
    - thu
    - fri
  action:
  - data_template:
      payload: '30'
      topic: shellies/shellyswitch25-73C369/roller/0/command/pos
    service: mqtt.publish

where is the ā€˜rollerā€™ information located?

Hi Petro
I use mqtt

Have you created an entity to receive the rollerā€™s payload? For example, an entity based on MQTT Sensor or MQTT Cover?

hi
no i havenā€™t
i am kind a nobbieā€¦
do you mean like this?

  - platform: mqtt
    name: posicao estore
    topic: shellies/shellyswitch25-73C369/roller/0/command/pos
    service: mqtt.publish