Compare commits
12 Commits
v2024.12.1
...
v2024.12.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2aa036dc0e | ||
|
|
802acdc476 | ||
|
|
37b2e93896 | ||
|
|
695cca07a0 | ||
|
|
f258b8f783 | ||
|
|
7e055e7737 | ||
|
|
9fec812b66 | ||
|
|
269ba89bd3 | ||
|
|
ae87f025a3 | ||
|
|
303a3f1267 | ||
|
|
a716e8e9cf | ||
|
|
d77d761497 |
@@ -11,6 +11,27 @@
|
|||||||
##### - For normal system use, modifications to this file are NOT required. #####
|
##### - For normal system use, modifications to this file are NOT required. #####
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
---
|
---
|
||||||
|
substitutions:
|
||||||
|
# RTTTL format: name:d=duration,o=octave,b=tempo:notes
|
||||||
|
# d=32 (32nd note), o=5 (octave 5), b=100 (tempo 100)
|
||||||
|
tone_volume_change: "scale_up:d=32,o=5,b=100:c,c#,d#,e,f#,g#,a#,b" # Use "none" to disable sound
|
||||||
|
|
||||||
|
api:
|
||||||
|
actions:
|
||||||
|
- action: rtttl_play
|
||||||
|
variables:
|
||||||
|
# The RTTTL string for the melody to be played.
|
||||||
|
# It should follow the RTTTL format, including the melody's name,
|
||||||
|
# default settings, and a sequence of notes.
|
||||||
|
tone: string
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
rtttl_speaker->stop();
|
||||||
|
if (rtttl_speaker_gain->state > 0) {
|
||||||
|
ESP_LOGI("api", "Play tone: '%s'", tone.c_str());
|
||||||
|
rtttl_speaker->play(tone.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
bluetooth_proxy:
|
bluetooth_proxy:
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
@@ -33,17 +54,54 @@ esphome:
|
|||||||
build_flags:
|
build_flags:
|
||||||
- -D TX_ULTIMATE_EASY_ADDON_BLE_PROXY
|
- -D TX_ULTIMATE_EASY_ADDON_BLE_PROXY
|
||||||
|
|
||||||
i2s_audio: !remove
|
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- id: !extend light_full
|
- id: !extend light_full
|
||||||
platform: esp32_rmt_led_strip
|
platform: esp32_rmt_led_strip
|
||||||
rgb_order: GRB
|
rgb_order: GRB
|
||||||
rmt_channel: 0
|
rmt_channel: 1
|
||||||
chipset: ws2812
|
chipset: ws2812
|
||||||
type: !remove
|
type: !remove
|
||||||
variant: !remove
|
variant: !remove
|
||||||
max_refresh_rate: 33ms
|
max_refresh_rate: 33ms
|
||||||
|
use_psram: true
|
||||||
|
|
||||||
media_player: !remove
|
media_player: !remove
|
||||||
|
|
||||||
|
number:
|
||||||
|
- id: rtttl_speaker_gain
|
||||||
|
name: Sound - Volume
|
||||||
|
platform: template
|
||||||
|
max_value: 100
|
||||||
|
min_value: 0
|
||||||
|
step: 1
|
||||||
|
initial_value: 100
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
internal: false
|
||||||
|
disabled_by_default: true
|
||||||
|
entity_category: config
|
||||||
|
device_class: sound_pressure
|
||||||
|
restore_value: true
|
||||||
|
optimistic: true
|
||||||
|
set_action:
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
rtttl_speaker->set_gain((100-(x/10.0f))/100.0f);
|
||||||
|
std::string tone_volume_change = "${tone_volume_change}";
|
||||||
|
// Play sound if tone_volume_change is not "none"
|
||||||
|
if (x > 0 and !tone_volume_change.empty() and tone_volume_change != "none")
|
||||||
|
rtttl_speaker->play(tone_volume_change);
|
||||||
|
rtttl_speaker->dump_config();
|
||||||
|
|
||||||
|
rtttl:
|
||||||
|
- id: rtttl_speaker
|
||||||
|
speaker: mp_speaker
|
||||||
|
|
||||||
|
speaker:
|
||||||
|
- id: mp_speaker
|
||||||
|
platform: i2s_audio
|
||||||
|
dac_type: external
|
||||||
|
i2s_dout_pin: GPIO15
|
||||||
|
i2s_audio_id: if_i2s_audio
|
||||||
|
i2s_comm_fmt: stand_msb
|
||||||
|
channel: mono
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -85,6 +85,8 @@ ota:
|
|||||||
platform: esphome
|
platform: esphome
|
||||||
|
|
||||||
psram:
|
psram:
|
||||||
|
mode: octal
|
||||||
|
speed: 40MHz
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- id: api_send_ha_event_boot
|
- id: api_send_ha_event_boot
|
||||||
@@ -165,8 +167,14 @@ select:
|
|||||||
- lambda: tx_ultimate->set_gang_count(static_cast<uint8_t>(i)+1);
|
- lambda: tx_ultimate->set_gang_count(static_cast<uint8_t>(i)+1);
|
||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
|
- id: esphome_fw_version
|
||||||
|
name: ESPHome Version
|
||||||
|
platform: version
|
||||||
|
entity_category: diagnostic
|
||||||
|
internal: false
|
||||||
|
|
||||||
- id: tx_fw_version
|
- id: tx_fw_version
|
||||||
name: Firmware version
|
name: TX Ultimate Easy Firmware Version
|
||||||
platform: template
|
platform: template
|
||||||
entity_category: diagnostic
|
entity_category: diagnostic
|
||||||
icon: mdi:tag-text-outline
|
icon: mdi:tag-text-outline
|
||||||
|
|||||||
@@ -644,8 +644,8 @@ light:
|
|||||||
<<: *light_partition_relays
|
<<: *light_partition_relays
|
||||||
segments:
|
segments:
|
||||||
- id: light_full
|
- id: light_full
|
||||||
from: 17
|
from: 16
|
||||||
to: 18
|
to: 17
|
||||||
- id: light_us_rl_3_3_right
|
- id: light_us_rl_3_3_right
|
||||||
name: Light - Relay 3 of 3 (right)
|
name: Light - Relay 3 of 3 (right)
|
||||||
<<: *light_partition_relays
|
<<: *light_partition_relays
|
||||||
@@ -658,8 +658,8 @@ light:
|
|||||||
<<: *light_partition_relays
|
<<: *light_partition_relays
|
||||||
segments:
|
segments:
|
||||||
- id: light_full
|
- id: light_full
|
||||||
from: 12
|
from: 23
|
||||||
to: 12
|
to: 24
|
||||||
- id: light_us_rl_1_4_right
|
- id: light_us_rl_1_4_right
|
||||||
name: Light - Relay 1 of 4 (right)
|
name: Light - Relay 1 of 4 (right)
|
||||||
<<: *light_partition_relays
|
<<: *light_partition_relays
|
||||||
@@ -667,48 +667,51 @@ light:
|
|||||||
- id: light_full
|
- id: light_full
|
||||||
from: 31
|
from: 31
|
||||||
to: 31
|
to: 31
|
||||||
|
- id: light_full
|
||||||
|
from: 0
|
||||||
|
to: 0
|
||||||
- id: light_us_rl_2_4_left
|
- id: light_us_rl_2_4_left
|
||||||
name: Light - Relay 2 of 4 (left)
|
name: Light - Relay 2 of 4 (left)
|
||||||
<<: *light_partition_relays
|
<<: *light_partition_relays
|
||||||
segments:
|
segments:
|
||||||
- id: light_full
|
- id: light_full
|
||||||
from: 24
|
from: 21
|
||||||
to: 24
|
to: 22
|
||||||
- id: light_us_rl_2_4_right
|
- id: light_us_rl_2_4_right
|
||||||
name: Light - Relay 2 of 4 (right)
|
name: Light - Relay 2 of 4 (right)
|
||||||
<<: *light_partition_relays
|
<<: *light_partition_relays
|
||||||
segments:
|
segments:
|
||||||
- id: light_full
|
- id: light_full
|
||||||
from: 2
|
from: 1
|
||||||
to: 2
|
to: 2
|
||||||
- id: light_us_rl_3_4_left
|
- id: light_us_rl_3_4_left
|
||||||
name: Light - Relay 3 of 4 (left)
|
name: Light - Relay 3 of 4 (left)
|
||||||
<<: *light_partition_relays
|
<<: *light_partition_relays
|
||||||
segments:
|
segments:
|
||||||
- id: light_full
|
- id: light_full
|
||||||
from: 21
|
from: 17
|
||||||
to: 21
|
to: 18
|
||||||
- id: light_us_rl_3_4_right
|
- id: light_us_rl_3_4_right
|
||||||
name: Light - Relay 3 of 4 (right)
|
name: Light - Relay 3 of 4 (right)
|
||||||
<<: *light_partition_relays
|
<<: *light_partition_relays
|
||||||
segments:
|
segments:
|
||||||
- id: light_full
|
- id: light_full
|
||||||
from: 4
|
from: 5
|
||||||
to: 4
|
to: 6
|
||||||
- id: light_us_rl_4_4_left
|
- id: light_us_rl_4_4_left
|
||||||
name: Light - Relay 4 of 4 (left)
|
name: Light - Relay 4 of 4 (left)
|
||||||
<<: *light_partition_relays
|
<<: *light_partition_relays
|
||||||
segments:
|
segments:
|
||||||
- id: light_full
|
- id: light_full
|
||||||
from: 19
|
from: 15
|
||||||
to: 19
|
to: 16
|
||||||
- id: light_us_rl_4_4_right
|
- id: light_us_rl_4_4_right
|
||||||
name: Light - Relay 4 of 4 (right)
|
name: Light - Relay 4 of 4 (right)
|
||||||
<<: *light_partition_relays
|
<<: *light_partition_relays
|
||||||
segments:
|
segments:
|
||||||
- id: light_full
|
- id: light_full
|
||||||
from: 7
|
from: 7
|
||||||
to: 7
|
to: 8
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- id: !extend boot_initialize
|
- id: !extend boot_initialize
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ i2s_audio:
|
|||||||
media_player:
|
media_player:
|
||||||
- id: mp_speaker
|
- id: mp_speaker
|
||||||
name: Speaker
|
name: Speaker
|
||||||
|
internal: false
|
||||||
platform: i2s_audio
|
platform: i2s_audio
|
||||||
i2s_dout_pin: GPIO15
|
i2s_dout_pin: GPIO15
|
||||||
i2s_audio_id: if_i2s_audio
|
i2s_audio_id: if_i2s_audio
|
||||||
i2s_comm_fmt: lsb
|
i2s_comm_fmt: msb # Experimental - It was 'lsb' until v2024.12.12
|
||||||
dac_type: external
|
dac_type: external
|
||||||
mode: mono
|
mode: mono
|
||||||
internal: false
|
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
2024.12.12
|
2024.12.15
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
version: 2024.12.12
|
version: 2024.12.15
|
||||||
|
|||||||
Reference in New Issue
Block a user