2026-07-06T20:18:09.835553+00:00 local0.err stream_server [E][stream_server:167]: Failed to write to client 10 with error 128! 2026-07-06T20:18:09.836377+00:00 local0.warni stream_server [W][stream_server:190]: Failed to read from client 10 with error 128! and 2026-07-06T20:18:19.865209+00:00 local0.err stream_server [E][stream_server:126]: Incoming bytes available, but outgoing buffer is full: stream will be corrupted! 2026-07-06T20:18:19.865762+00:00 local0.warni stream_server [W][stream_server:131]: Dropped 10 pending bytes for client 10
esphome
Installation
- https://nixos.org/download/
- direnv
Your PC timezone is important for esphome schedules, as they will use compiler's timezone when syncing the clock (NTP).
Compiling
$ cp -i secrets.yaml{.sample,}
$ cp -i templates/secrets.yaml{.sample,}
# Edit both secrets.yaml files.
$ ./reflash.sh compile ''
Running
$ ./reflash.sh
or
$ esphome run file.yaml
Look up list of runnable configurations inside reflash.sh script.
Running remotely
If you don't have esphome installed on a computer that you connect ESP chip to, use https://web.esphome.io/ to upload the compiled binary.
The binary resides in
.esphome/build/<component>/.pioenvs/<component>/firmware.factory.bin.
Serial console
Use screen /dev/tty.usbserial-0001 115200 (or /dev/ttyUSB*) to read the
console.
Cleaning up removed MQTT entities
This can be done via clean-mqtt command line:
$ esphome clean-mqtt spare-power-meter.yaml \
--topic homeassistant/binary_sensor/<component>/<entity>/config
or
$ esphome clean-mqtt spare-power-meter.yaml \
--topic homeassistant/+/<component>/#
When --topic is specified, the YAML file will only be used to extract MQTT
credentials. All other topics will remain untouched.
Hardware: heating
Photoresistor
Schematics:
- A0 -> 10K Ohm -> GND
- A0 -> Photoresistor -> 3V3
Assembly:
- Put isolation band on the legs
- Solder legs to dupont wire (the other end has to be male)
- Bath it in the insulation varnish
- Think the isolation band with a fan
Color coding for RJ45 cable:
- orange: furnace
- blue: floor
5528 photoresistor: 8-20K resistance by brightness, up to 1 MOhm. Brightness range is 1.47 - 2.2V. Darkness is 3.267V.