checkpoint commit
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m3s
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m3s
This commit is contained in:
@@ -54,24 +54,24 @@ i2c:
|
||||
id: bus_1
|
||||
|
||||
sensor:
|
||||
- platform: sonic_i2c
|
||||
i2c_id: bus_1
|
||||
address: 0x57
|
||||
name: "Ultrasonic Sensor 1"
|
||||
id: ultrasonic1
|
||||
unit_of_measurement: mm
|
||||
update_interval: 5s
|
||||
filters:
|
||||
- filter_out: nan
|
||||
- lambda: |-
|
||||
if (x == 0) {
|
||||
return {}; // This filters out the reading
|
||||
} else {
|
||||
return x; // This passes the reading through
|
||||
}
|
||||
- sliding_window_moving_average:
|
||||
window_size: 10
|
||||
send_every: 20
|
||||
- platform: sonic_i2c
|
||||
i2c_id: bus_1
|
||||
address: 0x57
|
||||
name: "Ultrasonic Sensor 1"
|
||||
id: ultrasonic1
|
||||
unit_of_measurement: mm
|
||||
update_interval: 5s
|
||||
filters:
|
||||
- filter_out: nan
|
||||
- lambda: |-
|
||||
if (x == 0) {
|
||||
return {}; // This filters out the reading
|
||||
} else {
|
||||
return x; // This passes the reading through
|
||||
}
|
||||
- sliding_window_moving_average:
|
||||
window_size: 10
|
||||
send_every: 20
|
||||
|
||||
button:
|
||||
- platform: factory_reset
|
||||
@@ -99,7 +99,7 @@ speaker:
|
||||
dac_type: external
|
||||
bits_per_sample: 16bit
|
||||
sample_rate: 16000
|
||||
channel: stereo # The Echo has poor playback audio quality when using mon audio
|
||||
channel: stereo # The Echo has poor playback audio quality when using mon audio
|
||||
buffer_duration: 60ms
|
||||
|
||||
media_player:
|
||||
@@ -197,7 +197,7 @@ voice_assistant:
|
||||
- delay: 2s
|
||||
- script.execute: reset_led
|
||||
on_client_connected:
|
||||
- delay: 2s # Give the api server time to settle
|
||||
- delay: 2s # Give the api server time to settle
|
||||
- script.execute: start_wake_word
|
||||
on_client_disconnected:
|
||||
- script.execute: stop_wake_word
|
||||
@@ -355,24 +355,24 @@ switch:
|
||||
on_turn_off:
|
||||
# Turn off the repeat mode and disable the pause between playlist items
|
||||
- lambda: |-
|
||||
id(echo_media_player)
|
||||
->make_call()
|
||||
.set_command(media_player::MediaPlayerCommand::MEDIA_PLAYER_COMMAND_REPEAT_OFF)
|
||||
.set_announcement(true)
|
||||
.perform();
|
||||
id(echo_media_player)->set_playlist_delay_ms(speaker::AudioPipelineType::ANNOUNCEMENT, 0);
|
||||
id(echo_media_player)
|
||||
->make_call()
|
||||
.set_command(media_player::MediaPlayerCommand::MEDIA_PLAYER_COMMAND_REPEAT_OFF)
|
||||
.set_announcement(true)
|
||||
.perform();
|
||||
id(echo_media_player)->set_playlist_delay_ms(speaker::AudioPipelineType::ANNOUNCEMENT, 0);
|
||||
# Stop playing the alarm
|
||||
- media_player.stop:
|
||||
announcement: true
|
||||
on_turn_on:
|
||||
# Turn on the repeat mode and pause for 1000 ms between playlist items/repeats
|
||||
- lambda: |-
|
||||
id(echo_media_player)
|
||||
->make_call()
|
||||
.set_command(media_player::MediaPlayerCommand::MEDIA_PLAYER_COMMAND_REPEAT_ONE)
|
||||
.set_announcement(true)
|
||||
.perform();
|
||||
id(echo_media_player)->set_playlist_delay_ms(speaker::AudioPipelineType::ANNOUNCEMENT, 1000);
|
||||
id(echo_media_player)
|
||||
->make_call()
|
||||
.set_command(media_player::MediaPlayerCommand::MEDIA_PLAYER_COMMAND_REPEAT_ONE)
|
||||
.set_announcement(true)
|
||||
.perform();
|
||||
id(echo_media_player)->set_playlist_delay_ms(speaker::AudioPipelineType::ANNOUNCEMENT, 1000);
|
||||
- media_player.speaker.play_on_device_media_file:
|
||||
media_file: timer_finished_wave_file
|
||||
announcement: true
|
||||
|
||||
Reference in New Issue
Block a user