init upload
This commit is contained in:
21
sonoff-m5/mode-button-b.yaml
Normal file
21
sonoff-m5/mode-button-b.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
# NOTE: This file is not a stand-alone package. It is part of
|
||||
# a 'root' device template and expects the substitutions that
|
||||
# are hereby referenced to be defined by its parent.
|
||||
|
||||
select:
|
||||
# Config-only select for operation mode
|
||||
- platform: template
|
||||
name: "Mode - Button B"
|
||||
id: mode_b
|
||||
icon: 'mdi:link-box-outline'
|
||||
entity_category: 'config'
|
||||
options:
|
||||
- "Latching" # 0
|
||||
- "Momentary" # 1
|
||||
- "Pulse" # 2
|
||||
- "Decoupled" # 3
|
||||
initial_option: "Latching"
|
||||
restore_value: true
|
||||
optimistic: true
|
||||
set_action:
|
||||
- switch.turn_off: relay_b
|
||||
Reference in New Issue
Block a user