Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: OneRFIDSmartFeeder only reports feeding quantity in cups. even if device is set to a different unit. #8

Open
C4-Dimitri opened this issue Oct 19, 2024 · 2 comments
Assignees
Labels
Deferred put off (an action or event) to a later time; postpone Enhancement New feature or request

Comments

@C4-Dimitri
Copy link
Contributor

C4-Dimitri commented Oct 19, 2024

i believe you are already capturing the correct unit being used, can we please ensure the selected unit is reported instead?

@C4-Dimitri C4-Dimitri changed the title [Bug]: OneRFIDSmartFeeder only reports feeding quantity in cups. even if device is set to a different unit. [Featur Request]: OneRFIDSmartFeeder only reports feeding quantity in cups. even if device is set to a different unit. Oct 19, 2024
@C4-Dimitri C4-Dimitri changed the title [Featur Request]: OneRFIDSmartFeeder only reports feeding quantity in cups. even if device is set to a different unit. [Feature Request]: OneRFIDSmartFeeder only reports feeding quantity in cups. even if device is set to a different unit. Oct 19, 2024
@jjjonesjr33
Copy link
Owner

@C4-Dimitri at some point I would like to figure out how to actually switch that setting via home assistant and whatever is selected it would report it that way.

@C4-Dimitri
Copy link
Contributor Author

C4-Dimitri commented Nov 11, 2024

@jjjonesjr33 this might require more digging - as the devicesn isnt included in the below request - so i am guessing it figures out what device to send the change to with some of the earlier requests? right before requesting the below it makes some posts to these endpoints too:
https://api.us.petlibro.com/device/setting/getAttributeSetting

{
  "id": "AF0601314D89978A9"
}

response data:

{
  "code": 0,
  "msg": null,
  "data": {
    "deviceSn": "AF0601314D89978A9",
    "lightSwitch": true,
    "lightAgingType": 1,
    "lightingStartTime": null,
    "lightingEndTime": null,
    "soundSwitch": true,
    "soundAgingType": 1,
    "soundStartTime": null,
    "soundEndTime": null,
    "volume": 50,
    "powerMode": 1,
    "autoChangeType": 1,
    "autoThreshold": 60,
    "enableAutoUpgrade": true,
    "enableBatteryPercent": false,
    "cameraSwitch": null,
    "cameraAgingType": null,
    "cameraStartTime": null,
    "cameraEndTime": null,
    "resolution": null,
    "nightVision": null,
    "videoRecordSwitch": null,
    "videoRecordMode": null,
    "videoRecordAgingType": null,
    "videoRecordStartTime": null,
    "videoRecordEndTime": null,
    "feedingVideoSwitch": null,
    "enableVideoStartFeedingPlan": null,
    "enableVideoAfterManualFeeding": null,
    "beforeFeedingPlanTime": null,
    "automaticRecording": null,
    "afterManualFeedingTime": null,
    "videoWatermarkSwitch": null,
    "motionDetectionSwitch": null,
    "motionDetectionAgingType": null,
    "motionDetectionStartTime": null,
    "motionDetectionEndTime": null,
    "motionDetectionSensitivity": null,
    "motionDetectionRange": null,
    "soundDetectionSwitch": null,
    "soundDetectionAgingType": null,
    "soundDetectionStartTime": null,
    "soundDetectionEndTime": null,
    "soundDetectionSensitivity": null,
    "enableSleepMode": null,
    "enableSleepSound": null,
    "enableSleepLight": null,
    "enableSleepAutoVacuum": null,
    "sleepStartTime": null,
    "sleepEndTime": null,
    "enableDeviceShare": true,
    "coverOpenMode": "CUSTOM",
    "coverClosePosition": 4,
    "coverCloseSpeed": "FAST",
    "enableScreenDisplay": "true",
    "screenDisplaySwitch": true,
    "screenDisplayAgingType": 1,
    "screenDisplayStartTime": null,
    "screenDisplayEndTime": null,
    "screenDisplayInterval": 2,
    "childLockSwitch": true,
    "childLockLockDuration": 30,
    "childLockUnlockDuration": 3,
    "closeDoorTime": null,
    "closeDoorTimeSec": 1,
    "errorState": false,
    "doorErrorState": "NORMAL",
    "bowlMode": null,
    "whetherInSleepMode": false,
    "ringerMode": null,
    "ringerInterval": null,
    "ringerDuration": null
  }
}

https://api.us.petlibro.com/data/data/realInfo
(we already know the response layout for this, so wont post it again for the sake of brevity).

the API endpoint for changing the reporting for the onerfidfeeder:

https://api.us.petlibro.com/member/member/updateSetting
post data:

{
  "feedUnitType": 1
}

unit type id corresponds to these:

1 = cup(US legal cup)
2 = oz (ounce)
3 = g (gram)
4 = ml (milliliter)

response data:

{
  "code": 0,
  "msg": null,
  "data": null
}

@jjjonesjr33 jjjonesjr33 added the Deferred put off (an action or event) to a later time; postpone label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deferred put off (an action or event) to a later time; postpone Enhancement New feature or request
Projects
Status: To triage
Development

No branches or pull requests

2 participants