strobes
(strobes)
March 13, 2026, 12:04am
1
I want only binary events send to HA ( too much wifi traffic already) Here is my code. With the internal = true the actual measurements hidden from HA, but I can see them in wifi logs. For my application I want short updates - 1s which will pollute my network.
thanks
sensor:
- platform: adc
pin: A0
name: "MBR Lux"
id: mbr_illuminance
update_interval: 1s
internal: true
unit_of_measurement: lux
filters:
- lambda: |-
return (x / 10000.0) * 2000000.0;
binary_sensor:
- platform: template
name: "MBR light"
device_class: light
lambda: |-
if (id(mbr_illuminance).state > 50) {
return true;
} else {
return false;
}
tom_l
March 13, 2026, 12:05am
2
What are you referring to here?
strobes
(strobes)
March 13, 2026, 12:07am
3
Here is the log. I want to see only OFF/ON events. Not interested in actual lux data.
[19:06:04.965][D][sensor:118]: 'MBR Lux' >> 75.59 lux
[19:06:06.436][D][sensor:118]: 'MBR Lux' >> 83.40 lux
[19:06:06.969][D][sensor:118]: 'MBR Lux' >> 14.84 lux
**[19:06:06.969][D][binary_sensor:044]: 'MBR light' >> OFF**
[19:06:08.012][D][sensor:118]: 'MBR Lux' >> 17.19 lux
[19:06:09.062][D][sensor:118]: 'MBR Lux' >> 15.04 lux
[19:06:09.974][D][sensor:118]: 'MBR Lux' >> 18.75 lux
[19:06:11.111][D][sensor:118]: 'MBR Lux' >> 17.77 lux
[19:06:11.977][D][sensor:118]: 'MBR Lux' >> 81.45 lux
**[19:06:11.977][D][binary_sensor:044]: 'MBR light' >> ON**
[19:06:13.161][D][sensor:118]: 'MBR Lux' >> 83.20 lux
[19:06:14.186][D][sensor:118]: 'MBR Lux' >> 70.90 lux
tom_l
March 13, 2026, 12:11am
5
Have you actually re-flashed your device since adding
internal: true
strobes
(strobes)
March 13, 2026, 12:14am
6
may be I’m confused and misunderstand basics. So when I collecting logs over wifi, these logs show actual event on ESP. EspHome can see these events only because somehow debugging tools capturing serial output and send over wifi?
strobes
(strobes)
March 13, 2026, 12:14am
7
yes I did reflash and lux data is not reported in HA GUI but still present logs
tom_l
March 13, 2026, 12:18am
8
So it is working.
The debug logs show everything occurring, not just what is sent.