Skip to content

Commit 18765ab

Browse files
committed
Add hide_switch option
If you don't want the toggle to control the smart plug to show up in HA, set hide_switch to true. Useful if you only want to monitor but not control the smart plug.
1 parent f048167 commit 18765ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

athom-smart-plug-v2.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ substitutions:
88
project_version: "v2.0.7"
99
sensor_update_interval: "10s"
1010
relay_restore_mode: RESTORE_DEFAULT_ON
11+
hide_switch: "false"
1112
# Current Limit in Amps. AU Plug = 10. IL, BR, EU, UK, US Plug = 16.
1213
current_limit : "16"
1314
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
@@ -334,6 +335,7 @@ switch:
334335
id: relay
335336
restore_mode: ${relay_restore_mode}
336337
icon: mdi:${power_plug_type}
338+
internal: "${hide_switch}"
337339

338340
light:
339341
- platform: status_led

0 commit comments

Comments
 (0)