Skip to content

Commit 8dfe8ea

Browse files
committed
Streamline Ring To Open ids
1 parent ea36849 commit 8dfe8ea

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

docs/firmware/nuki-bridge-firmware.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ You can connect your Doorman via USB-C and click the button below to install the
5151
- Nuki Door Sensor `nuki_door_sensor` <Badge type="info" text="Disabled by default" />
5252
- Nuki Door Sensor State `nuki_door_sensor_state` <Badge type="info" text="Disabled by default" />
5353

54-
5554
### Switches
5655
- Ring To Open `doorman_ring_to_open`
5756
- Ring To Open: Confirmation `doorman_ring_to_open_confirmation` <Badge type="info" text="Disabled by default" />
@@ -77,7 +76,7 @@ You can connect your Doorman via USB-C and click the button below to install the
7776
- Command: Open Second Door `open_second_door_command_input` <Badge type="info" text="Disabled by default" />
7877
- Command: Pick up phone `pick_up_phone_command_input` <Badge type="info" text="Disabled by default" />
7978
- Command: Hang up phone `hang_up_phone_command_input` <Badge type="info" text="Disabled by default" />
80-
- Command: Ring To Open Toggle `ring_to_open_toggle_command` <Badge type="info" text="Disabled by default" />
79+
- Command: Ring To Open Toggle `ring_to_open_toggle_command_input` <Badge type="info" text="Disabled by default" />
8180
- Ring To Open: Delay `doorman_ring_to_open_delay` <Badge type="info" text="Disabled by default" />
8281
- Ring To Open: Timeout `doorman_ring_to_open_timeout_mode` <Badge type="info" text="Disabled by default" />
8382

docs/firmware/stock-firmware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You can connect your Doorman via USB-C and click the button below to install the
6565
- Command: Open Second Door `open_second_door_command_input` <Badge type="info" text="Disabled by default" />
6666
- Command: Pick up phone `pick_up_phone_command_input` <Badge type="info" text="Disabled by default" />
6767
- Command: Hang up phone `hang_up_phone_command_input` <Badge type="info" text="Disabled by default" />
68-
- Command: Ring To Open Toggle `ring_to_open_toggle_command` <Badge type="info" text="Disabled by default" />
68+
- Command: Ring To Open Toggle `ring_to_open_toggle_command_input` <Badge type="info" text="Disabled by default" />
6969
- Ring To Open: Delay `doorman_ring_to_open_delay` <Badge type="info" text="Disabled by default" />
7070
- Ring To Open: Timeout `doorman_ring_to_open_timeout_mode` <Badge type="info" text="Disabled by default" />
7171

firmware/base.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ globals:
4141
restore_value: true
4242
initial_value: '0x3000'
4343

44-
- id: ring_to_open_command
44+
- id: ring_to_open_toggle_command
4545
type: int
4646
restore_value: true
4747
initial_value: '0x00000000'
@@ -478,9 +478,9 @@ binary_sensor:
478478

479479
# Ring To Open - toggle switch automation
480480
- platform: tcs_intercom
481-
id: ring_to_open_toggle_command
481+
id: ring_to_open_toggle
482482
internal: true
483-
lambda: !lambda "return id(ring_to_open_command);"
483+
lambda: !lambda "return id(ring_to_open_toggle_command);"
484484
on_press:
485485
- switch.toggle: doorman_ring_to_open
486486

@@ -589,7 +589,7 @@ text:
589589
icon: "mdi:console-network"
590590

591591
- platform: template
592-
id: toggle_ring_to_open_command_input
592+
id: ring_to_open_toggle_command_input
593593
name: "Command: Toggle Ring To Open"
594594
optimistic: true
595595
mode: text
@@ -598,7 +598,7 @@ text:
598598
on_value:
599599
then:
600600
- lambda: |-
601-
id(ring_to_open_command) = std::stoi(x.c_str(), nullptr, 16);
601+
id(ring_to_open_toggle_command) = std::stoi(x.c_str(), nullptr, 16);
602602
disabled_by_default: true
603603
entity_category: CONFIG
604604
icon: "mdi:console-network"

0 commit comments

Comments
 (0)