Skip to content

Commit

Permalink
Merge pull request #3 from ApolloAutomation/ChangeBrightness
Browse files Browse the repository at this point in the history
Reduce Brightness
  • Loading branch information
TrevorSchirmer authored Nov 1, 2024
2 parents f50c2f4 + f5c1da6 commit 318eef3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Integrations/ESPHome/Core.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
substitutions:
name: apollo-h-1
version: "24.10.29.1"
version: "24.11.1.1"
device_description: ${name} made by Apollo Automation - version ${version}.

esp32:
Expand Down Expand Up @@ -296,7 +296,7 @@ light:
lambda: |-
for (int i = 0; i < it.size(); i++) {
// Generate a random brightness factor between 50% and 100%
float brightness_factor = 0.5 + (esp_random() % 51) / 90.0;
float brightness_factor = 0.5 + (esp_random() % 30) / 75.0;
// Apply brightness to white color (255, 255, 255) for a twinkle effect
int white_r = 255 * brightness_factor;
Expand Down Expand Up @@ -338,7 +338,7 @@ script:
then:
- switch.turn_on: accessory_power
- light.turn_on:
brightness: 75%
brightness: 50%
id: rgb_light
effect: "RainbowWave"
- rtttl.play:
Expand All @@ -351,13 +351,13 @@ script:
- switch.is_off: prevent_sleep
then:
- deep_sleep.enter:
id: deep_sleep_1
id: deep_sleep_1

- id: play_song_2
then:
- switch.turn_on: accessory_power
- light.turn_on:
brightness: 75%
brightness: 50%
id: rgb_light
effect: "TwinklingWhite"
- rtttl.play:
Expand All @@ -370,13 +370,13 @@ script:
- switch.is_off: prevent_sleep
then:
- deep_sleep.enter:
id: deep_sleep_1
id: deep_sleep_1

- id: play_song_3
then:
- switch.turn_on: accessory_power
- light.turn_on:
brightness: 75%
brightness: 50%
id: rgb_light
effect: "RedGreen"
- rtttl.play:
Expand All @@ -389,7 +389,7 @@ script:
- switch.is_off: prevent_sleep
then:
- deep_sleep.enter:
id: deep_sleep_1
id: deep_sleep_1

- id: testScript
then:
Expand Down

0 comments on commit 318eef3

Please sign in to comment.