Skip to content

Commit

Permalink
Fix Number Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Sep 30, 2024
1 parent 3a99a81 commit 6f71414
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions firmware/addons/memory-utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,64 +21,59 @@ button:
number:
- platform: template
name: "Ringtone volume"
optimistic: true
min_value: 0
max_value: 7
step: 1
lambda: !lambda "return id(tc_bus_intercom)->get_settings().ringtone_volume;"
update_interval: 10s
update_interval: 1s
set_action:
- tc_bus.update_setting:
type: volume_ringtone
value: !lambda "return x;"

- platform: template
name: "Handset volume"
optimistic: true
min_value: 0
max_value: 7
step: 1
lambda: !lambda "return id(tc_bus_intercom)->get_settings().handset_volume;"
update_interval: 10s
update_interval: 1s
set_action:
- tc_bus.update_setting:
type: volume_handset
value: !lambda "return x;"

- platform: template
name: "Ringtone: Floor Call"
optimistic: true
min_value: 0
max_value: 12
step: 1
lambda: !lambda "return id(tc_bus_intercom)->get_settings().floor_call_ringtone;"
update_interval: 10s
update_interval: 1s
set_action:
- tc_bus.update_setting:
type: ringtone_floor_call
value: !lambda "return x;"

- platform: template
name: "Ringtone: Door Call"
optimistic: true
min_value: 0
max_value: 12
step: 1
lambda: !lambda "return id(tc_bus_intercom)->get_settings().door_call_ringtone;"
update_interval: 10s
update_interval: 1s
set_action:
- tc_bus.update_setting:
type: ringtone_door_call
value: !lambda "return x;"

- platform: template
name: "Ringtone: Internal Call"
optimistic: true
min_value: 0
max_value: 12
step: 1
lambda: !lambda "return id(tc_bus_intercom)->get_settings().internal_call_ringtone;"
update_interval: 10s
update_interval: 1s
set_action:
- tc_bus.update_setting:
type: ringtone_internal_call
Expand Down

0 comments on commit 6f71414

Please sign in to comment.