Skip to content

Conversation

@Jimver
Copy link

@Jimver Jimver commented May 21, 2024

Add an option to hide the switch from HA using the internal property.

Default is "false" to keep behavior the same as before.

Copy link
Author

@Jimver Jimver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to squash merge, was testing out some stuff in between commits

@felipecrs
Copy link

Why would someone enable this?

@Roving-Ronin
Copy link

This is just going to hide the GPO switch that turns the outlet on/off, from appearing in HA.

So long as it's default = false then won't affect the bulk of users.

Would suggest that like any other changes to Smart Plugs, if you want it for one version of plug you should also submit the same changes for the other v1, v2 and v2 (on the ESP32 repository version of Athom) also.

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.
@Jimver
Copy link
Author

Jimver commented Feb 20, 2025

Good point @Roving-Ronin! Did the same for athom-smart-plug.yaml (which is V1 I believe?) and made athom-tech/esp32-configs#44 for ESP32, not sure if I missed any others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants