You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,7 @@ switch:
154
154
- port: 11
155
155
name: "Fan Office"
156
156
unique_id: "fan_office_switch_port_11"
157
+
persistent: true
157
158
- port: 12
158
159
name: "Light Desk"
159
160
unique_id: "light_desk_switch_port_12"
@@ -168,6 +169,7 @@ switch:
168
169
| `name` | yes | | string | The name for the switch entity |
169
170
| `unique_id` | no | | string | An ID that uniquely identifies the switch. Set this to a unique value to allow customization through the UI |
170
171
| `invert_logic` | no | `false` | boolean | If true, inverts the output logic to ACTIVE LOW |
172
+
| `persistent` | no | `false` | boolean | If true, the switch state will be persistent in HA and will be restored if HA restart / crash |
171
173
172
174
For more details about the GPIO layout, visit the Wikipedia [article](https://en.wikipedia.org/wiki/Raspberry_Pi#General_purpose_input-output_(GPIO)_connector) about the Raspberry Pi.
Copy file name to clipboardExpand all lines: info.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,7 @@ switch:
142
142
- port: 11
143
143
name: "Fan Office"
144
144
unique_id: "fan_office_switch_port_11"
145
+
persistent: true
145
146
- port: 12
146
147
name: "Light Desk"
147
148
unique_id: "light_desk_switch_port_12"
@@ -156,6 +157,7 @@ switch:
156
157
| `name` | yes | | string | The name for the switch entity |
157
158
| `unique_id` | no | | string | An ID that uniquely identifies the switch. Set this to a unique value to allow customization through the UI |
158
159
| `invert_logic` | no | `false` | boolean | If true, inverts the output logic to ACTIVE LOW |
160
+
| `persistent` | no | `false` | boolean | If true, the switch state will be persistent in HA and will be restored if HA restart / crash |
159
161
160
162
For more details about the GPIO layout, visit the Wikipedia [article](https://en.wikipedia.org/wiki/Raspberry_Pi#General_purpose_input-output_(GPIO)_connector) about the Raspberry Pi.
0 commit comments