Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Aug 29, 2024
1 parent 7a9ac83 commit f35e57d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions firmware/addons/interactive-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ tcs_intercom:
condition:
- lambda: return id(command_setup_mode) == true;
then:
- logger.log: Setup active
# Command is either apartment or entrance doorbell
- if:
condition:
Expand All @@ -51,6 +52,7 @@ tcs_intercom:
// Apartment Doorbell or Entrance Doorbell
return (first == "1" && last == "41") || (first == "0" && serial != "00000" && last == "80");
then:
- logger.log: Setup saving commands
# Save Commands
- lambda: |-
std::string hex_command = std::string(x.c_str());
Expand Down Expand Up @@ -99,6 +101,8 @@ tcs_intercom:

- script.execute: update_led

- logger.log: Setup done


script:
- id: !extend update_led
Expand Down

0 comments on commit f35e57d

Please sign in to comment.