Sensor data in automation not reflecting what's on the dashboard and developer tools

Hello. I have a petlibro wet food cat feeder that I’m trying to automate through Home Assistant. I noticed some inconsistencies with how it was performing so I wanted to run some repeat until’s to make sure 1) the lid actually closes and 2) the plate rotates as it should

I have the logic all setup and i thought it was working properly until I realized the sensor for the plate position was giving the same value every time despite on the dashboard, it shows the correct plate position.

To achive this I created an input number helper to track what the future state should be for the plate position. First I grab the current plate position with:

{{ states('sensor.muncha_cruncha_plate_position')| int()}}

while this runs correctly, it always returns 1, and when looking at the developer tools and the dashboard, the state of the sensor changes.

At this point I’m just confused on why it’s doing this and any suggestions would be appreciated.

Please show us the logic on setting up that sensor and similar so we can understand what is happening.

I did not do much in setting up the sensor other than downloading the PetLibro addon from HACS (GitHub - jjjonesjr33/petlibro: Petlibro | Home Assistant integration)

I did do some logic updates to the automation since I posted this and since then I just stopped trying to continuously pull from the plate position and just forced the device to adhere to the helper number position:

alias: Automation - Max Wet Food - Lid Open Timer
description: ""
triggers:
  - type: turned_on
    device_id: <removed>
    entity_id: <removed>
    domain: switch
    trigger: device
conditions: []
actions:
  - delay:
      hours: 0
      minutes: 20
      seconds: 0
      milliseconds: 0
    enabled: true
  - repeat:
      until:
        - condition: device
          type: is_off
          device_id: <removed>
          entity_id: <removed>
          domain: switch
      sequence:
        - type: turn_off
          device_id: <removed>
          entity_id: <removed>
          domain: switch
    alias: Close Lid
  - action: input_number.set_value
    metadata: {}
    data:
      value: "{{ states('sensor.muncha_cruncha_plate_position')| int()}}"
    target:
      entity_id: input_number.muncha_cruncha_future_plate_position
    enabled: false
  - alias: Reset or Increase future position
    if:
      - condition: state
        entity_id: input_number.muncha_cruncha_future_plate_position
        state:
          - "3.0"
    then:
      - action: input_number.set_value
        metadata: {}
        data:
          value: 1
        target:
          entity_id: input_number.muncha_cruncha_future_plate_position
    else:
      - action: input_number.increment
        metadata: {}
        data: {}
        target:
          entity_id: input_number.muncha_cruncha_future_plate_position
    enabled: true
  - alias: Rotate Food Bowl
    repeat:
      until:
        - condition: template
          value_template: "  {% if states('sensor.muncha_cruncha_plate_position')| int() == states('input_number.muncha_cruncha_future_plate_position')| int() %} true {% else %} false {% endif %}"
      sequence:
        - device_id: <removed>
          domain: button
          entity_id: <removed>
          type: press
    enabled: true
  - device_id: <removed>
    domain: button
    entity_id: cee1d6309136fae967c826f85c34a66d
    type: press
    enabled: false
mode: single