Skip to content

Commit

Permalink
Fix references
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Aug 28, 2024
1 parent e789aa6 commit 4172c3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions firmware/addons/interactive-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ binary_sensor:
apartment_doorbell_command == 0 &&
entrance_doorbell_command == 0 &&
pick_up_phone_command == 0 &&
ring_to_open_toggle_command == 0;
function_key_command == 0;
then:
- button.press: doorman_interactive_setup_start

Expand Down Expand Up @@ -57,7 +57,7 @@ text_sensor:
name: "Interactive Setup: Status"
entity_category: CONFIG

# Setup TCS Intercom Component
# Extend TCS Intercom Component
tcs_intercom:
bus_command:
on_value:
Expand Down Expand Up @@ -86,11 +86,11 @@ tcs_intercom:
# LED State
- script.execute:
id: interactive_setup_next
next_step: "ring_to_open_toggle_command"
next_step: "function_key_command"
text: "Press the 'Function (Circle)' Button"
first_step: false

# Step: ring_to_open_toggle_command
# Step: function_key_command
- if:
condition:
- lambda: |-
Expand All @@ -99,15 +99,15 @@ tcs_intercom:
{
str.erase(4); // Ingore system commands
}
return id(interactive_setup_step) == "ring_to_open_toggle_command" && str != "0000";
return id(interactive_setup_step) == "function_key_command" && str != "0000";
then:
# Save Command
- lambda: |-
unsigned long number = 0;
if(std::string(x.c_str()) != "") {
number = std::stoul(x.c_str(), nullptr, 16);
}
id(ring_to_open_toggle_command) = number;
id(function_key_command) = number;
ESP_LOGI("MAIN", "Setup: Saved Step: %s", id(interactive_setup_step).c_str());
# LED State
- script.execute:
Expand Down

0 comments on commit 4172c3f

Please sign in to comment.