GithubHelp home page GithubHelp logo

pywhistle's Introduction

PyPI - Downloads

This is a very basic library to query Whistle.app's API for Whistle 3 devices. It is also compatible with all new devices.

The API is not published, so it may break eventually (although compatibility has not broken in several years)

In the examples/homeassistant folder you will find a custom component to integrate this information in your dashboard.

Available information for each pet, including dailies:

  • Activity goal, in minutes
  • Activity streak
  • Activity, in minutes
  • Rest time, in minutes
  • Distance walked
  • Calories
  • Battery level
  • Battery wifi usage
  • Battery cell usage
  • Battery days left

To use the library itself in your project:

pip install pywhistle

You can specify it in requirements.txt as well:

pywhistle==0.0.4

pywhistle's People

Contributors

fusion avatar robertd502 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pywhistle's Issues

Updating "Safe Space"

Any chance you'll figure out how to update the "Safe Place" and perhaps provide a service to a Home Assistant instance?

Use case: We travel a lot with our dog, and would like to update the address of our WiFi hotspot to match reality.

was 5here an API change? no longer working

Getting this error in the logs

Logger: custom_components.whistle.device_tracker
Source: custom_components/whistle/device_tracker.py:68
Integration: whistle (documentation)
First occurred: August 26, 2020, 8:16:10 AM (1116 occurrences)
Last logged: 9:26:26 PM

There was an error while updating: 401, message='Unauthorized', url='https://app.whistle.com/api/pets
There was an error while updating: 504, message='Gateway Time-out', url='https://app.whistle.com/api/pets
There was an error while updating: 502, message='Bad Gateway', url='https://app.whistle.com/api/pets
There was an error while updating: Cannot connect to host app.whistle.com:443 ssl:None [Try again]

Platform error device_tracker.whistle

When I try to validate my configuration I get

Platform error device_tracker.whistle - Integration 'whistle' not found.
Invalid config for [sensor]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 21).

device_tracker.py and the adjacent files are in ~/config/custom_components/whistle

I installed all of the pip packages required for device_tracker.py to not complain when I run it for the command line. Maybe that wasn't needed?

I added this to my configuration.yaml:

device_tracker:
  - platform: whistle
    username: !secret whistle_username
    password: !secret whistle_password
    monitored_variables:
      - WHISTLE

What am I missing?

Can't get this to work with Home Assistant

I've spend a few hours trying to get this installed. There are a few conflicting install methods which I'm sure have changed over time..
I'd love to do the home assistant integration - but I can't seem to get the library/sensor to be recognized.

Is there a current install guide or maybe some info on what the directory structure should look like after install?
I can't get the sensor to show up in states..
Thanks for the help if you can..

Whistle Warning No 'version' key

I am getting the following warning that indicates that this will no longer work unless fixed in the near future. I am running 2021.4

WARNING:
No 'version' key in the manifest file for custom integration 'whistle'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'whistle'

I just installed this and it works great. Would be terriific if you could update this.

Platform error device_tracker.whistle - Integration 'whistle' not found.

I have tried the newest steps to install and a few other ways but just keep getting this error.
"Platform error device_tracker.whistle - Integration 'whistle' not found." i rebooted, removed and re-installed, moved files around, ...

i am running
Host
Operating System
Home Assistant OS 6.0

Supervisor
Version
supervisor-2021.06.6
Newest Version
supervisor-2021.06.6

Core
Version
core-2021.6.6
Newest Version
core-2021.6.6

I also created a folder under the custom_components and cp all the files that were in the examples/homeassistant folder. still same error.

custom_components $ ls
alexa_media emporia_vue govee hacs pywhistle scheduler whistle
custom_components $
custom_components $ cd whistle/
whistle $ ls
README.md init.py device_tracker.py manifest.json
whistle $ ls -al
total 24
drwxr-xr-x 2 root root 4096 Jul 3 13:45 .
drwxr-xr-x 9 root root 4096 Jul 3 13:42 ..
-rw-r--r-- 1 root root 3086 Jul 3 13:44 README.md
-rw-r--r-- 1 root root 31 Jul 3 13:45 init.py
-rw-r--r-- 1 root root 3478 Jul 3 13:45 device_tracker.py
-rw-r--r-- 1 root root 292 Jul 3 13:45 manifest.json
whistle $

one thing to note, i already have the life360 integration installed (not custom) and noticed that also falls under device_tracker. it is not in the configuration.yaml file but must be listed somewhere. Would this cause the issue if HA already has device_tracker defined for a supported integration? ??

I don't see anything in the logs except when i add the piece to the configuration.yaml
device_tracker:

  • platform: whistle
    username: !secret whistle_username
    password: !secret whistle_password
    monitored_variables:
    • WHISTLE

i save the config and "check configuration" then gives me that error msg. if i try to reboot, that is when i see the same error msg in the log file. and it won't let me reboot as it says config check fails.

just looking for any help. would love to have this working but tried as many things as i can think of.

thx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.