Skip to content

Commit ea36849

Browse files
committed
Rename Sensors
1 parent 9d1ed2d commit ea36849

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

docs/firmware/nuki-bridge-firmware.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You can connect your Doorman via USB-C and click the button below to install the
5454

5555
### Switches
5656
- Ring To Open `doorman_ring_to_open`
57-
- Ring To Open Confirmation `doorman_ring_to_open_confirmation` <Badge type="info" text="Disabled by default" />
57+
- Ring To Open: Confirmation `doorman_ring_to_open_confirmation` <Badge type="info" text="Disabled by default" />
5858
- Relay `doorman_relay` <Badge type="info" text="Disabled by default" />
5959
- Nuki Pairing Mode `nuki_pairing_mode` <Badge type="info" text="Disabled by default" />
6060

@@ -78,8 +78,8 @@ You can connect your Doorman via USB-C and click the button below to install the
7878
- Command: Pick up phone `pick_up_phone_command_input` <Badge type="info" text="Disabled by default" />
7979
- Command: Hang up phone `hang_up_phone_command_input` <Badge type="info" text="Disabled by default" />
8080
- Command: Ring To Open Toggle `ring_to_open_toggle_command` <Badge type="info" text="Disabled by default" />
81-
- Ring To Open Delay `ring_to_open_delay` <Badge type="info" text="Disabled by default" />
82-
- Ring To Open Timeout `ring_to_open_timeout_mode` <Badge type="info" text="Disabled by default" />
81+
- Ring To Open: Delay `doorman_ring_to_open_delay` <Badge type="info" text="Disabled by default" />
82+
- Ring To Open: Timeout `doorman_ring_to_open_timeout_mode` <Badge type="info" text="Disabled by default" />
8383

8484
## Pairing your Nuki Lock
8585
Depending on the PCB revision, press the `FLASH` or `PRG` button on the Doorman PCB for 5 seconds until the Status LED starts flashing purple or turn on the `Nuki Pairing Mode` switch in Home Assistant. Press the Button on your Nuki Lock for 5 seconds until the light-ring turns on.

docs/firmware/stock-firmware.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You can connect your Doorman via USB-C and click the button below to install the
4444

4545
### Switches
4646
- Ring To Open `doorman_ring_to_open`
47-
- Ring To Open Confirmation `doorman_ring_to_open_confirmation` <Badge type="info" text="Disabled by default" />
47+
- Ring To Open: Confirmation `doorman_ring_to_open_confirmation` <Badge type="info" text="Disabled by default" />
4848
- Relay `doorman_relay` <Badge type="info" text="Disabled by default" />
4949

5050
### Buttons
@@ -66,8 +66,8 @@ You can connect your Doorman via USB-C and click the button below to install the
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" />
6868
- Command: Ring To Open Toggle `ring_to_open_toggle_command` <Badge type="info" text="Disabled by default" />
69-
- Ring To Open Delay `ring_to_open_delay` <Badge type="info" text="Disabled by default" />
70-
- Ring To Open Timeout `ring_to_open_timeout_mode` <Badge type="info" text="Disabled by default" />
69+
- Ring To Open: Delay `doorman_ring_to_open_delay` <Badge type="info" text="Disabled by default" />
70+
- Ring To Open: Timeout `doorman_ring_to_open_timeout_mode` <Badge type="info" text="Disabled by default" />
7171

7272

7373

firmware/base.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ tcs_intercom:
149149

150150
select:
151151
- platform: template
152-
id: ring_to_open_timeout_mode
152+
id: doorman_ring_to_open_timeout_mode
153153
name: Ring To Open Timeout
154154
icon: mdi:clock-fast
155155
optimistic: true
@@ -200,7 +200,7 @@ switch:
200200
- script.stop: ring_to_open_timer
201201

202202
- platform: template
203-
name: Ring To Open Confirmation
203+
name: "Ring To Open: Confirmation"
204204
icon: mdi:bell-check
205205
id: doorman_ring_to_open_confirmation
206206
restore_mode: RESTORE_DEFAULT_OFF
@@ -316,20 +316,20 @@ binary_sensor:
316316
# Deactivate Ring To Open when Ring once is selected
317317
- if:
318318
condition:
319-
- lambda: !lambda 'return id(ring_to_open_timeout_mode).state == "Ring once";'
319+
- lambda: !lambda 'return id(doorman_ring_to_open_timeout_mode).state == "Ring once";'
320320
then:
321321
- switch.turn_off: doorman_ring_to_open
322322

323323
# If delay is 60 seconds, use random delay from 5 to 20 seconds
324324
- if:
325325
condition:
326326
number.in_range:
327-
id: ring_to_open_delay
327+
id: doorman_ring_to_open_delay
328328
above: 59
329329
then:
330330
- delay: !lambda "return 5000 + (rand() % 10000);"
331331
else:
332-
- delay: !lambda "return id(ring_to_open_delay).state*1000;"
332+
- delay: !lambda "return id(doorman_ring_to_open_delay).state*1000;"
333333

334334
- tcs_intercom.send:
335335
command: !lambda "return id(first_door_opener_command);"
@@ -486,8 +486,9 @@ binary_sensor:
486486

487487
number:
488488
- platform: template
489-
name: Ring To Open Delay
490-
id: ring_to_open_delay
489+
name: "Ring To Open: Delay"
490+
id: doorman_ring_to_open_delay
491+
icon: "mdi:clock-end"
491492
mode: slider
492493
min_value: 0
493494
max_value: 60
@@ -496,9 +497,8 @@ number:
496497
restore_value: true
497498
initial_value: 0
498499
unit_of_measurement: seconds
499-
disabled_by_default: true
500500
entity_category: CONFIG
501-
icon: "mdi:clock-end"
501+
disabled_by_default: true
502502

503503
text:
504504
- platform: template
@@ -637,10 +637,10 @@ script:
637637
# Turn off Ring To Open Mode after selected time
638638
- if:
639639
condition:
640-
- lambda: !lambda 'return id(ring_to_open_timeout_mode).state != "Never" && id(ring_to_open_timeout_mode).state != "Ring once";'
640+
- lambda: !lambda 'return id(doorman_ring_to_open_timeout_mode).state != "Never" && id(doorman_ring_to_open_timeout_mode).state != "Ring once";'
641641
then:
642642
- delay: !lambda |-
643-
std::string str = id(ring_to_open_timeout_mode).state;
643+
std::string str = id(doorman_ring_to_open_timeout_mode).state;
644644
std::vector<std::string> v;
645645
char * token;
646646
char seps[] = " ";

0 commit comments

Comments
 (0)