hass-core/homeassistant/components/reolink/services.yaml
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

45 lines
907 B
YAML

# Describes the format for available reolink services
ptz_move:
target:
entity:
integration: reolink
domain: button
supported_features:
- camera.CameraEntityFeature.STREAM
fields:
speed:
required: true
default: 10
selector:
number:
min: 1
max: 64
step: 1
play_chime:
fields:
device_id:
required: true
selector:
device:
multiple: true
filter:
integration: reolink
model: "Reolink Chime"
ringtone:
required: true
selector:
select:
translation_key: ringtone
options:
- citybird
- originaltune
- pianokey
- loop
- attraction
- hophop
- goodday
- operetta
- moonlight
- waybackhome