Dude, you yap a lot but you don’t actually provide any constructive support aye.
It’s Ok to share your log output. It’s not a big secret, see.
INFO Starting log output from 192.168.0.12 using esphome API
INFO Successfully connected to landscape-lights @ 192.168.0.12 in 0.034s
INFO Successful handshake with landscape-lights @ 192.168.0.12 in 0.111s
[17:23:32][I][app:100]: ESPHome version 2024.7.1 compiled on Jul 24 2024, 21:23:25
[17:23:32][C][wifi:599]: WiFi:
[17:23:32][C][wifi:427]: Local MAC: E8:6B:EA:D4:7F:40
[17:23:32][C][wifi:432]: SSID: [redacted]
[17:23:32][C][wifi:435]: IP Address: 192.168.0.12
[17:23:32][C][wifi:439]: BSSID: [redacted]
[17:23:32][C][wifi:440]: Hostname: 'landscape-lights'
[17:23:32][C][wifi:442]: Signal strength: -62 dB ▂▄▆█
[17:23:32][C][wifi:446]: Channel: 6
[17:23:32][C][wifi:447]: Subnet: 255.255.255.0
[17:23:32][C][wifi:448]: Gateway: 192.168.0.1
[17:23:32][C][wifi:449]: DNS1: 192.168.0.194
[17:23:32][C][wifi:450]: DNS2: 192.168.0.1
[17:23:32][C][logger:185]: Logger:
[17:23:32][C][logger:186]: Level: DEBUG
[17:23:32][C][logger:188]: Log Baud Rate: 115200
[17:23:32][C][logger:189]: Hardware UART: UART0
[17:23:32][C][template.text_sensor:020]: Template Sensor 'Uptime'
[17:23:32][C][template.text_sensor:020]: Icon: 'mdi:clock-start'
[17:23:32][C][ledc.output:176]: LEDC Output:
[17:23:32][C][ledc.output:177]: Pin GPIO18
[17:23:32][C][ledc.output:178]: LEDC Channel: 0
[17:23:32][C][ledc.output:179]: PWM Frequency: 1000.0 Hz
[17:23:32][C][ledc.output:180]: Phase angle: 0.0°
[17:23:32][C][ledc.output:181]: Bit depth: 16
[17:23:32][C][ledc.output:176]: LEDC Output:
[17:23:32][C][ledc.output:177]: Pin GPIO16
[17:23:32][C][ledc.output:178]: LEDC Channel: 1
[17:23:32][C][ledc.output:179]: PWM Frequency: 1000.0 Hz
[17:23:32][C][ledc.output:180]: Phase angle: 0.0°
[17:23:32][C][ledc.output:180]: Phase angle: 0.0°
[17:23:32][C][ledc.output:181]: Bit depth: 16
[17:23:32][C][ledc.output:176]: LEDC Output:
[17:23:32][C][ledc.output:177]: Pin GPIO19
[17:23:32][C][ledc.output:179]: PWM Frequency: 1000.0 Hz
[17:23:32][C][ledc.output:180]: Phase angle: 0.0°
[17:23:32][C][ledc.output:181]: Bit depth: 16
[17:23:32][C][ledc.output:176]: LEDC Output:
[17:23:32][C][ledc.output:178]: LEDC Channel: 4
[17:23:32][C][ledc.output:179]: PWM Frequency: 1000.0 Hz
[17:23:32][C][ledc.output:178]: LEDC Channel: 5
[17:23:32][C][ledc.output:179]: PWM Frequency: 1000.0 Hz
[17:23:32][C][ledc.output:181]: Bit depth: 16
[17:23:32][C][ledc.output:176]: LEDC Output:
[17:23:32][C][ledc.output:177]: Pin GPIO21
[17:23:32][C][ledc.output:178]: LEDC Channel: 6
[17:23:32][C][ledc.output:179]: PWM Frequency: 1000.0 Hz
[17:23:32][C][ledc.output:180]: Phase angle: 0.0°
[17:23:32][C][ledc.output:181]: Bit depth: 16
[17:23:32][C][ledc.output:176]: LEDC Output:
[17:23:32][C][ledc.output:177]: Pin GPIO2
[17:23:32][C][ledc.output:178]: LEDC Channel: 9
[17:23:32][C][ledc.output:181]: Bit depth: 16
[17:23:32][C][uptime.sensor:033]: Uptime Sensor 'Accent Lights Uptime Sensor'
[17:23:32][C][uptime.sensor:033]: Device Class: 'duration'
[17:23:32][C][uptime.sensor:033]: State Class: 'total_increasing'
[17:23:32][C][uptime.sensor:033]: Unit of Measurement: 's'
[17:23:32][C][uptime.sensor:033]: Icon: 'mdi:timer-outline'
[17:23:32][C][uptime.sensor:034]: Type: Seconds
[17:23:32][C][light:103]: Light 'porch white led'
[17:23:32][C][light:105]: Default Transition Length: 1.0s
[17:23:32][C][light:106]: Gamma Correct: 2.80
[17:23:32][C][light:103]: Light 'Center Flood light'
[17:23:32][C][light:106]: Gamma Correct: 2.80
[17:23:32][C][light:103]: Light 'Fire Glow JM'
[17:23:32][C][light:105]: Default Transition Length: 1.0s
[17:23:32][C][light:106]: Gamma Correct: 2.80
[17:23:32][C][light:103]: Light 'Crimson Queen JM'
[17:23:32][C][light:105]: Default Transition Length: 1.0s
[17:23:33][C][light:105]: Default Transition Length: 1.0s
[17:23:33][C][light:106]: Gamma Correct: 2.80
[17:23:33][C][light:106]: Gamma Correct: 2.80
[17:23:33][C][template.switch:068]: Template Switch 'Pre-set Brightness Master'
[17:23:33][C][template.switch:057]: Optimistic: YES
[17:23:33][C][wifi_info:013]: WifiInfo Mac Address 'Accent Light Mac Address'
[17:23:33][C][homeassistant.time:010]: Home Assistant Time:
[17:23:33][C][homeassistant.time:011]: Timezone: 'EST5EDT,M3.2.0,M11.1.0'
[17:23:33][C][internal_temperature:076]: Internal Temperature Sensor 'Landscape Lights Internal Temp'
[17:23:33][C][internal_temperature:076]: Device Class: 'temperature'
[17:23:33][C][internal_temperature:076]: State Class: 'measurement'
[17:23:33][C][internal_temperature:076]: Unit of Measurement: '°C'
[17:23:33][C][internal_temperature:076]: Accuracy Decimals: 1
[17:23:33][C][copy.sensor:015]: Copy Sensor 'Accent WiFi'
[17:23:33][C][copy.sensor:015]: Device Class: 'signal_strength'
[17:23:33][C][copy.sensor:015]: State Class: 'measurement'
[17:23:33][C][copy.sensor:015]: Unit of Measurement: 'Signal %'
[17:23:33][C][copy.sensor:015]: Accuracy Decimals: 0
[17:23:33][C][captive_portal:088]: Captive Portal:
[17:23:33][C][web_server:173]: Web Server:
[17:23:33][C][web_server:174]: Address: landscape-lights.local:80
[17:23:33][C][mdns:116]: mDNS:
[17:23:33][C][mdns:117]: Hostname: landscape-lights
[17:23:33][C][esphome.ota:073]: Over-The-Air updates:
[17:23:33][C][safe_mode:020]: Boot considered successful after 60 seconds
[17:23:33][C][safe_mode:021]: Invoke after 10 boot attempts
[17:23:33][C][safe_mode:023]: Remain in safe mode for 300 seconds
[17:23:33][C][api:139]: API Server:
[17:23:33][C][api:140]: Address: landscape-lights.local:6053
[17:23:33][C][api:142]: Using noise encryption: YES
[17:23:33][C][wifi_info:011]: WifiInfo SSID 'Accent Light Connected SSID'
[17:23:33][C][wifi_info:012]: WifiInfo BSSID 'Accent Light Connected BSSID'
[17:23:33][C][wifi_info:010]: WifiInfo Scan Results 'Accent Light Latest Scan Results'
[17:23:33][C][wifi_info:014]: WifiInfo DNS Address 'Accent Light DNS Address'
[17:23:33][C][wifi_info:009]: WifiInfo IPAddress 'Accent Light IP Address'
[17:23:33][C][wifi_signal.sensor:009]: WiFi Signal 'wifi_signal_db'
[17:23:33][C][wifi_signal.sensor:009]: Device Class: 'signal_strength'
[17:23:33][C][wifi_signal.sensor:009]: State Class: 'measurement'
[17:23:33][C][wifi_signal.sensor:009]: Accuracy Decimals: 0
[17:23:38][D][internal_temperature:069]: Ignoring invalid temperature (success=0, value=53.3)
Ok thanks i should be able to work it out from here.
you don’t provide any useful data and you decide what you need to show people for them to help you. If you know what information is relevant and which isn’t, you should have no trouble troubleshooting your own problems.
Thanks, I commented out the accuracy_decimals and still the same result.
Back up a bit. Comment out all the filters- are you getting any raw data from the sensor? Depending on the sensor, 1 second might be too fast. Try 2 seconds for testing.
I don’t know your code and output for that code. Like @Fallingaway24 wrote, don’t be shy to post your actual state.
Also Esphome state and some HA gauges might have different outputs.
Yea good call.
Ok weird, but now sensor is sending values,
Strange as it does not seem to be obeying the update_interval.
[09:49:20][D][sensor:094]: 'Water Tank Level': Sending state 2.52612 V with 2 decimals of accuracy
[09:49:40][D][sensor:094]: 'Water Tank Level': Sending state 2.63901 V with 2 decimals of accuracy
I just waited for a while. I also did change the update interval to 10s.
The other option I was looking at and playing with the the average_sensor.
Limych/ha-average: Average Sensor for Home Assistant (github.com)
Maybe I missed it above but, just curious what your measuring water level in? What kind of volume does it hold when full?
There is an Average Sensor Filter already available with the rest of the filters.
sliding_window_moving_average
Or.
throttle_average
and
median
is a pretty basic way of calculating Medium Sensor Value.
Also, any recommendations for the best methods of calibrating?
Do I just take the readings at certain depths etc?
Seeing as ive been looking up similar ones because you cant read the model number and you never provided any links, I can only go off similar ones ive found and they appear to be pre-calibrated for 2m depth and dont require anything additional.
What good would that do? This works be sensing pressure. To know the pressure (weight) of total liquid, then it needs to sit at the bottom and be left alone. No jerking it up and down like a fishing lure with a marlin on the hook, bud.
The only other factor may be the tanks area. Im not sure if the geometry will matter or effect pressure. You may need to dig into that on Google or try searching in here. Orhers have used these sensors or similar ones atleast. See what kind of information or clues they may have left behind…
I dont understand your logic here,
Jerking it up and down is exactly how I would measing the high and low levels,
I would drop it to the bottom of a full tank, and take a reading at the bottom giving me my “Full tank” reading.
Then I would pull it to the top of the tank, and take a reading around 1 foot from the top of the water level, giving me my low level reading,
Then calculate the data points in between.
But, please correct me if im wrong and being a complete moron, bud.
That sensor is only measuring pressure, water column height.
It doesn’t consider anyhow if you tank has irregular shape. Only you know that here.
Throw it in the tank and fill your tank so you get voltage for max height. Pull it out and you have zero height voltage. Insert those values to calibrate_linear and you are probably good to go. If your tank has irregular shape (or your sensor output is not linear), you need to do other measurements with different fill levels.
Thanks, so with calibrate_linear, I only need the high and low values? It will work the rest out from there?
You know there’s a website dedicated to Esphome documentation, right? You read it and it explains things to you.
First, collect a bunch of values of what the sensor shows and what the real value should be.
2 values is the minimum you need to have. If it were me, Id get “truth values” for 1/4, 1/2, 3/4, full and that should be plenty to keep your sensor readings fairly accurate.
Yes. To start with. But read my post above. Depends on geometry of your cistern and linearity of you sensor
Yes ok thanks I will do some testing.