Sickboy78 / ioBroker.sureflap

Adpater für Sureflap Katzen- und Haustierklappen von Sure Petcare
Other
17 stars 6 forks source link

Weight for remaining food in bowl not written #13

Closed Steffan68 closed 2 years ago

Steffan68 commented 2 years ago

Describe the bug
The value for the weight of the remaining food in the bowls are not written. The below mentioned objects, e.g. "'Eisfahrtstrasse.EG_EG_SurePetHub.EG_KU_FeedElla.bowls.0" is existing

image

Food Type & Target Weight are proper written.

To Reproduce
The below mentioned log entry is written on every adapter restart

Expected behavior
Weight of the remaining food written as value.

Screenshots & Logfiles
021-12-19 20:53:04.369 - warn: sureflap.0 (4225) got feeder remaining food data for object 'Eisfahrtstrasse.EG_EG_SurePetHub.EG_KU_FeedYoda.bowls.0' but object does not exist. This can happen if number of bowls is changed. Restart adapter. If warning persists, contact developer. 2021-12-19 20:53:04.369 - warn: sureflap.0 (4225) got feeder remaining food data for object 'Eisfahrtstrasse.EG_EG_SurePetHub.EG_KU_FeedElla.bowls.0' but object does not exist. This can happen if number of bowls is changed. Restart adapter. If warning persists, contact developer. 2021-12-19 20:53:04.369 - warn: sureflap.0 (4225) got feeder remaining food data for object 'Eisfahrtstrasse.EG_EG_SurePetHub.EG_KU_FeedLuna.bowls.0' but object does not exist. This can happen if number of bowls is changed. Restart adapter. If warning persists, contact developer. 2021-12-19 20:53:04.369 - warn: sureflap.0 (4225) got feeder remaining food data for object 'Eisfahrtstrasse.EG_EG_SurePetHub.EG_KU_FeedLilli.bowls.0' but object does not exist. This can happen if number of bowls is changed. Restart adapter. If warning persists, contact developer.

Versions:
2021-12-19 20:55:49.387 - info: sureflap.0 (11059) starting. Version 1.0.8 in /opt/iobroker/node_modules/iobroker.sureflap, node: v14.18.2, js-controller: 3.3.21

Thanks for support Steffan

Sickboy78 commented 2 years ago

Hi Steffan,

thx for reporting this bug. I'll have a look at it, but it could take some time, I'm quite busy over Xmas.

You have 4 feeders, is that correct?

Regards Sebastian

Steffan68 commented 2 years ago

Hello Sebastian,

thanks for the quick feedback... take the time you need ... it is all free for us, so fully appreciate all the time and work you spend. Yes, I have 4 Feeders and 1 Door attached to 1 Hub.

Merry x-mas Steffan

Sickboy78 commented 2 years ago

Hi Steffan,

best wishes for the new year!

I think I found the bug and hopefully fixed it in may last commit. Can you please update to the lastest code from github an check if your problem is fixed?

Regards Sebastian

Steffan68 commented 2 years ago

Hello Sebastian,

also Happy New Year!

thump up! Error is gone and values are now reported ... image

Another short question ... I have not understood the setting for: sureflap.0.Eisfahrtstrasse.EG_EG_SurePetHub.EG_KU_KatzenKlappe.assigned_pets.Ella.control.type which I can set to "2": "OUTDOOR PET" or "3": "INDOOR PET" Independent which value i configure ... I see the following info in the log: "undefined is not a valid state value for id "sureflap.0.Eisfahrtstrasse.EG_EG_SurePetHub.EG_KU_KatzenKlappe.assigned_pets.Ella.control.type"" Can I protect Kitten which are not allowed to go out? I can't find a corresponding feature in the original App.

Thanks Steffan

Sickboy78 commented 2 years ago

Hi Steffan,

I'm happy it works now. :) Nice cat monitor btw!

As for the Outdoor/Indoor pet, the setting is a bit hidden in the app. You have to select "Household" from the menu, scroll down, select the flap, click the right button (probably "access" in english) and then you can set it for every pet.

grafik

There's also an info icon which shows an explanation of the feature. In short, an indoor pet can not use this flap to go out (only in).

As for the error you get when changing the pet type, could you pls open a new issue? Then I will have a lokk at it.

Regards Sebastian

Steffan68 commented 2 years ago

Hello Sebastian,

looks like you have the "Katzenklappe" and I have the "Haustierklappe" (our two older ones are a little bit to big for the "Katzenklappe" ;-) ). My menue is different to yours, I do not have the option you showed above. Will reach out to the vendor why they make here a difference between the two doors. Specially for our young kidden it would be helpful to block individual animals.

Regards Steffan

Steffan68 commented 2 years ago

Update: Justed looked on the website ... Looks liek you have the "Dualscan" version.

Sickboy78 commented 2 years ago

Hi Steffan,

thanks for the info. Your first comment is correct, second not. The Dualscan is not smart, only the 2 Connect versions are. I have the "Katzenklappe Connect".

But you are right, there are differences between the "Katzenklappe Connect" and the "Haustierklappe Connect". One thing I found during implementation is, the cat flap allows multiple curfew times, while the pet flap only allows one. Also the API is a little bit different between the two. But I didnt know, that the indoor/outdoor pet was a feature only for the cat flap. That explains, why you get an error, when you try to set it. Unfortunately that means, I have to disable this feature for the pet flap, since it's not supported ...

Best Regards Sebastian