fix: follow new default-mode esphome 2023.4
This commit is contained in:
@@ -703,6 +703,7 @@ switch:
|
|||||||
entity_category: config
|
entity_category: config
|
||||||
restore_state: true
|
restore_state: true
|
||||||
optimistic: true
|
optimistic: true
|
||||||
|
restore_mode: RESTORE_DEFAULT_OFF
|
||||||
|
|
||||||
##### Confirmation Message #####
|
##### Confirmation Message #####
|
||||||
- name: ${device_name} Confirmation Message
|
- name: ${device_name} Confirmation Message
|
||||||
@@ -718,6 +719,7 @@ switch:
|
|||||||
id: relay_1
|
id: relay_1
|
||||||
pin:
|
pin:
|
||||||
number: 22
|
number: 22
|
||||||
|
restore_mode: RESTORE_DEFAULT_OFF
|
||||||
|
|
||||||
##### PHYSICAL SWITCH 2 ######
|
##### PHYSICAL SWITCH 2 ######
|
||||||
- name: ${device_name} Relay 2
|
- name: ${device_name} Relay 2
|
||||||
@@ -725,6 +727,7 @@ switch:
|
|||||||
id: relay_2
|
id: relay_2
|
||||||
pin:
|
pin:
|
||||||
number: 19
|
number: 19
|
||||||
|
restore_mode: RESTORE_DEFAULT_OFF
|
||||||
|
|
||||||
##### DISPLAY ALWAYS ON #####
|
##### DISPLAY ALWAYS ON #####
|
||||||
- name: ${device_name} Screen Power
|
- name: ${device_name} Screen Power
|
||||||
@@ -746,6 +749,7 @@ switch:
|
|||||||
restore_state: true
|
restore_state: true
|
||||||
assumed_state: false
|
assumed_state: false
|
||||||
optimistic: true
|
optimistic: true
|
||||||
|
restore_mode: RESTORE_DEFAULT_OFF
|
||||||
on_turn_off:
|
on_turn_off:
|
||||||
- lambda: id(disp1).send_command_printf("home.sleepmodus.val=0");
|
- lambda: id(disp1).send_command_printf("home.sleepmodus.val=0");
|
||||||
- globals.set:
|
- globals.set:
|
||||||
@@ -766,6 +770,7 @@ switch:
|
|||||||
entity_category: config
|
entity_category: config
|
||||||
restore_state: true
|
restore_state: true
|
||||||
optimistic: true
|
optimistic: true
|
||||||
|
restore_mode: RESTORE_DEFAULT_OFF
|
||||||
|
|
||||||
- name: ${device_name} Relay 2 Local Fallback
|
- name: ${device_name} Relay 2 Local Fallback
|
||||||
platform: template
|
platform: template
|
||||||
@@ -773,6 +778,7 @@ switch:
|
|||||||
entity_category: config
|
entity_category: config
|
||||||
restore_state: true
|
restore_state: true
|
||||||
optimistic: true
|
optimistic: true
|
||||||
|
restore_mode: RESTORE_DEFAULT_OFF
|
||||||
|
|
||||||
##### START - NUMBER CONFIGURATION #####
|
##### START - NUMBER CONFIGURATION #####
|
||||||
number:
|
number:
|
||||||
|
|||||||
Reference in New Issue
Block a user