Skip to content

Commit

Permalink
Change colors
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Aug 28, 2024
1 parent 7fefa7d commit bee01eb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/de/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Greif entweder auf den internen Webserver deines Doormans zu oder besuche die [E
In `Konfiguration`-Bereich findest du den Button `Interactive Setup: Start`. Klicke darauf, um den Einrichtungsprozess zu starten.

Sobald der Prozess begonnen hat, wird der `Interactive Setup: Status` Text Sensor dich durch die erforderlichen Schritte führen (z.B. Knopf X drücken, warten oder das Telefon abheben).\
Während der Einrichtung pulsiert die RGB-Status-LED türkis, solange du die Aufgabe noch nicht abgeschlossen hast, und bleibt 3 Sekunden lang türkis, nachdem der Befehl gespeichert wurde.
Während der Einrichtung pulsiert die RGB-Status-LED grün-türkis, solange du die Aufgabe noch nicht abgeschlossen hast, und bleibt 3 Sekunden lang grün-türkis, nachdem der Befehl gespeichert wurde.

Nach Abschluss der Einrichtung endet der Prozess automatisch und zeigt den entsprechenden Status an.

Expand Down
2 changes: 1 addition & 1 deletion docs/en/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ To get started, either access the internal web server of your Doorman or visit t
In the `Configuration` section, you will find the `Interactive Setup: Start` button. Click this button to initiate the setup process.

Once started, the `Interactive Setup: Status` Text Sensor will guide you through the required steps (e.g., press button X, wait, or pick up the phone).\
During the setup, the RGB Status LED will pulse turquoise while waiting for you to complete each task and will remain solid turquoise for 3 seconds after saving the command.
During the setup, the RGB Status LED will pulse green-turquoise while waiting for you to complete each task and will remain solid green-turquoise for 3 seconds after saving the command.

After the setup is complete, the process will automatically end and display the corresponding status.

Expand Down
35 changes: 21 additions & 14 deletions firmware/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
substitutions:
name: "doorman-s3"
friendly_name: "Doorman S3"
log_level: "ERROR"
log_level: "INFO"

# Hardware Configuration
led_pin: "GPIO1"
Expand Down Expand Up @@ -99,25 +99,32 @@ esphome:
- light.turn_on:
id: doorman_rgb_status_led
effect: slow_pulse
red: 9%
green: 74%
blue: 95%
red: 0%
green: 22%
blue: 100%
- wait_until:
condition:
api.connected:
- light.turn_on:
id: doorman_rgb_status_led
effect: none
red: 9%
green: 74%
blue: 95%
red: 0%
green: 22%
blue: 100%
color_brightness: 60%
- delay: 3s
- script.execute: update_led
- delay: 2s
- if:
condition:
- lambda: return id(initial_setup_done) == false && apartment_doorbell_command == 0;
# Ignore initial setup if something is already set
- lambda: |-
return
id(initial_setup_done) == false &&
apartment_doorbell_command == 0 &&
entrance_doorbell_command == 0 &&
pick_up_phone_command == 0 &&
ring_to_open_toggle_command == 0;
then:
- button.press: doorman_interactive_setup_start

Expand Down Expand Up @@ -988,9 +995,9 @@ script:
# LED State: Saved
- light.turn_on:
id: doorman_rgb_status_led
red: 3%
green: 71%
blue: 67%
red: 0%
green: 100%
blue: 10%
effect: none
- delay: 3s

Expand All @@ -1009,9 +1016,9 @@ script:
# LED State: Waiting
- light.turn_on:
id: doorman_rgb_status_led
red: 3%
green: 71%
blue: 67%
red: 0%
green: 100%
blue: 10%
effect: pulse
else:
# Initial setup done
Expand Down

0 comments on commit bee01eb

Please sign in to comment.