Commit Graph

42 Commits

Author SHA1 Message Date
RyanClark123 82823be1c8 Bump pyowletapi
### Fix
* Bump pyowletapi to 2024.10.1
2024-10-09 20:03:14 +01:00
RyanClark123 14787e03c4 Correct strings for password and connection error
### Fix
* Fix strings for password and connection error in all languages
2024-10-09 16:31:45 +01:00
RyanClark123 0991eb31d9 Add state class
### Fix
* Add state class to battery minutes and O2 saturation 10 minute average
2024-10-09 15:19:28 +01:00
RyanClark123 ad91a851fc Update changelog and version
Update changelog and version
2024-09-26 10:18:03 +01:00
Julien80 f3c853e2d7 Add translation fr 2024-09-26 10:26:00 +02:00
RyanClark123 52710ba7de Bumping pyowletapi
* Fix
Bump pyowletapi to 2024.6.1
2024-06-17 09:28:22 +01:00
RyanClark123 ceade24851 Sensors now show unavailable, refactoring
### Feature
* As per HA core patterns, certain sensors will now show as unavailable when sock is charging
###
* Refactoring as per core maintainers suggestions
2024-05-13 13:41:51 +01:00
coreywillwhat 5e17ecdeb2 fix: O2 Sat 10m Avg reporting 255%
Just a suggestion!
The O2 Sat 10m average reports `255%` when not charging, and before it can calculate the 10m average. Suggest changing to report `None` until the average can be displayed. This way the graphs/data aren't skewed by the 255 value.
2024-05-07 11:32:15 -06:00
RyanClark123 50c55dcfd3 Add binary sensor, correct interval input
### Feature
*Base station on added as binary sensor

### Fix
* Bumping pyowletapi to 2024.3.2
* UI config now allows you to set interval to 5 seconds, previously the minimum was 10
2024-03-27 15:51:12 +00:00
RyanClark123 50fe1a8765 Support for V2 sock added
### Feature
* Support added for V2 sock
* Added tests for binary sensors
### Fix
* Bumping pyowletapi to 2023.11.4 to allow V2 support
* Refactoring
* Corrected spelling of sock disconnected sensor
2023-11-23 15:38:35 +00:00
RyanClark123 3acf847352 Correcting error where properties may not exist
### Fix
* Bumping pyowletapi to 2023.11.1
* Sensors and binary sensors are now only created where the sock contains that property, this stops errors where different sock versions have different properties
2023-11-16 11:42:34 +00:00
RyanClark123 0a7f703100 Fix for new sock revision 5
### Fix
* Bumping pyowletapi to 2023.9.1 to allow for revisions
* New revision of sock, revision 5 doesn't report all vitals as before, this would cause the integration to fail to update. Have adjusted the integration to detect the revision and ignore the vitals that are no longer reported
2023-09-20 15:03:10 +01:00
RyanClark123 092321cbae Update manifest.json 2023-08-21 15:10:57 +01:00
RyanClark123 2cd46c18f8 Refactoring
###Fix
* Refactoring done based on home assistant style guidelines and suggestions submitted on the core pull request version of this integration
* Added new sensors to strings json and disabled by default
2023-08-21 15:06:28 +01:00
ryanbdclark 575b213ddd Merge pull request #3 from seanford/main
Update sensor.py
2023-08-21 11:49:48 +01:00
Sean Ford 3afa43c82c Update sensor.py
Added Movement and Movement Bucket values as sensors
2023-08-10 10:09:47 -04:00
RyanClark123 c45959b123 Bumping pyowlet
###Fix
* Bumping pyowlet version to 2023.7.2
2023-07-04 15:38:44 +01:00
ryanbdclark 02f8679ed1 Update manifest.json 2023-07-03 14:52:04 +01:00
ryanbdclark c693fefbf3 Update manifest.json 2023-07-03 14:38:17 +01:00
ryanbdclark 523ba949dd Bumping pyowlet api
Bumping pyowletapi version to 2023.07.01
2023-07-03 14:37:49 +01:00
RyanClark123 3c35d87fd2 Minor changes to description
Minor changes to description of entities made
2023-06-15 11:11:06 +01:00
ryanbdclark 6c2c531a19 Update manifest.json 2023-05-30 14:30:23 +01:00
ryanbdclark f4e38ec521 Update manifest.json 2023-05-30 14:27:07 +01:00
RyanClark123 ef0a3c3ddb Merge branch 'main' of https://github.com/ryanbdclark/owlet 2023-05-30 13:57:14 +01:00
RyanClark123 8d173174e2 Fixed binary sensors
### Fix
* Fixed issue with binary sensors not loading, caused by change to way the coordinators are stored
2023-05-30 13:46:48 +01:00
RyanClark123 26f81c14bf Refactoring, added tests
###Fix
# In light of submitting this as a pull request to the core of HA there have been some refactoring changes to comply with HA's style requirements
#Sensor names now moved to strings file to allow for translations
#Coordinator now properly handles multiple devices
#Spelling of signal strength sensor corrected

###Feature
#Tests added
2023-05-30 13:30:59 +01:00
RyanClark123 c6f37493ca Corrected spelling fixed typing reordered imports
###Fix
# In preparation for pull request to homeassistant core, just corrected some spelling, sorted imports using isort and corrected some type hinting
2023-05-26 16:29:40 +01:00
RyanClark123 0141f7d01a Refresh token should now work properly
#### Fix
* Owlet refresh token becomes invalid after 24 hours. Meant that after 1 day the integration would stop working. Moved to pyowletapi v2023.5.28 which uses different refresh token, should no longer need reconfiguring after 24 hours
2023-05-19 15:14:19 +01:00
RyanClark123 dc58b19a46 Fix non conversion of dict_values to list
###Fix
* dict_values for sleep state now correctly converted to list
2023-05-17 19:32:27 +01:00
RyanClark123 bd6a315b00 Bumping to pyowletapi 2023.5.25
#### Fix
* Bumping to pyowletapi 2023.5.25
2023-05-17 19:23:37 +01:00
RyanClark123 0cf3afef85 Bumping pyowlet, reauth config entry fix
#### Fix
* Bumping to pyowletapi 2023.5.24
* Reauthing now no longer re adds users' password to config entry
2023-05-17 18:59:38 +01:00
ryanbdclark fa06157fe2 Update const.py
###Fix
* Error in sleep states constant corrected
2023-05-16 21:14:46 +01:00
RyanClark123 9b3392bdbc Added new sensors
###Feature
* Added new sensors, binary sensor awake, is on if baby awake, off otherwise. Sensor sleep state, shows baby sleep state, options are awake, light sleep, deep sleep
2023-05-16 15:06:01 +01:00
RyanClark123 dc710a1783 Integration now uses refresh token
-Makes use of pyowletapi 2023.5.23 to use the refresh token to reauthenticate, integration now no longer stores users password
-Default polling interval changed to 5 seconds to match owlet app
2023-05-16 14:05:26 +01:00
RyanClark123 8d9299a8f4 Updated changelog for new release
Updated changelog for new release
2023-05-15 15:56:37 +01:00
RyanClark123 228d54b641 bumping pyowletapi version
### Fix
* Bump pyowletapi to 2023.5.21, fix for unawaited authentication call believe to be causing an issue reauthenticating when token had expired
* Github username change reflected, won't change again
2023-05-15 11:21:50 +01:00
RyanClark123 3e147aa914 Added reauth flow, much better error handling on setup
### Feature
* Now supports reauthentication if credentials have expired/no longer work
* Better error handling when configuring integration, will notify user of incorrect credentials

### Fix
* Removed Owlet specific constants, now using homeassistant generic constants
* On initialisation the integration would crash when trying to update the auth token, the integration would then have to be deleted and setup again
2023-05-12 17:02:04 +01:00
RyanClark123 bb0e8cc9c9 Corrected spelling of celcius 2023-05-11 17:20:31 +01:00
RyanClark123 84aa88ae01 More properties added
More sock properties added as sensors
2023-05-11 17:05:57 +01:00
RyanClark123 a5a8336006 Amended config flow, hardcoded support for v3
-Amended config flow, took out second step to select socks
-Added configuration to allow users to change polling interval
-Hardcoded support for only v3 sock, I do not own any other socks to test with
2023-05-09 16:37:25 +01:00
RyanClark123 daff165593 Updated config flow
-Config flow now allows user to select socks to configure
-Added strings to config
-Amended sensor state classes
-General Tidying up
2023-05-05 16:23:52 +01:00
RyanClark123 fe34bd63af Initial commit
Initial commit
2023-05-04 16:33:06 +01:00