40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
sonos_controller:
|
|
module: sonoscontroller
|
|
class: SonosController
|
|
|
|
players:
|
|
sonos_garage:
|
|
entity: media_player.garage
|
|
|
|
off_conditions: binary_sensor.is_everybody_sleeping or not binary_sensor.someone_home
|
|
|
|
play_stop_events:
|
|
btn_play_stop:
|
|
event_name: state_changed
|
|
debounce_seconds: 0.5
|
|
event_data:
|
|
entity_id: event.garage_bilresa_button_bouton_1
|
|
new_state:
|
|
attributes:
|
|
event_type: multi_press_1
|
|
|
|
cycle_radio_events:
|
|
btn_play_stop:
|
|
event_name: state_changed
|
|
debounce_seconds: 0.5
|
|
event_data:
|
|
entity_id: event.garage_bilresa_button_bouton_1
|
|
new_state:
|
|
attributes:
|
|
event_type: long_press
|
|
|
|
cycle_album_events:
|
|
btn_play_stop:
|
|
event_name: state_changed
|
|
debounce_seconds: 0.5
|
|
event_data:
|
|
entity_id: event.garage_bilresa_button_bouton_2
|
|
new_state:
|
|
attributes:
|
|
event_type: multi_press_1
|