-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support opening and closing the cover of MyFoxSecurityCamera #224
Support opening and closing the cover of MyFoxSecurityCamera #224
Conversation
Only open and close action are available. You cannot set the position. It's why I set it as a switch. It makes more sense IMO. |
Setting the position is not required for the We moved the stateless Garage Door also from the switch to the cover component for the reason above. |
If I follow your logic the switch platform can be deleted as the cover platform can do the same. |
Not really. My logic would be to map a cover (or device with cover like features and the same commands) to the cover platform, where the switch platform is used as an on/off switch. We map devices with only on / off commands to switch for example, and we modified it to also support a basic siren. (until there is a native siren platform). For me, it doesn't make sense to implement We could add a new device class for a CAMERA_SHUTTER / CAMERA_COVER, however I am not sure if that is necessary. For now I mapped it to |
OK looking at the setup it make sense. We already support these commands indeed. |
No worries, it is good to be challenged and to discuss architectural choices. 👍🏻. Thanks for your review! |
@tetienne you mapped it to a switch, however looking at the current codebase, it makes more sense to map it to
cover
. What do you think?