Closed joshuaspence closed 1 year ago
As a workaround:
esphome:
on_boot:
priority: 600
then:
- lambda: |-
id(stream_server_connected).publish_state(false);
id(stream_server_connections).publish_state(0);
Nice catch, thanks!
The connected binary sensor and connection count sensor both report a value of
Unknown
until the first client is connected. I would have expect the binary sensor to reportFalse
and the regular sensor to report a count of0
. This seems to happen becauseStreamServerComponent::publish_sensor
is only called fromStreamServerComponent::accept
andStreamServerComponent::cleanup
.