Reorg relays
This commit is contained in:
@@ -767,17 +767,17 @@ select:
|
|||||||
disabled_by_default: false
|
disabled_by_default: false
|
||||||
icon: mdi:dots-square
|
icon: mdi:dots-square
|
||||||
|
|
||||||
- <<: *relay_light_mode_eu
|
- id: sl_relay_2_light_mode_eu
|
||||||
id: sl_relay_2_light_mode_eu
|
|
||||||
name: Relay 2 light mode
|
name: Relay 2 light mode
|
||||||
|
<<: *relay_light_mode_eu
|
||||||
|
|
||||||
- <<: *relay_light_mode_eu
|
- id: sl_relay_3_light_mode_eu
|
||||||
id: sl_relay_3_light_mode_eu
|
|
||||||
name: Relay 3 light mode
|
name: Relay 3 light mode
|
||||||
|
<<: *relay_light_mode_eu
|
||||||
|
|
||||||
- <<: *relay_light_mode_eu
|
- id: sl_relay_4_light_mode_eu
|
||||||
id: sl_relay_4_light_mode_eu
|
|
||||||
name: Relay 4 light mode
|
name: Relay 4 light mode
|
||||||
|
<<: *relay_light_mode_eu
|
||||||
|
|
||||||
# US relay light mode template
|
# US relay light mode template
|
||||||
- &relay_light_mode_us
|
- &relay_light_mode_us
|
||||||
@@ -797,15 +797,15 @@ select:
|
|||||||
disabled_by_default: false
|
disabled_by_default: false
|
||||||
icon: mdi:dots-square
|
icon: mdi:dots-square
|
||||||
|
|
||||||
- <<: *relay_light_mode_us
|
- id: sl_relay_2_light_mode_us
|
||||||
id: sl_relay_2_light_mode_us
|
|
||||||
name: Relay 2 light mode
|
name: Relay 2 light mode
|
||||||
|
<<: *relay_light_mode_us
|
||||||
|
|
||||||
- <<: *relay_light_mode_us
|
- id: sl_relay_3_light_mode_us
|
||||||
id: sl_relay_3_light_mode_us
|
|
||||||
name: Relay 3 light mode
|
name: Relay 3 light mode
|
||||||
|
<<: *relay_light_mode_us
|
||||||
|
|
||||||
- <<: *relay_light_mode_us
|
- id: sl_relay_4_light_mode_us
|
||||||
id: sl_relay_4_light_mode_us
|
|
||||||
name: Relay 4 light mode
|
name: Relay 4 light mode
|
||||||
|
<<: *relay_light_mode_us
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -172,7 +172,8 @@ select:
|
|||||||
icon: mdi:dip-switch
|
icon: mdi:dip-switch
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- id: sw_relay_1
|
- &relay_switch_base
|
||||||
|
id: sw_relay_1
|
||||||
name: Relay 1
|
name: Relay 1
|
||||||
platform: output
|
platform: output
|
||||||
output: output_relay_1
|
output: output_relay_1
|
||||||
@@ -187,40 +188,16 @@ switch:
|
|||||||
|
|
||||||
- id: sw_relay_2
|
- id: sw_relay_2
|
||||||
name: Relay 2
|
name: Relay 2
|
||||||
platform: output
|
|
||||||
output: output_relay_2
|
output: output_relay_2
|
||||||
restore_mode: RESTORE_DEFAULT_OFF
|
<<: *relay_switch_base
|
||||||
internal: true
|
|
||||||
on_turn_on:
|
|
||||||
then:
|
|
||||||
- script.execute: show_relay_status
|
|
||||||
on_turn_off:
|
|
||||||
then:
|
|
||||||
- script.execute: show_relay_status
|
|
||||||
|
|
||||||
- id: sw_relay_3
|
- id: sw_relay_3
|
||||||
name: Relay 3
|
name: Relay 3
|
||||||
platform: output
|
|
||||||
output: output_relay_3
|
output: output_relay_3
|
||||||
restore_mode: RESTORE_DEFAULT_OFF
|
<<: *relay_switch_base
|
||||||
internal: true
|
|
||||||
on_turn_on:
|
|
||||||
then:
|
|
||||||
- script.execute: show_relay_status
|
|
||||||
on_turn_off:
|
|
||||||
then:
|
|
||||||
- script.execute: show_relay_status
|
|
||||||
|
|
||||||
- id: sw_relay_4
|
- id: sw_relay_4
|
||||||
name: Relay 4
|
name: Relay 4
|
||||||
platform: output
|
|
||||||
output: output_relay_4
|
output: output_relay_4
|
||||||
restore_mode: RESTORE_DEFAULT_OFF
|
<<: *relay_switch_base
|
||||||
internal: true
|
|
||||||
on_turn_on:
|
|
||||||
then:
|
|
||||||
- script.execute: show_relay_status
|
|
||||||
on_turn_off:
|
|
||||||
then:
|
|
||||||
- script.execute: show_relay_status
|
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user