Nascent Plasticine Materialist

    iobroker.sureflap

    1.1.3 • Public • Published

    ioBroker.sureflap

    NPM version Downloads Number of Installations (latest) Number of Installations (stable) Dependency Status Known Vulnerabilities

    Test and Release Linux/Mac/Windows: Travis-CI Windows: AppVeyor

    NPM

    Adpater for smart pet devices from Sure Petcare®

    Configuration

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

    Description

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

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

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

    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 enables or disables the configured curfew
    (curfew must be configured via app)
    true or false
    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
    │ │ ├ control
    │ │ │ └ led_mode
    │ │ ├ feeder_name
    │ │ │ ├ battery
    │ │ │ ├ battery_percentage
    │ │ │ ├ online
    │ │ │ ├ assigned_pets
    │ │ │ │ └ pet_name
    │ │ │ ├ bowls
    │ │ │ │ └ 0..1
    │ │ │ │     ├ food_type
    │ │ │ │     ├ target
    │ │ │ │     └ weight
    │ │ │ └ control
    │ │ │     └ close_delay
    │ │ └ flap_name
    │ │     ├ battery
    │ │     ├ battery_percentage
    │ │     ├ curfew_active
    │ │     ├ online
    │ │     ├ control
    │ │     │ ├ curfew
    │ │     │ └ lockmode
    │ │     ├ curfew
    │ │     │ └ 0..i
    │ │     │     ├ enabled
    │ │     │     ├ lock_time
    │ │     │     └unlock_time
    │ │     ├ last_curfew
    │ │     │ └ 0..i
    │ │     │     ├ enabled
    │ │     │     ├ lock_time
    │ │     │     └ unlock_time
    │ │     └ assigned_pets
    │ │        └ pet_name
    │ │           └ control
    │ │              └ type
    │ ├ history
    │ │ └ 0..24
    │ │     └ ...
    │ └ pets
    │     └ pet_name
    │        ├ inside
    │        ├ name
    │        ├ since
    │        └ food
    │           ├ last_time_eaten
    │           ├ time_spent
    │           ├ times_eaten
    │           └ dry..wet
    │              └ weight
    └ info
        ├ all_devices_online
        ├ connection
        └ last_update

    Notes

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

    The picture of the cat flap, hub and smartphone app is provided free to use from Sure Petcare®.

    Changelog

    1.1.3 (2021-02-28)

    • (Sickboy78) code improvements
    • (Sickboy78) improved error handling if no pet has been assigned yet

    1.1.2 (2022-03-06)

    • (Sickboy78) improved error and timeout handling
    • (Sickboy78) optimized subscribed states

    1.1.1 (2022-02-20)

    • (Sickboy78) removed pet type control from pet flap (is a cat flap exclusive feature)
    • (Sickboy78) fixed wrong default value for info.last_update
    • (Sickboy78) testing updates for js-controller 4
    • (Sickboy78) security updates

    1.1.0 (2022-01-17)

    • (Sickboy78) bugfix and security updates

    1.0.9 (2022-01-05)

    • (Sickboy78) removed old encrypt/decrypt from index_m
    • (Sickboy78) added adapter unloaded guard in case unload happens during data requests

    1.0.8 (2021-11-22)

    • (Sickboy78) added food type, target weight and remaining food in feeder
    • (Sickboy78) added todays pet food consumption, times eaten and time spent

    1.0.7 (2021-11-02)

    • (Sickboy78) added history
    • (Sickboy78) added last update time

    1.0.6 (2021-09-12)

    • (Sickboy78) added feeder support (closing delay of lid)
    • (Sickboy78) added led control for hub
    • (Sickboy78) added assigned pets for flap and feeder devices
    • (Sickboy78) added pet type control (indoor or outdoor) for assigned pets for flap devices
    • (Apollon77) update CI testing

    1.0.5 (2021-04-25)

    • (Sickboy78) fixed bug in case pets didn't have a position (e.g. no flaps, only feeder in use)

    1.0.4 (2021-03-07)

    • (Sickboy78) added state curfew_active for pet flap devices
    • (Sickboy78) fixed normalization of device names
    • (Sickboy78) fixed changeable values not resetting when change fails

    1.0.3 (2021-02-28)

    • (Sickboy78) code improvements from review
    • (Sickboy78) fixed timezone bug

    1.0.2 (2021-02-25)

    • (Sickboy78) fixed bug setting lockmode and inside values

    1.0.1 (2021-02-19)

    • (Sickboy78) initial release

    License

    MIT License

    Copyright (c) 2022 Sickboy78 asmoday_666@gmx.de

    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.

    Install

    npm i iobroker.sureflap

    DownloadsWeekly Downloads

    8

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    213 kB

    Total Files

    15

    Last publish

    Collaborators

    • bluefox
    • sickboy78