From 48e4f757939dc5880edb40fabb34139ce6a6d606 Mon Sep 17 00:00:00 2001 From: Chris <1105672+firstof9@users.noreply.github.com> Date: Tue, 16 Dec 2025 10:47:05 -0700 Subject: [PATCH 1/5] fix: disable wifi when playing songs on buzzer Stops ESP chip from resetting when playing songs at 50% on the buzzer. --- Integrations/ESPHome/Core.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index c4c2a4c..e129916 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -806,8 +806,10 @@ script: brightness: 60% id: logo_light effect: "RainbowWave" + - wifi.disable: - rtttl.play: rtttl: !lambda 'return id(song_1).state;' + - wifi.enable: - delay: 30s - light.turn_off: rgb_light - light.turn_off: logo_light @@ -823,8 +825,10 @@ script: brightness: 80% id: logo_light effect: "TwinklingRed" + - wifi.disable: - rtttl.play: rtttl: !lambda 'return id(song_2).state;' + - wifi.enable: - delay: 30s - light.turn_off: rgb_light - light.turn_off: logo_light @@ -840,6 +844,7 @@ script: brightness: 60% id: logo_light effect: "RedGreen" + - wifi.disable: - rtttl.play: rtttl: !lambda 'return id(song_3).state;' - delay: 30s @@ -857,8 +862,10 @@ script: brightness: 80% id: logo_light effect: "TwinklingBlues" + - wifi.disable: - rtttl.play: rtttl: !lambda 'return id(song_4).state;' + - wifi.enable: - delay: 30s - light.turn_off: rgb_light - light.turn_off: logo_light @@ -874,8 +881,10 @@ script: brightness: 60% id: logo_light effect: "Sandstorm" + - wifi.disable: - rtttl.play: rtttl: Sandstorm:d=16,o=6,b=85:e,e,e,e,8e,e,e,a,a,a,a,g,g,g,d,e,e,e,e, 8e,e,a,e,e,e,e,8e,e,d,e,e,e,e,e,8e,e,e,a,a,a,a,g,g,g,d,e,e,e,e,8e,e, a,e,e,e,e,8e,e,d,e,e,e,e,e,8e,e,e,a,a,a,a,g,g,g,d,e,e,e,e,8e,e,a,e, e,e,e,8e,e,d,e + - wifi.enable: - delay: 30s - light.turn_off: rgb_light - light.turn_off: logo_light From eb346e0e0f963b5c0e0f16528aebcc2a5926ea38 Mon Sep 17 00:00:00 2001 From: Chris <1105672+firstof9@users.noreply.github.com> Date: Tue, 16 Dec 2025 11:52:21 -0700 Subject: [PATCH 2/5] Delete .DS_Store -1 mac users --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 66544f017c880eea9e05fd2d544a58a0a328c19d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKOKQU~5S>X)F?8c)m%2i3AWV9KT%aX^PzWxxN!DKVTsd0ad^X1I&e?=FFnZEx zo`l}Q;}H?<&-=AVCn7D}P=0Ngo9&y=Y?ToO!g0o@>@M5y;rKNiX4!uSjQcD4-ZW$e#hzg+>MLt-uXFauu5Z From 74122bc9b18151f397675eac2c77a01082d46b76 Mon Sep 17 00:00:00 2001 From: Chris <1105672+firstof9@users.noreply.github.com> Date: Tue, 16 Dec 2025 11:56:59 -0700 Subject: [PATCH 3/5] revert core changes --- Integrations/ESPHome/Core.yaml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index e129916..c4c2a4c 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -806,10 +806,8 @@ script: brightness: 60% id: logo_light effect: "RainbowWave" - - wifi.disable: - rtttl.play: rtttl: !lambda 'return id(song_1).state;' - - wifi.enable: - delay: 30s - light.turn_off: rgb_light - light.turn_off: logo_light @@ -825,10 +823,8 @@ script: brightness: 80% id: logo_light effect: "TwinklingRed" - - wifi.disable: - rtttl.play: rtttl: !lambda 'return id(song_2).state;' - - wifi.enable: - delay: 30s - light.turn_off: rgb_light - light.turn_off: logo_light @@ -844,7 +840,6 @@ script: brightness: 60% id: logo_light effect: "RedGreen" - - wifi.disable: - rtttl.play: rtttl: !lambda 'return id(song_3).state;' - delay: 30s @@ -862,10 +857,8 @@ script: brightness: 80% id: logo_light effect: "TwinklingBlues" - - wifi.disable: - rtttl.play: rtttl: !lambda 'return id(song_4).state;' - - wifi.enable: - delay: 30s - light.turn_off: rgb_light - light.turn_off: logo_light @@ -881,10 +874,8 @@ script: brightness: 60% id: logo_light effect: "Sandstorm" - - wifi.disable: - rtttl.play: rtttl: Sandstorm:d=16,o=6,b=85:e,e,e,e,8e,e,e,a,a,a,a,g,g,g,d,e,e,e,e, 8e,e,a,e,e,e,e,8e,e,d,e,e,e,e,e,8e,e,e,a,a,a,a,g,g,g,d,e,e,e,e,8e,e, a,e,e,e,e,8e,e,d,e,e,e,e,e,8e,e,e,a,a,a,a,g,g,g,d,e,e,e,e,8e,e,a,e, e,e,e,8e,e,d,e - - wifi.enable: - delay: 30s - light.turn_off: rgb_light - light.turn_off: logo_light From e2a4ff532ed45c082128617623675268e72b892b Mon Sep 17 00:00:00 2001 From: Chris <1105672+firstof9@users.noreply.github.com> Date: Tue, 16 Dec 2025 11:57:51 -0700 Subject: [PATCH 4/5] override core song scripts --- Integrations/ESPHome/H-2.yaml | 77 +++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/Integrations/ESPHome/H-2.yaml b/Integrations/ESPHome/H-2.yaml index 2c27781..03c74a6 100644 --- a/Integrations/ESPHome/H-2.yaml +++ b/Integrations/ESPHome/H-2.yaml @@ -253,3 +253,80 @@ script: packages: core: !include Core.yaml + +script: + - id: !extend play_song_1 + then: + - light.turn_on: + brightness: 80% + id: rgb_light + effect: "RainbowWave" + - light.turn_on: + brightness: 60% + id: logo_light + effect: "RainbowWave" + - wifi.disable: + - rtttl.play: + rtttl: !lambda 'return id(song_1).state;' + - wifi.enable: + - delay: 30s + - light.turn_off: rgb_light + - light.turn_off: logo_light + - script.execute: ShouldSleep + + - id: !extend play_song_2 + then: + - light.turn_on: + brightness: 80% + id: rgb_light + effect: "TwinklingWhite" + - light.turn_on: + brightness: 80% + id: logo_light + effect: "TwinklingRed" + - wifi.disable: + - rtttl.play: + rtttl: !lambda 'return id(song_2).state;' + - wifi.enable: + - delay: 30s + - light.turn_off: rgb_light + - light.turn_off: logo_light + - script.execute: ShouldSleep + + - id: !extend play_song_3 + then: + - light.turn_on: + brightness: 80% + id: rgb_light + effect: "RedGreen" + - light.turn_on: + brightness: 60% + id: logo_light + effect: "RedGreen" + - wifi.disable: + - rtttl.play: + rtttl: !lambda 'return id(song_3).state;' + - wifi.enable: + - delay: 30s + - light.turn_off: rgb_light + - light.turn_off: logo_light + - script.execute: ShouldSleep + + - id: !extend play_song_4 + then: + - light.turn_on: + brightness: 80% + id: rgb_light + effect: "TwinklingBlues" + - light.turn_on: + brightness: 80% + id: logo_light + effect: "TwinklingBlues" + - wifi.disable: + - rtttl.play: + rtttl: !lambda 'return id(song_4).state;' + - wifi.enable: + - delay: 30s + - light.turn_off: rgb_light + - light.turn_off: logo_light + - script.execute: ShouldSleep From 93bfb1a409351f229eeae62ebc4ab0a7a8b00b7c Mon Sep 17 00:00:00 2001 From: Chris <1105672+firstof9@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:47:23 -0700 Subject: [PATCH 5/5] test moving scripts around --- Integrations/ESPHome/H-2.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Integrations/ESPHome/H-2.yaml b/Integrations/ESPHome/H-2.yaml index 03c74a6..a854fa5 100644 --- a/Integrations/ESPHome/H-2.yaml +++ b/Integrations/ESPHome/H-2.yaml @@ -249,12 +249,6 @@ script: else: - deep_sleep.enter: id: deep_sleep_1 - - -packages: - core: !include Core.yaml - -script: - id: !extend play_song_1 then: - light.turn_on: @@ -330,3 +324,7 @@ script: - light.turn_off: rgb_light - light.turn_off: logo_light - script.execute: ShouldSleep + + +packages: + core: !include Core.yaml