Commit graph

252 commits

Author SHA1 Message Date
Joost Lekkerkerker
a17dc3cb52
Introduce Reolink base entity description (#126050) 2024-09-16 15:11:02 +02:00
starkillerOG
e8bacd84ce
Add Reolink chime package ringtone (#125786)
* add chime package ringtone

* fix mypy

* fix mypy

* fix mypy

* fixes
2024-09-16 12:12:49 +02:00
starkillerOG
15bf6222f5
Use Home Assistant aiohttp session for Reolink (#125948) 2024-09-16 11:53:13 +02:00
starkillerOG
2174ee18dc
Implement Reolink reconfiguration flow (#126004)
Co-authored-by: Robert Resch <robert@resch.dev>
2024-09-16 09:21:23 +02:00
starkillerOG
e768bea298
Switch Reolink from hass.data to runtime_data (#126002)
Switch from hass.data to runtime_data
2024-09-15 21:05:59 +02:00
starkillerOG
6dadd467ab
Remember Reolink config flow input (#125962) 2024-09-15 09:55:11 +02:00
epenet
4afc472068
Use root import for media_player and media_source (#125828)
* Use root import for media_player and media_source

* One more
2024-09-12 15:38:53 +02:00
epenet
0fb1fbf0d1
Improve config flow type hints (q-s) (#125198)
* Improve config flow type hints (q-s)

* Revert screenlogic

* Revert starline
2024-09-04 18:38:34 +02:00
starkillerOG
4b111008df
Add 100% coverage of Reolink button platform (#124380)
* Add 100% button coverage

* review comments

* fix

* Use SERVICE_PRESS constant

* Use DOMAIN instead of const.DOMAIN

* styling

* User entity_registry_enabled_by_default fixture

* fixes

* Split out ptz_move test

* use SERVICE_PTZ_MOVE constant
2024-09-04 12:16:57 +02:00
starkillerOG
c4cfff4b3f
Add 100% coverage of Reolink update platform (#124521)
* Add 100% update test coverage

* Add assertion
2024-09-03 22:50:00 +02:00
starkillerOG
a8b55a16fd
Add 100% coverage of Reolink host.py (#124577)
* Add 100% host test coverage

* Add missing test
2024-08-30 16:24:27 +02:00
starkillerOG
b6dc410464
Add 100% coverage of Reolink light platform (#124382)
* Add 100% light test coverage

* review comments

* fix

* use STATE_ON

* split tests
2024-08-30 14:34:17 +02:00
Erik Montnemery
1a2d013c97
Update icons.json to new service schema part 3 (#124770) 2024-08-28 13:48:01 +02:00
starkillerOG
d1681fac72
Improve mediabrowser names for DUO lens Reolink cameras (#124766)
* Improve playback of DUO lens cameras like TrackMix

* fix styling

* Adjust tests accordingly
2024-08-28 12:54:30 +02:00
starkillerOG
e9830f0835
Bump reolink_aio to 0.9.8 (#124763) 2024-08-28 11:13:37 +02:00
starkillerOG
7334fb0125
Add Reolink chime play action (#123245)
* Add chime play service

* fix supported_feature

* finalize

* add tests

* Adjust to device service

* fix issue

* Add tests

* actions -> services

* fix styling

* Use conftest fixture for test_chime

* Update tests/components/reolink/test_services.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* use ATTR_RINGTONE and rename chime_play to play_chime

* Add translatable exceptions

* fix styling

* Remove option to use entity_id

* fixes

* Fix translations

* fix

* fix translation key

* remove translation key

* use callback for async_setup_services

* fix styling

* Add test_play_chime_service_unloaded

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-08-26 21:12:32 +02:00
starkillerOG
2343f5e40f
Reolink Chime online status and ability to remove (#123301)
* Add chime available

* allow removing a Reolink chime

* Allow removal if doorbell itself removed

* fix tests

* Add tests

* fix styling
2024-08-08 19:28:46 +02:00
starkillerOG
f4db9e09c8
Bump reolink-aio to 0.9.7 (#123263) 2024-08-07 00:16:57 +02:00
starkillerOG
8c0d9a1320
Add Reolink chime support (#122752) 2024-07-31 17:04:09 +02:00
starkillerOG
dff964582b
Bump reolink-aio to 0.9.6 (#122738) 2024-07-28 19:47:37 +02:00
starkillerOG
b46b74df90
Check for incompatible special chars in Reolink password (#122461) 2024-07-23 15:22:23 +02:00
starkillerOG
1fd3c9d6dd
Replace Reolink HDR switch by HDR select entity (#122373)
* Add HDR select

* Update strings.json

* Update strings.json

* add icon

* remove HDR switch

* cleanup old HDR switch

* add tests

* Keep HDR switch entity around untill HA 2025.2.0

* Add repair issue

* Update strings.json

* fixes and review comments

* Add tests

* Update homeassistant/components/reolink/strings.json

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/reolink/switch.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* fixes and simplify

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-07-23 13:28:33 +02:00
starkillerOG
8d538fcd52
Add Reolink model_id / item number (#122371) 2024-07-22 11:20:02 +02:00
starkillerOG
0c6dc9e43b
Bump reolink-aio to 0.9.5 (#122366) 2024-07-22 11:09:03 +02:00
starkillerOG
97aaae1372
Reolink media second lens (#121800)
DUO lens camera distinguish between lenses for media playback
2024-07-12 09:13:55 +02:00
starkillerOG
e322cada48
Reolink replace automatic removal of devices by manual removal (#120981)
Co-authored-by: Robert Resch <robert@resch.dev>
2024-07-02 13:31:23 +02:00
starkillerOG
4a8436d6bc
Do not hold core startup with reolink firmware check task (#120985) 2024-07-02 12:28:32 +02:00
starkillerOG
2d054fb5df
Bump reolink-aio to 0.9.4 (#120964) 2024-07-02 09:25:33 +02:00
starkillerOG
1b88448914
Do not wait for Reolink firmware check (#120377) 2024-06-26 09:34:45 +02:00
starkillerOG
ddd8083302
Fix translation error in Reolink reauth flow (#120385) 2024-06-25 10:37:42 +02:00
starkillerOG
bbb8bb31f9
Only raise Reolink re-auth flow when login fails 3 consecutive times (#120291) 2024-06-24 21:03:41 +02:00
starkillerOG
8b4a5042bb
Use UID instead of MAC or channel for unique_ID in Reolink (#119744) 2024-06-21 20:27:30 +02:00
starkillerOG
225e90c99e
Add playback of autotrack lens to Reolink (#119829)
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-06-21 13:38:51 +02:00
starkillerOG
c8ce935ec7
Check Reolink IPC channels for firmware repair issue (#119241)
* Add IPC channels to firmware repair issue

* fix tests

* fix typo
2024-06-21 11:57:48 +02:00
starkillerOG
d34be0e8fa
Bump reolink-aio to 0.9.3 (#119820) 2024-06-17 12:58:58 +02:00
starkillerOG
3a672642ea
Reolink extend diagnostic data (#119745)
* Add diagnostic info

* fix

* change order

* update tests
2024-06-16 14:02:10 +02:00
starkillerOG
2639336ab0
Prefer mp4 playback in Reolink (#119630)
* If possible use PLAYBACK of mp4 files

* bring test_coverage back to 100%

* Do not reasign the vod_type multiple times

Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>

* fix indent

* add white space

* fix tests

* Update homeassistant/components/reolink/media_source.py

Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>

---------

Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
2024-06-14 21:38:53 +02:00
starkillerOG
da64f61083
Add firmware update entities for Reolink IPC channel cameras (#119637) 2024-06-14 08:12:55 -04:00
starkillerOG
b8851f2f3c
Cleanup Reolink firmware update entity (#119239) 2024-06-13 21:27:30 +02:00
starkillerOG
440771bdea
Fix error for Reolink snapshot streams (#119572) 2024-06-13 09:30:53 +02:00
starkillerOG
b70a33a718
Add Reolink manual record switch (#119232)
Add manual record switch
2024-06-09 23:02:11 +02:00
starkillerOG
0c585e1836
Bump reolink-aio to 0.9.2 (#119236) 2024-06-09 22:57:12 +02:00
starkillerOG
edd3c45c09
Add binary "sleeping" sensor to Reolink (#118774) 2024-06-05 14:30:15 +02:00
starkillerOG
678c06beb3
Conserve Reolink battery by not waking the camera on each update (#118773)
* update to new cmd_list type

* Wake battery cams each 1 hour

* fix styling

* fix epoch

* fix timezone

* force full update when using generic update service

* improve comment

* Use time.time() instead of datetime

* fix import order
2024-06-04 21:54:31 -04:00
starkillerOG
8723441227
Add Reolink serial number to device info of IPC camera (#118834)
* Add UID to dev info

* Add camera_uid to test
2024-06-04 21:37:40 -04:00
Franck Nijhof
46bb9cb014
Fix capitalization of protocols in Reolink option flow (#118839) 2024-06-04 21:35:54 -04:00
starkillerOG
cba07540e9
Bump reolink-aio to 0.9.1 (#118655)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-06-04 08:00:40 +02:00
starkillerOG
51d8f83a54
Add state translation to Reolink AI detections (#118560) 2024-05-31 17:55:59 +02:00
starkillerOG
a5f81262aa
Bump reolink-aio to 0.8.11 (#118294) 2024-05-28 12:29:30 +02:00
Marc Mueller
eedce95bc9
Use PEP 695 for class annotations (2) (#117776) 2024-05-20 10:43:59 +02:00