Commit Graph

43 Commits

Author SHA1 Message Date
Tom Sightler
d1abc0a7d1 Fix up linting errors 2024-08-06 23:03:40 -04:00
tsightler
19e3dcc1a3 Switch true/false conditionals to boolean 2023-08-28 21:39:42 -04:00
tsightler
bfb880dcc5 Explicitly set number entities UI behavior 2023-08-28 14:38:23 -04:00
tsightler
6efa660017 New HA entity naming 2023-08-25 20:08:57 -04:00
tsightler
f13af473a6 Minor syntax cleanups 2023-06-30 14:07:58 -04:00
tsightler
b8338e30de Release 5.1.0 (#537)
* Use MQTT for start-stream debug messages
* Fix ANSI colors
* Refactor event URL management
* Fix subscription detection
* Improve event URL expiry handling by parsing Amazon S3 expire time
* Convert to ESM/replace colors with chalk
* Force colors for chalk
* Migrate to ESM
* Fix stop of keepalive stream
* Add transcoded event selections
* Update event URL on raw/trancoded toggle
* Switch to per-camera livecall threads
* Customized WebRTC functions
Mostly copied from ring-client-api with port to pure Javascript, removal of unneeded features and additional debugging modified for use as worker thread with ring-mqtt.  Allows easier testing with updated Werift versions.
* Add nightlight enable/disable
* Include nightlight state as attribute
* Only pro versions have nightlight
* Tweak battery level reporting for dual battery cameras
* Release 5.1.0
2023-02-02 20:59:09 -05:00
tsightler
6fd8c4673c Per-device duration for smart lights 2022-04-24 22:33:32 -04:00
tsightler
01d10036f8 Granular sensor bypass 2022-04-24 14:59:00 -04:00
tsightler
5abe17d231 Standardize requires 2022-04-05 13:55:32 -04:00
tsightler
c9478d4a94 Initial device state framework 2022-04-03 12:56:38 -04:00
tsightler
972cd95b4f Implement state 2022-04-01 22:33:30 -04:00
tsightler
5fc706b80b Uses events for device commands 2022-03-08 20:59:53 -05:00
tsightler
a702a98d96 Implement event based engine
* First steps toward EventEmitter based core
2022-03-04 20:41:02 -05:00
tsightler
23af855094 Standardize multi-device discovery logic 2022-02-03 20:21:04 -05:00
tsightler
000653e1bf granular debug options 2021-09-25 15:28:49 -04:00
tsightler
cd8ac02045 Release 4.8.3 (#267)
## v4.8.3
**New Features**
- The event stream select entity now includes eventId and recordingUrl attributes with values updated based on the selected event to facilitate automatic downloading of recorded videos. See the [camera documentation](CAMERAS.md) for more information and an example automation using Home Assistant downloader service.
- Dome sirens (and perhaps other Z-wave sirens) are now supported

**Fixed Bugs**
- Refactor and simplify snapshot functions, especially for battery cameras.  This should hopefully fix the issue of no motion snapshots for users with battery powered cameras.

**Breaking Changes**
- Siren devices are now represented as a switch instead of a binary_sensor.

**Other Changes**
- Device debug output now includes device name for all entries, including all received commands
2021-09-20 23:02:13 -04:00
tsightler
0b61e35d4c Fix beams crash 2021-08-18 11:40:59 -04:00
tsightler
425202c5fa Reject commands for non-existent entities 2021-08-17 15:30:21 -04:00
tsightler
8faaaf5064 Fix smart lighting support 2021-08-17 10:42:43 -04:00
tsightler
99f140f196 Release 4.7.0 (#224)
See docs/CHANGELOG.md
2021-08-16 19:49:52 -04:00
tsightler
cf2117e0ee Release 4.6.3 2021-07-28 23:44:43 -04:00
tsightler
dda6db302e Support disarm code
* Support ability to require code to disarm in Home Assistant
2021-07-19 18:50:49 -04:00
tsightler
1259554b04 Set beam duration
* Support setting default beams (Smart Lighting) duration
2021-07-19 15:44:43 -04:00
tsightler
daae825172 Duration fix
* Fix duration for beams lights
2021-07-18 22:23:23 -04:00
tsightler
1ecbeef701 Siren support and cleanups
* Add support for siren status
* Cleanup unused requires
2021-07-18 19:54:50 -04:00
tsightler
a9693920d7 Update beam.js 2021-07-18 18:26:41 -04:00
tsightler
cefd9cd461 Update beam.js 2021-07-18 18:21:57 -04:00
tsightler
e6cea374a2 Update beam.js 2021-07-18 17:08:54 -04:00
tsightler
95597c3396 Fix duration discovery topic 2021-07-18 15:23:37 -04:00
tsightler
8608f84d38 Minor fixes
* Add exit delay for armed away
2021-07-18 15:06:04 -04:00
tsightler
0086fad65e Update beam.js 2021-07-17 19:04:05 -04:00
tsightler
058899f9e9 Update beam.js 2021-07-17 11:42:52 -04:00
tsightler
c689b347b3 Light duration setting
* Add ability to set duration of beam (Smart Lighting) lights
2021-07-17 11:26:23 -04:00
tsightler
0f8a235e79 Refactor init functions 2021-07-17 10:12:28 -04:00
tsightler
873d195956 Minor cleanups
* Switch base station volume to number entity vs light entity

* Minor cleanups to debug messages
2021-07-16 21:47:37 -04:00
tsightler
cfff064776 Release v4.4.0 (#146)
* Add arming bypass mode (#145)
* Misc cleanups
2021-02-28 13:02:42 -05:00
tsightler
09aaec2d42 Update 4.0.4 (#110)
* Minor fixes for smart lighting support
* Fix (hopefully) non-fatal resubscribe errors
* Fix a few typos
* Bump MQTT dependency
* Documentation updates
2020-09-09 16:27:28 -04:00
tsightler
d379200e92 Update beam.js 2020-09-09 09:42:51 -04:00
tsightler
99ca5346e4 Fix motion sensor (#109)
* Fix for smart lighting motion sensor detection introduced in 4.0
* Fix for incorrect availability topic
2020-09-08 20:59:02 -04:00
tsightler
796d099cba Merge 4.0.0 Release (#101)
* Add Home Assistant Device Model support
* Major refactor of device discovery and republish to simplify code
* Add support for alarm status
* Implement new topic heirarchy
* Add support for keypad status monitoring
* Misc bugfixes from refactor
* Remove legacy attribute support
* Display chirps only for security-keypad
* Add support for panic buttons
* Must be explicitly enabled with "enable_panic"
* Addon auto configuration
* Enhance web based token generator
* Improve error handling for token generation
* Add support for Home Assistant device registry for cameras
2020-09-04 23:25:14 -04:00
tsightler
4ed3c03ec1 Fix type for motion status 2020-08-07 10:38:21 -04:00
tsightler
6c3c36db09 Update to 3.1.1 (#80)
Version 3.1.1

* Remove unnecessary global variables

* Move mqttClient to AlarmDevice class and cleanup mqtt functions across devices

* Update README.md

*Update docker run command for getting an refresh token

* Implement onRefreshTokenUpdates to save new refresh tokens to config file

* Fix error with republish logic on MQTT birth messages from Home Assistant

* Add support for detection of online state before attempting connection to Ring servers

* Update ring-mqtt.service file with network.target dependency and log output to file

* Bump acorn from 7.1.0 to 7.1.1 (#69)

* Cleanup mqtt functions across devices

* Add support for refresh token to be stored in a separate file for HASS.io addon.

* Change hass_state topic to homeassistant/status (this matches default config for home assistant/HASS.io)
2020-08-05 16:45:12 -04:00
tsightler
04c7042469 Update to 3.1.0 (#62)
Release 3.1.0
* Ring smart lighting support
* Add beam.js for Ring smart lighting
* Updates for Smart Lighting
* Fix incorrect atttributes for brightness
* Consolidate to single attributesTopic per beam device
* Remove unneeded custom function to publish attributes
* Minor Fan fixes
* Fix unlikely issue with reported state when value is fractional
* Update low/medium speeds from 10%/50% to 33%/67%  Had reports that 10% was too low for some devices.  These numbers are more evenly across the percentage, but I don't have an actual fan so difficult to test.  Current settings are:  off=0%, low=33%, medium=67%, high=100%.
* Improve device offline handling
* Add 60 second delay before taking devices offline when websocket connection is down.
* Make camera heath delay 60 seconds for consistency with alarm devices
* Misc Cleanups
2020-03-03 20:58:53 +00:00