Skip to content

Commit

Permalink
Add id's for time definitions to be extended/configureable with !exte…
Browse files Browse the repository at this point in the history
…nd and reduce unneeded cosmetic diffs between tx_ultimate and local (#42)
  • Loading branch information
SebTM authored Aug 15, 2024
1 parent 9557f24 commit 1723392
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tx_ultimate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ external_components:
url: https://github.com/SmartHome-yourself/sonoff-tx-ultimate-for-esphome
ref: main
components: [tx_ultimate_touch]



globals:
Expand Down Expand Up @@ -536,7 +536,9 @@ tx_ultimate_touch:
time:
- platform: homeassistant
id: homeassistant_time
- platform: sntp
id: sntp_time
on_time:
# Every 5 minutes
- seconds: 0
Expand Down
5 changes: 4 additions & 1 deletion tx_ultimate_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ substitutions:

touchpanel_power_pin: GPIO5


esphome:
name: ${name}
friendly_name: ${friendly_name}
Expand Down Expand Up @@ -440,7 +441,7 @@ media_player:
dac_type: external
i2s_dout_pin: ${audio_sdata_pin}
i2s_audio_id: audio_i2s
i2s_comm_fmt: lsb
i2s_comm_fmt: lsb
mode: mono

i2s_audio:
Expand Down Expand Up @@ -534,7 +535,9 @@ tx_ultimate_touch:
time:
- platform: homeassistant
id: homeassistant_time
- platform: sntp
id: sntp_time
on_time:
# Every 5 minutes
- seconds: 0
Expand Down

0 comments on commit 1723392

Please sign in to comment.