Sickboy78 / ioBroker.sureflap

Adpater für Sureflap Katzen- und Haustierklappen von Sure Petcare
Other
17 stars 6 forks source link
catflap iobroker smarthome sureflap surepetcare

ioBroker.sureflap

Stable Version NPM version Downloads Number of Installations (latest) Test and Release

NPM

Adpater for smart pet devices from Sure Petcare®

Configuration

Add username and password from your Sure Petcare® account on the adapter configuration page.

Also battery full and empty thresholds can be adapted here when using accus. This affects the battery percentage values.

Description

The adapter provides information about the settings and status of your pet flap, cat flap, feeder or water dispenser.

It also shows the location of your pets and their food and water consumption (with feeder and/or water dispenser).

It lets you control the lockmode and curfew of your flap and set the location of your pets.

The adapter requires Node 18 or newer.

Changeable Values

The following states can be changed and will take effect on your device respectively will be reflected in your Sure Petcare® app.

state description allowed values
household_name.hub_name.control.led_mode sets the brightness of the hub leds 0 - off
1 - high
4 - dimmed
household_name.hub_name.flap_name.control.curfew_enabled enables or disables the configured curfew true or false
household_name.hub_name.flap_name.control.current_curfew sets the current_curfew,
supports 1 (pet flap) or up to 4 (cat flap) curfew times
[{"enabled":true|false, "lock_time":"xx:xx", "unlock_time":"xx:xx"}, ...]
household_name.hub_name.flap_name.control.lockmode sets the lockmode 0 - open
1 - lock in
2 - lock out
3 - closed (lock in and out)
household_name.hub_name.flap_name.assigned_pets.pet_name.control.type sets the pet type for the assigned pet and flap 2 - outdoor pet
3 - indoor pet
household_name.hub_name.feeder_name.control.close_delay sets the close delay of the feeder lid 0 - fast
4 - normal
20 - slow
household_name.pets.pet_name.inside sets whether your pet is inside true or false

Structure

The adapter creates the following hierarchical structure:

adapter
├ household_name
│ ├ hub_name
│ │ ├ online
│ │ ├ serial_number
│ │ ├ signal
│ │ │ ├ device_rssi
│ │ │ └ hub_rssi
│ │ ├ version
│ │ │ ├ firmware
│ │ │ └ hardware
│ │ ├ control
│ │ │ └ led_mode
│ │ ├ felaqua_name
│ │ │ ├ battery
│ │ │ ├ battery_percentage
│ │ │ ├ online
│ │ │ ├ serial_number
│ │ │ ├ signal
│ │ │ │ ├ device_rssi
│ │ │ │ └ hub_rssi
│ │ │ ├ version
│ │ │ │ ├ firmware
│ │ │ │ └ hardware
│ │ │ ├ assigned_pets
│ │ │ │ └ pet_name
│ │ │ └ water
│ │ │     ├ fill_percent
│ │ │     ├ last_filled_at
│ │ │     └ weight
│ │ ├ feeder_name
│ │ │ ├ battery
│ │ │ ├ battery_percentage
│ │ │ ├ online
│ │ │ ├ serial_number
│ │ │ ├ signal
│ │ │ │ ├ device_rssi
│ │ │ │ └ hub_rssi
│ │ │ ├ version
│ │ │ │ ├ firmware
│ │ │ │ └ hardware
│ │ │ ├ assigned_pets
│ │ │ │ └ pet_name
│ │ │ ├ bowls
│ │ │ │ └ 0..1
│ │ │ │     ├ fill_percent
│ │ │ │     ├ food_type
│ │ │ │     ├ last_filled_at
│ │ │ │     ├ Last_zeroed_at
│ │ │ │     ├ target
│ │ │ │     └ weight
│ │ │ └ control
│ │ │     └ close_delay
│ │ └ flap_name
│ │     ├ battery
│ │     ├ battery_percentage
│ │     ├ curfew_active
│ │     ├ last_enabled_curfew
│ │     ├ online
│ │     ├ serial_number
│ │     ├ control
│ │     │ ├ curfew_enabled
│ │     │ ├ current_curfew
│ │     │ └ lockmode
│ │     ├ signal
│ │     │ ├ device_rssi
│ │     │ └ hub_rssi
│ │     ├ version
│ │     │ ├ firmware
│ │     │ └ hardware
│ │     └ assigned_pets
│ │        └ pet_name
│ │           └ control
│ │              └ type
│ ├ history
│ │ └ json
│ │     └ 0..24
│ └ pets
│     └ pet_name
│        ├ inside
│        ├ name
│        ├ since
│        ├ food
│        │ ├ last_time_eaten
│        │ ├ time_spent
│        │ ├ times_eaten
│        │ └ dry..wet
│        │     └ weight
│        ├ movement
│        │ ├ last_direction
│        │ ├ last_flap
│        │ ├ last_flap_id
│        │ ├ last_time
│        │ ├ time_spentoutside
│        │ └ times_outside
│        └ water
│           ├ last_time_drunk
│           ├ time_spent
│           ├ times_drunk
│           └ weight
└ info
    ├ all_devices_online
    ├ connection
    ├ last_update
    └ version

Notes

SureFlap®, Sure Petcare® and Felaqua® are registered trademarks of SureFlap Ltd.

The pictures of the SureFlap® devices are provided free to use from Sure Petcare®.

Changelog

2.3.1 (2024-10-18)

2.3.0 (2024-09-14)

2.2.1 (2024-08-11)

2.2.0 (2024-07-25)

2.1.2 (2024-06-02)

2.1.1 (2024-02-25)

2.1.0 (2024-02-20)

2.0.2 (2024-02-17)

2.0.1 (2024-01-24)

1.2.3 (2023-12-29)

1.2.2 (2023-10-17)

1.2.1 (2023-10-03)

1.2.0 (2023-08-19)

1.1.9 (2023-07-21)

1.1.8 (2023-06-01)

1.1.7 (2023-03-13)

1.1.6 (2023-01-07)

1.1.5 (2022-09-10)

1.1.4 (2022-09-07)

1.1.3 (2022-03-28)

1.1.2 (2022-03-06)

1.1.1 (2022-02-20)

1.1.0 (2022-01-17)

1.0.9 (2022-01-05)

1.0.8 (2021-11-22)

1.0.7 (2021-11-02)

1.0.6 (2021-09-12)

1.0.5 (2021-04-25)

1.0.4 (2021-03-07)

1.0.3 (2021-02-28)

1.0.2 (2021-02-25)

1.0.1 (2021-02-19)

License

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2024 Sickboy78 asmoday_666@gmx.de