core: Sure petcare cat flap status sensor / lock state missing

The problem

The Sure petcare integration last worked correctly in version 2021.3.4. My config was as follows:

# Sure PetCare
surepetcare:
  username: !secret sure_user
  password: !secret sure_password
  flaps: !secret sure_flap_id
  pets: !secret sure_pet_id

This created the following entities: sure_petcare_sensors

One of which showed the status of a cat flap connected to the hub, the possible sensors states were:

  • unlocked
  • locked_in
  • locked_out
  • locked_all

The integration broke under 2021.4 but has now been fixed in 2021.5.0, new config is:

# Sure PetCare
surepetcare:
  username: !secret sure_user
  password: !secret sure_password

However, the cat flap status sensor is now a binary sensor, which only shows the connectivity status of the cat flap but not its lock state (unlocked, locked_in, locked_out, locked_all).

Screenshot 2021-05-05 at 23 52 34

Have tried adding and removing the integration from my config several times, same difference.

What is version of Home Assistant Core has the issue?

2021.5.0

What was the last working version of Home Assistant Core?

2021.3.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Sure petcare

Link to integration documentation on our website

https://www.home-assistant.io/integrations/surepetcare/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 16 (8 by maintainers)

Most upvoted comments

ok problem found… the whole Flap class is gone and its a little hard to comprehend how this happened…^^

Same here. It also appears that the sensors do not update after initial load.