hasscc / catlink

🐈️ Catlink scooper component for HomeAssistant
Apache License 2.0
26 stars 11 forks source link

SCOOPER SE--Standard (new type litter) can't get status of api #11

Closed GOUKI9999 closed 1 week ago

GOUKI9999 commented 5 months ago

I got a new litter with type "SCOOPER SE--Standard" of catlink,conncet it with wifi, and update the lastest version in HA. After about 3-5mins I get entities like SCOOPER SE--Standard error/action/mode/state in HA, and id is "select.litter_box_599_xxxx_action" type ,that seems ok but state is null/unknown. And I checked the log and statement info in my app ,the info of state and other were updated correctly, and updated the firmware of New litter , and litter restarted after that. But until about 5 hours ,the entities of New litter (SE) wasn't refresh ,keep in null , and there're other right info in HA of Other catlink litter at same time (in same catlink account),like log and state . I tried reboot HA twick (beofre /after updated firmware )and checked the pw/usr info in config yaml file , didn't find any issue ,and other litter info keeping refresh correclty. Did anyone encounter this issue or solved some like that? Thanks.

GOUKI9999 commented 5 months ago

Got device detail for SCOOPER SE--Standard failed: {'returnCode': 4003, 'toast': False, 'msg': '未找到该设备', 'data': {}, 'timestamp': '1710957209835', 'success': False I found it in log ,seem like someone else , chinese words means "didn't find this device". but I had 2 litters in a same account, other one works correctly at same time ,so I think that's not usr/pw or connection problem?

mistyque commented 3 months ago

Hi, I have the same problem : Got device detail for SCOOPER SE--Standard failed: {'returnCode': 4003, 'toast': False, 'msg': '未找到该设备', 'data': {}, 'timestamp': '1717307831280', 'success': False}. I confirm that home assistant is connected to Catlink, because my phone was disconnected.

I use this model : image

milosljubenovic commented 2 weeks ago

Hi @GOUKI9999, @mistyque👋!

I had the same issue, and I think that I got it fixed, please feel free to checkout this PR!15 and try it on your own. You might need to set api to https://app-usa.catlinks.cn/api/.

image

Have a good one.

GOUKI9999 commented 1 week ago

I can't wait for merging it ,so I just replace the file with your PR. It works well ,you're my hero ,bro

milosljubenovic commented 1 week ago

I can't wait for merging it ,so I just replace the file with your PR.

It works well ,you're my hero ,bro

I will eventually update it with exposing other attributes and functionalities to support Lovelace UI card development, keep watchin’ ✌️

GOUKI9999 commented 1 week ago

I can't wait for merging it ,so I just replace the file with your PR.

It works well ,you're my hero ,bro

I will eventually update it with exposing other attributes and functionalities to support Lovelace UI card development, keep watchin’ ✌️

After some fast testing about action /states/ enent log, I found they're all working well with .cn API But the error entity (looks like online/offline status sensor) keeps showing unknown , maybe that's little issue thx again man.

milosljubenovic commented 1 week ago

Hi @GOUKI9999 🐱 there's a new PR!15 regarding error state and other improvements.

Feel free to check 🚀

GOUKI9999 commented 1 week ago

It be solved perfectly by new updating ,thx @milosljubenovic
Issue should be closed now