Describe the problem you have/What new integration you would like
Allow switch as source for copy binary sensor
Please describe your use case for this integration and alternatives you've tried:
To allow exposing the state of an internal switch to HA, without allowing actions on it.
To allow filtering of the switch state as if it were a binary sensor, for use inside ESPHome.
The alternative is creating a template binary sensor, either with a lambda to copy the state of the switch, or with events on the switch to publish its state to the binary sensor. But the code for event-based is cleaner than the copy pattern, and the lambda would execute on every loop.
Describe the problem you have/What new integration you would like
Allow switch as source for copy binary sensor
Please describe your use case for this integration and alternatives you've tried:
The alternative is creating a template binary sensor, either with a lambda to copy the state of the switch, or with events on the switch to publish its state to the binary sensor. But the code for event-based is cleaner than the copy pattern, and the lambda would execute on every loop.
Additional context