mstdn.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A general-purpose Mastodon server with a 500 character limit. All languages are welcome.

Administered by:

Server stats:

14K
active users

#esphome

8 posts8 participants0 posts today

#HomeAssistant and/or #esphome question for folks:

I have one flow meter (pulse_counter in ESPHome) upstream and then 6 valves downstream. Does anyone know of a way in ESPHome's config that I can attribute the flow rate to a given valve if that valve is open?

I've looked through some forums and considered posting a question, but I think this might be too niche and I don't really feel like navigating questions on a forum at the moment. I do have a backup, which might be more accurate for attribution anyway:

Write a script that samples every minute what the flow rate is. If the flow rate is nonzero, see which valve(s) is/are open. In the (unlikely) event that more than one valve is open, do some fancy hocus-pocus with the average flow rate of all open valves to get an estimated flow rate distribution to assign to each valve.

Replied in thread

@micha @kelvan
okay, zumindest kann der #ESP32 den #Ultraschallsensor ansteuern und auslesen. Jetzt Frage ich mich nur, warum ich das nicht via #ESPHome in den #HomeAssistant eingebunden bekomme. ...
Vielleicht hat ja einer von Euch eine Idee:

Auf dem selben Gerät(!) funktioniert dieses hier (in C++ mit serieller Konsole):
long dauer=0;
long entfernung=0;

void setup() {
pinMode(27, OUTPUT); //trigger
pinMode(26, INPUT); //echo
}

void loop() {
digitalWrite(27, LOW); //trigger
delay(5);
digitalWrite(27, HIGH); //trigger
delay(10);
digitalWrite(27, LOW); //trigger
dauer = pulseIn(26, HIGH); //echo

entfernung = (dauer/2) * 0.03432;
},

aber nicht diese YAML (ESPHome):
sensor:
- platform: ultrasonic
trigger_pin: GPIO27
echo_pin: GPIO26
name: "Ultrasonic Sensor ESP32"
update_interval: 5s

"Ultrasonic Sensor ESP32' - Distance measurement timed out!
'Ultrasonic Sensor ESP32': Sending state nan m with 2 decimals of accuracy"

🤔 any ideas?

Also #esphome ist schon was cooles. Hab mir so n Entwicklerboard von #funduino gekauft. Als Lötübung. gabz lustig. Gibt nen Adapter für #esp32 dafür. Alles schon beschriftet. Noch nen CO2 Sensor dran gehängt und dann über #esphome in meinen #homeassistant integriert. Flutscht einwandfrei, Daten auch direkt im #grafana sichtbar. Mini-Wetterstation mit Knöpfen und LEDs und Display zum Anzeigen von irgendwas.
Temperatur, Helligkeit, Luftfeuchte, CO2. Fehlt nur noch ein Luftdrucksensor aber den habe ich gerade ausgeliehen.
Jetzt nur noch überlegen was ich damit alles anstelle.

My comms and sensors center is running strong!
From left to right:

Seeed studio ESP32C3 with BME280 running #esphome

RTL-SDR running #ADS-B data gathering

Seeed Studio LoRa running #Meshtastic

All devices connected to a PoE powered #raspberrypi4 (the LoRa and esphome just use it as a USB power adapter)

Thanks to PoE I need to only have one cable coming from my switch.

Replied in thread

For the hardware, I knew I wanted to go with ESP32. It's ubiquitous and cheap. While I have some experience programming for it, my intent was to actually avoid need to do so thanks to the fantastic #ESPHome. It's surely an overkill for this project, but it would just take few dozen lines of YAML config and would give me Over-the-Air updates, logs and what not. So here I am, looking for a way to drive WS2182 with an ESP32 controller. #IndicesOfTime

In search for a better filter

blog.narf.ssji.net/2025/05/10/

Linear vs. Polynomial calibration to get water level from sensor reading are pretty much the same.

Low-pass filtering too slow to react to actual changes

Works well enough for immediate reading and daily consumption aggregate

Too noisy for hourly readings and other event detection

Water delivery took hours to register the full scale

Kalman?

I thought it was for sensor fusion, but it also works for single-sensor filtering.

Good videos: youtube.com/watch?v=HCd-leV8Ok youtube.com/watch?v=qCZ2UTgLM_

Home Assistant has some integration for Kalman filters, but they seem unmaintained community.home-assistant.io/t/

ESPHome: esphome.io/components/sensor/c

Dug out and translated the sheet that came with the current loop liquid pressure sensor. It looked like an ad, but actually contained useful info on the characteristics of the sensor.

Likely useful to calibrate the Kalman filter

Also has a “debugging” / calibration method, which would allow to get a wider range.

Adding a Kalman-filtered entity in ESPHome

Error on the sensor Got the process stddev from overnight data from Home Assistant (when the water level is expected not to change), and chucked it into LibreOffice’s STDEV function: ~600L

Standard deviation on the process: change per second. For lack of a better estimate, using the baseline of 400L/day use: 400/(24*3600) = 0.00462963

This seem very low as “A low value here will place high importance on the current state and be slow to respond to changes in the measured samples.”

Also trying a larger value for likely changes, e.g., one tap running for a minute at 9L/min: 0.15

[…]

Continued thread

Result of my comparison of the AM312 and HC-SR501 sensors.

The HC-SR501 triggers detection much faster, with a release time of 1.1 seconds compared to 2.5 for the AM312. This speed would be ideal for my needs…

However, the HC-SR501 has many false negatives, making it unsuitable. It looks like the HC-SR501 has an issue with the Wi-Fi. During my test, the sensor was 20 cm away from the ESP32.

I would recommend the AM312 instead.

Ping @justdude

My laser saver for yesterday, May 4. :-)

Building an ESPHome multi-sensor: Bluetooth proxy (mainly for Bermuda BLE trilateration), temperature, humidity, and motion sensors.. I used an D1 Mini ESP32 AM313 + BME280. Currently testing the HC-SR501. It is larger, but the sensitivity and delay time can be adjusted.

My daughter wanted a moon lamp when we went to Space Expo in #noordwijk. I remembered that I had this in my list of 3d printable things: printables.com/model/23859

But I wanted to use a 12 LED neopixel ring as a light source and therefore needed room for a Wemos D1 Mini as well. My #OpenSCAD skills are poor, but with some time and hot glue I came up with this design: printables.com/model/1283609

And here is the simple #esphome config:
paste.sh.jl42.de/iyanilakir.ya
All in all I'm quite happy 😁
#3dprinting

Wochenlang habe ich mich erfolglos mit einem Ultraschall-Distanzsensor zur Füllstandsmessung unseres Regenwassers herum geärgert. Jetzt habe ich mal ein bisschen mehr investiert (48€) für einen Modbus-Drucksensor de.aliexpress.com/item/1005006
Abfrage erfolgt mit einem ESP32+RS485-Modul mit #esphome
Auflösung ist 1 mm, wirklich beeindruckend.
Das Trumm morgen mal in der Zisterne versenken und schauen ob das dauerhaft zuverlässiger läuft als der Ultraschallpfusch.

Continued thread

I got a response from a more technical person from #Remeha with a good explanation on why they didn't want me to publish certain information, which I fully understand (even though the information was rather trivial to retrieve and, according to myself, would be fully covered by Auteurswet article 45m).

They didn't have an issue with my hobby project per se, which is good. I still feel they should have contacted me about this in a normal way, instead of opting for a C&D.

I've asked them if there might be a subset of information that they are okay with with being published, mostly information that is already, in some form or another, accessible online anyway.